Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT] Add first support to scenes #1930

Merged
merged 11 commits into from
Mar 12, 2024
2 changes: 1 addition & 1 deletion responses/it/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ responses:
cover_device_class: "Ho aperto tutte le {{slots.device_class}}"
cover_device_class_area: "Ho aperto le {{slots.device_class}} in {{slots.area}}"
cover_garage: "Ho aperto il garage"
scene: "Ho attivato {{ slots.name }}"
scene: "Ho attivato la scena {{ slots.name }}"
script: "Ho avviato {{ slots.name }}"
3 changes: 3 additions & 0 deletions sentences/it/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ intents:
data:
- sentences:
- "<turn_on> [<the>]<name>"
excludes_context:
domain:
- scene
18 changes: 18 additions & 0 deletions sentences/it/scene_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: it
intents:
HassTurnOn:
data:
- sentences:
- "<turn_on> [la] ([scena] <name>)"
requires_context:
domain: scene
slots:
domain: scene
response: scene
- sentences:
- "<turn_on> [la] [scena] <name> [(<of>|<in>)] <area>"
requires_context:
domain: scene
slots:
domain: scene
response: scene
4 changes: 2 additions & 2 deletions tests/it/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ entities:
id: fan.ventilatore
area: soggiorno
state: "on"

- name: "Tenda Sinistra"
id: cover.tenda_sinistra
area: soggiorno
state: "aperta"
attributes:
device_class: curtain

- name: "Tenda Destra"
id: cover.tenda_destra
area: soggiorno
Expand All @@ -59,3 +57,5 @@ entities:
id: light.luce_garage
area: garage
state: "on"
- name: "Modalità Festa"
id: "scene.modalita_festa"
27 changes: 27 additions & 0 deletions tests/it/scene_HassTurnOn.yaml
v1k70rk4 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: en
tests:
- sentences:
- "attiva la scena modalità festa"
- "attiva modalità festa"
- "potresti attivare la modalità festa"
- "accendi modalità festa"
- "potresti accendere la modalità festa"
intent:
name: HassTurnOn
slots:
domain: scene
name: "Modalità Festa"
response: "Ho attivato la scena modalità festa"
- sentences:
- "attiva la scena modalità festa in cucina"
- "attiva modalità festa in cucina"
- "potresti attivare la modalità festa in cucina"
- "accendi modalità festa in cucina"
- "potresti accendere la modalità festa in cucina"
intent:
name: HassTurnOn
slots:
area: Cucina
domain: scene
name: "Modalità Festa"
response: "Ho attivato la scena modalità festa"