Skip to content

Commit 513d11a

Browse files
committed
Addressed feedback
1 parent 7d3b0fc commit 513d11a

File tree

3 files changed

+34
-21
lines changed

3 files changed

+34
-21
lines changed

sentences/en/_common.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ lists:
7474
out: "fahrenheit"
7575
brightness_level:
7676
values:
77-
- in: (max|maximum|highest|full|all the way up|as (bright|light) as possible)
77+
- in: ([the] (max|maximum|highest) [(level|value|setting|brightness)]|full [(brightness|light)]|all the way up|as (bright|light) as possible)
7878
out: 100
79-
- in: (half|halfway|mid)
79+
- in: "[the] (half|halfway|mid) [(level|setting|brightness|bright|light|lit)]"
8080
out: 50
81-
- in: (min|minimum|lowest|all the way down|as (dim|dark) as possible)
81+
- in: ([the] (min|minimum|lowest) [(level|value|setting|brightness)]|all the way down|as (dim|dark) as possible)
8282
out: 1
8383
on_off_states:
8484
values:
@@ -381,7 +381,7 @@ expansion_rules:
381381
any: "(any|some) [of <the>]"
382382
are_any: "[<are>] <any>"
383383
how_many: "how many [of <the>]"
384-
brightness: "({brightness}[([ ]%)| percent]|[the] {brightness_level:brightness} [(level|value|setting)]) [(brightness|bright|light)]"
384+
brightness: "({brightness}[([ ]%)| percent] [(brightness|bright|light|lit)]|{brightness_level:brightness})"
385385
light: "(light|lights|lighting|lamp|lamps)"
386386
turn: "(turn|switch|change|bring)"
387387
temp: "(temp|temperature)"
@@ -390,7 +390,7 @@ expansion_rules:
390390
close: "(close|shut|lower) [(up|down)]"
391391
set: "(set|make|change|turn|adjust)"
392392
numeric_value_set: "(set|change|turn [(up|down)]|increase|decrease|make|adjust)"
393-
brightness_value_set: "(<numeric_value_set>|(brighten [up]|lighten [up]|brighten [up]|dim [down]|darken [down]))"
393+
brightness_relative: "(brighten [up]|lighten [up]|dim [down]|darken [down])"
394394
in: "(in|on|at|of|across|around|throughout)"
395395
position: "{position}[([ ]%)| percent]"
396396
volume: "{volume:volume_level}[([ ]%)| percent]"

sentences/en/light_HassLightSet.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,45 @@ intents:
88

99
# Set device brightness
1010
- sentences:
11-
- "[<brightness_value_set>] [<area_floor>] <name> [brightness] [to] <brightness>"
12-
- "[<brightness_value_set>] <name> [brightness] [to] <brightness> <in_area_floor>"
13-
- "[<brightness_value_set>] <name> <in_area_floor> [brightness] [to] <brightness>"
11+
- "[<numeric_value_set>] [<area_floor>] <name> [brightness] [to] <brightness>"
12+
- "[<numeric_value_set>] <name> [brightness] [to] <brightness> <in_area_floor>"
13+
- "[<numeric_value_set>] <name> <in_area_floor> [brightness] [to] <brightness>"
1414

15-
- "[<brightness_value_set>] [the] brightness [of] [<area_floor>] <name> [to] <brightness>"
16-
- "[<brightness_value_set>] [the] brightness [of] <name> [to] <brightness> <in_area_floor>"
17-
- "[<brightness_value_set>] [the] brightness [of] <name> <in_area_floor> [to] <brightness>"
15+
- "[<numeric_value_set>] [the] brightness [of] [<area_floor>] <name> [to] <brightness>"
16+
- "[<numeric_value_set>] [the] brightness [of] <name> [to] <brightness> <in_area_floor>"
17+
- "[<numeric_value_set>] [the] brightness [of] <name> <in_area_floor> [to] <brightness>"
18+
19+
- "[<brightness_relative>] [<area_floor>] <name> [to] <brightness>"
20+
- "[<brightness_relative>] <name> [to] <brightness> <in_area_floor>"
21+
- "[<brightness_relative>] <name> <in_area_floor> [to] <brightness>"
1822
response: "brightness"
1923
requires_context:
2024
domain: light
2125

2226
# Set area/floor brightness
2327
- sentences:
24-
- "[<brightness_value_set>] [(<all>|<the>)] <area_floor> [<light>] [brightness] [to] <brightness>"
25-
- "[<brightness_value_set>] [[(<all>|<the>)] <light>] [brightness] [to] <brightness> <in_area_floor>"
26-
- "[<brightness_value_set>] [(<all>|<the>)] <light> <in_area_floor> [brightness] [to] <brightness>"
28+
- "[<numeric_value_set>] [(<all>|<the>)] <area_floor> [<light>] [brightness] [to] <brightness>"
29+
- "[<numeric_value_set>] [[(<all>|<the>)] <light>] [brightness] [to] <brightness> <in_area_floor>"
30+
- "[<numeric_value_set>] [(<all>|<the>)] <light> <in_area_floor> [brightness] [to] <brightness>"
31+
32+
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <in_area_floor> [<light>] [to] <brightness>"
33+
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <light> [to] <brightness> <in_area_floor>"
34+
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <light> <in_area_floor> [to] <brightness>"
2735

28-
- "[<brightness_value_set>] [the] brightness [of [(<all>|<the>)]] <in_area_floor> [<light>] [to] <brightness>"
29-
- "[<brightness_value_set>] [the] brightness [of [(<all>|<the>)]] <light> [to] <brightness> <in_area_floor>"
30-
- "[<brightness_value_set>] [the] brightness [of [(<all>|<the>)]] <light> <in_area_floor> [to] <brightness>"
36+
- "[<brightness_relative>] [(<all>|<the>)] <area_floor> [<light>] [to] <brightness>"
37+
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [to] <brightness> <in_area_floor>"
38+
- "[<brightness_relative>] [(<all>|<the>)] <light> <in_area_floor> [to] <brightness>"
3139
response: "brightness"
3240

3341
# Set brightness in the current context
3442
- sentences:
35-
- "[<brightness_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [<here>] [to] <brightness>"
36-
- "[<brightness_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [to] <brightness> <here>"
37-
- "[<brightness_value_set>] [(<all>|<the>)] <light> [brightness] [<here>] [to] <brightness>"
38-
- "[<brightness_value_set>] [(<all>|<the>)] <light> [brightness] [to] <brightness> <here>"
43+
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [<here>] [to] <brightness>"
44+
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [to] <brightness> <here>"
45+
- "[<numeric_value_set>] [(<all>|<the>)] <light> [brightness] [<here>] [to] <brightness>"
46+
- "[<numeric_value_set>] [(<all>|<the>)] <light> [brightness] [to] <brightness> <here>"
47+
48+
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [<here>] [to] <brightness>"
49+
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [to] <brightness> <here>"
3950
response: "brightness"
4051
requires_context:
4152
area:

tests/en/light_HassLightSet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ tests:
3636
- "make the bedroom lights 50% bright"
3737
- "adjust bedroom lights to 50%"
3838
- "set all lights in the bedroom halfway"
39+
- "brighten up the bedroom to 50%"
40+
- "brighten up the bedroom lights to 50%"
3941
intent:
4042
name: HassLightSet
4143
slots:

0 commit comments

Comments
 (0)