@@ -2,97 +2,80 @@ language: "en"
2
2
intents :
3
3
HassLightSet :
4
4
data :
5
- # brightness
5
+ # ###############
6
+ # # BRIGHTNESS ##
7
+ # ###############
8
+
9
+ # Set device brightness
6
10
- sentences :
7
- - " [<numeric_value_set>] <name> brightness [to] <brightness>"
8
- - " [<numeric_value_set>] [the] brightness [of] <name> [to] <brightness>"
9
- - " [<numeric_value_set>] <name> [to] <brightness> [brightness]"
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>"
14
+
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>"
10
18
response : " brightness"
11
19
requires_context :
12
20
domain : light
13
21
22
+ # Set area/floor brightness
14
23
- sentences :
15
- - " <numeric_value_set> <name> to <brightness>"
16
- requires_context :
17
- domain : " light"
18
- response : " brightness"
19
- - sentences :
20
- - " [<numeric_value_set>] [the] brightness in <area> to <brightness>"
21
- - " [<numeric_value_set>] [the] brightness of <area> to <brightness>"
22
- - " [<numeric_value_set>] <area> brightness [to] <brightness>"
23
- - " [<numeric_value_set>] <area> [to] <brightness> brightness"
24
- - " [<numeric_value_set>] <area> [to] <brightness>"
25
- - " [<numeric_value_set>] [(<all>|<the>)] <light> [<in>] <area> to <brightness> [brightness]"
26
- response : " brightness"
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>"
27
27
28
- - sentences :
29
- - " <numeric_value_set> <area> to <brightness>"
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>"
30
31
response : " brightness"
31
32
33
+ # Set brightness in the current context
32
34
- sentences :
33
- - " [<numeric_value_set >] [the] brightness to <brightness>"
34
- - " [<numeric_value_set >] [the] brightness (<in_here>;to <brightness>) "
35
- expansion_rules :
36
- in_here : " [in] here"
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> "
37
39
response : " brightness"
38
40
requires_context :
39
41
area :
40
42
slot : true
41
43
42
- # Max/Min brightness
43
- - sentences :
44
- - " [<numeric_value_set>] <name> brightness to [the] {brightness_level:brightness}"
45
- - " [<numeric_value_set>] [the] brightness of <name> to [the] {brightness_level:brightness}"
46
- - " [<numeric_value_set>] <name> [to] [the] {brightness_level:brightness} brightness"
47
- requires_context :
48
- domain : light
49
- response : " brightness"
44
+ # ##########
45
+ # # COLOR ##
46
+ # ##########
50
47
48
+ # Set device color
51
49
- sentences :
52
- - " [<numeric_value_set>] [the] brightness in <area> to [the] {brightness_level:brightness}"
53
- - " [<numeric_value_set>] [the] brightness of <area> to [the] {brightness_level:brightness}"
54
- - " [<numeric_value_set>] <area> brightness to [the] {brightness_level:brightness}"
55
- - " [<numeric_value_set>] <area> [to] [the] {brightness_level:brightness} brightness"
56
- response : " brightness"
50
+ - " [<set>] [<area_floor>] <name> [color] [to] {color}"
51
+ - " [<set>] <name> [color] [to] {color} <in_area_floor>"
52
+ - " [<set>] <name> <in_area_floor> [color] [to] {color}"
57
53
58
- - sentences :
59
- - " [<numeric_value_set>] [the] brightness to [the] {brightness_level:brightness}"
60
- - " [<numeric_value_set>] [the] brightness (<in_here>;to [the] {brightness_level:brightness})"
61
- expansion_rules :
62
- in_here : " [in] here"
63
- response : " brightness"
54
+ - " [<set>] [the] color [of] [<area_floor>] <name> [to] {color}"
55
+ - " [<set>] [the] color [of] <name> [to] {color} <in_area_floor>"
56
+ - " [<set>] [the] color [of] <name> <in_area_floor> [to] {color}"
57
+ response : " color"
64
58
requires_context :
65
- area :
66
- slot : true
59
+ domain : light
67
60
68
- # Floor support for brightness
61
+ # Set area/floor color
69
62
- sentences :
70
- - " [<numeric_value_set>] <floor> brightness [to] <brightness>"
71
- response : " brightness"
63
+ - " [<set>] <area_floor> [<light>] [color] [to] {color}"
64
+ - " [<set>] [[(<all>|<the>)] <light>] [color] [to] {color} <in_area_floor>"
65
+ - " [<set>] [(<all>|<the>)] <light> <in_area_floor> [color] [to] {color}"
72
66
73
- # color
74
- - sentences :
75
- - " [<set>] <name> [color] [to] {color}"
76
- - " [<set>] [[the] color of] <name> to {color}"
77
- requires_context :
78
- domain : light
79
- response : " color"
80
- - sentences :
81
- - " [<set>] [[the] color of] (<area> | [<all>] lights in <area> | [all] <area> lights) [to] {color}"
82
- - " [<set>] (<area> | [all] lights in <area> | [all] <area> lights) [color] [to] {color}"
67
+ - " [<set>] [the] color <in_area_floor> [<light>] [to] {color}"
68
+ - " [<set>] [the] color [of] [(<all>|<the>)] <light> [to] {color} <in_area_floor>"
69
+ - " [<set>] [the] color [of] [(<all>|<the>)] <light> <in_area_floor> [to] {color}"
83
70
response : " color"
84
71
72
+ # Set color in the current context
85
73
- sentences :
86
- - " [<set>] [[ the] color of] [(<all>|<the>)] <light> [to] {color}"
87
- - " [<set>] [[ the] color of] [(<all>|<the>)] <light> (<in_here>; [to] {color}) "
88
- expansion_rules :
89
- in_here : " [in] here"
74
+ - " [<set>] [the] color [of [(<all>|<the>)] <light>] [<here>] [to] {color}"
75
+ - " [<set>] [the] color [of [(<all>|<the>)] <light>] [to] {color} <here> "
76
+ - " [<set>] [(<all>|<the>)] <light> [color] [<here>] [to] {color} "
77
+ - " [<set>] [(<all>|<the>)] <light> [color] [to] {color} < here> "
90
78
response : " color"
91
79
requires_context :
92
80
area :
93
81
slot : true
94
-
95
- # Floor support for color
96
- - sentences :
97
- - " [<set>] <floor> [color] [to] {color}"
98
- response : " color"
0 commit comments