Skip to content

Commit

Permalink
[RU] Add turn on/off light locally (home-assistant#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
HepoH3 authored and schizza committed Mar 16, 2024
1 parent 8bc1159 commit 341c3e1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sentences/ru/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@ intents:
HassTurnOff:
data:
- sentences:
- "<turn_off> [весь] свет"
- "<turn_off> [весь] свет <area>"
- "<turn_off> <area> [весь] свет"
- "<turn_off> <area> <name>"
- "<turn_off> <name> <area>"
slots:
domain: "light"
response: "lights_area"

# Turn on all lights in the same area as a satellite device
- sentences:
- "<turn_off> весь свет"
- "<turn_off> [весь] свет здесь"
- "<turn_off> здесь [весь] свет"
response: "lights_area"
slots:
domain: "light"
requires_context:
area:
slot: true
11 changes: 11 additions & 0 deletions sentences/ru/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ intents:
slots:
domain: "light"
response: "lights_area"

# Turn on all lights in the same area as a satellite device
- sentences:
- "<turn_on> свет [здесь]"
- "<turn_on> [здесь] свет"
response: "lights_area"
slots:
domain: "light"
requires_context:
area:
slot: true
13 changes: 13 additions & 0 deletions tests/ru/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ tests:
- Кухне
- Кухонный
domain: light

- sentences:
- выключи весь свет
- отключи здесь свет
- выключи свет здесь
intent:
name: HassTurnOff
context:
area: Кухня
slots:
domain: light
area: Кухня
response: "Выключен свет в Кухня"
14 changes: 14 additions & 0 deletions tests/ru/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,17 @@ tests:
- Гостиная
- Гостиной
domain: light
response: "Включен свет в гостиной"

- sentences:
- включи свет
- включи здесь свет
- включи свет здесь
intent:
name: HassTurnOn
context:
area: Гостиная
slots:
domain: light
area: Гостиная
response: "Включен свет в Гостиная"

0 comments on commit 341c3e1

Please sign in to comment.