Skip to content

Commit 64ff923

Browse files
authored
[NB] Lights on/off with required 'area' context (#3112)
* Adds sentences for lights on/off with required 'area' context * Let's try again with a normal space character... * Adds tests (..and some changes due to beforementioned tests 🫣)
1 parent 82a7b76 commit 64ff923

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

sentences/nb/light_HassTurnOff.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,13 @@ intents:
2424
domain: "light"
2525
name: "all"
2626
response: "lights_all"
27+
28+
- sentences:
29+
- "<skru_av> <alle> <lys> her[ inne]"
30+
- "<skru_av> <lys> [her[ inne]]"
31+
response: "lights_area"
32+
slots:
33+
domain: "light"
34+
requires_context:
35+
area:
36+
slot: true

sentences/nb/light_HassTurnOn.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,13 @@ intents:
2424
domain: "light"
2525
name: "all"
2626
response: "lights_all"
27+
28+
- sentences:
29+
- "<skru_på> <alle> <lys> her[ inne]"
30+
- "<skru_på> <lys> [her[ inne]]"
31+
response: "lights_area"
32+
slots:
33+
domain: "light"
34+
requires_context:
35+
area:
36+
slot: true

tests/nb/light_HassTurnOff.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,16 @@ tests:
101101
floor: Første etasje
102102
domain: light
103103
response: "Slo av lys"
104+
105+
- sentences:
106+
- skru av lyset
107+
- skru av alle lys her inne
108+
- slukk alle lys her
109+
intent:
110+
name: HassTurnOff
111+
context:
112+
area: Soverom
113+
slots:
114+
domain: light
115+
area: Soverom
116+
response: "Slo av lys"

tests/nb/light_HassTurnOn.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,16 @@ tests:
101101
floor: Første etasje
102102
domain: light
103103
response: "Slo på lys"
104+
105+
- sentences:
106+
- skru på lyset
107+
- skru på alle lys her
108+
- tenn lysene
109+
intent:
110+
name: HassTurnOn
111+
context:
112+
area: Soverom
113+
slots:
114+
domain: light
115+
area: Soverom
116+
response: "Slo på lys"

0 commit comments

Comments
 (0)