-
Notifications
You must be signed in to change notification settings - Fork 605
[en] Refactor HassLightSet using LLM TDD and new expansions #2783
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,97 +2,91 @@ language: "en" | |||||
intents: | ||||||
HassLightSet: | ||||||
data: | ||||||
# brightness | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] <name> brightness [to] <brightness>" | ||||||
- "[<numeric_value_set>] [the] brightness [of] <name> [to] <brightness>" | ||||||
- "[<numeric_value_set>] <name> [to] <brightness> [brightness]" | ||||||
response: "brightness" | ||||||
requires_context: | ||||||
domain: light | ||||||
################ | ||||||
## BRIGHTNESS ## | ||||||
################ | ||||||
|
||||||
# Set device brightness | ||||||
- sentences: | ||||||
- "<numeric_value_set> <name> to <brightness>" | ||||||
requires_context: | ||||||
domain: "light" | ||||||
response: "brightness" | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] [the] brightness in <area> to <brightness>" | ||||||
- "[<numeric_value_set>] [the] brightness of <area> to <brightness>" | ||||||
- "[<numeric_value_set>] <area> brightness [to] <brightness>" | ||||||
- "[<numeric_value_set>] <area> [to] <brightness> brightness" | ||||||
- "[<numeric_value_set>] <area> [to] <brightness>" | ||||||
- "[<numeric_value_set>] [(<all>|<the>)] <light> [<in>] <area> to <brightness> [brightness]" | ||||||
response: "brightness" | ||||||
- "[<numeric_value_set>] [<area_floor>] <name> [brightness] [to] <brightness>" | ||||||
- "[<numeric_value_set>] <name> [brightness] [to] <brightness> <in_area_floor>" | ||||||
- "[<numeric_value_set>] <name> <in_area_floor> [brightness] [to] <brightness>" | ||||||
|
||||||
- sentences: | ||||||
- "<numeric_value_set> <area> to <brightness>" | ||||||
response: "brightness" | ||||||
- "[<numeric_value_set>] [the] brightness [of] [<area_floor>] <name> [to] <brightness>" | ||||||
- "[<numeric_value_set>] [the] brightness [of] <name> [to] <brightness> <in_area_floor>" | ||||||
- "[<numeric_value_set>] [the] brightness [of] <name> <in_area_floor> [to] <brightness>" | ||||||
|
||||||
- sentences: | ||||||
- "[<numeric_value_set>] [the] brightness to <brightness>" | ||||||
- "[<numeric_value_set>] [the] brightness (<in_here>;to <brightness>)" | ||||||
expansion_rules: | ||||||
in_here: "[in] here" | ||||||
- "[<brightness_relative>] [<area_floor>] <name> [to] <brightness>" | ||||||
- "[<brightness_relative>] <name> [to] <brightness> <in_area_floor>" | ||||||
- "[<brightness_relative>] <name> <in_area_floor> [to] <brightness>" | ||||||
response: "brightness" | ||||||
requires_context: | ||||||
area: | ||||||
slot: true | ||||||
|
||||||
# Max/Min brightness | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] <name> brightness to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] [the] brightness of <name> to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] <name> [to] [the] {brightness_level:brightness} brightness" | ||||||
requires_context: | ||||||
domain: light | ||||||
response: "brightness" | ||||||
|
||||||
# Set area/floor brightness | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] [the] brightness in <area> to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] [the] brightness of <area> to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] <area> brightness to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] <area> [to] [the] {brightness_level:brightness} brightness" | ||||||
- "[<numeric_value_set>] [(<all>|<the>)] <area_floor> [<light>] [brightness] [to] <brightness>" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would match "living room 50%" which, again, may not necessarily mean brightness. It could mean fan speed, it could mean many more things. It's too ambiguous |
||||||
- "[<numeric_value_set>] [[(<all>|<the>)] <light>] [brightness] [to] <brightness> <in_area_floor>" | ||||||
- "[<numeric_value_set>] [(<all>|<the>)] <light> <in_area_floor> [brightness] [to] <brightness>" | ||||||
|
||||||
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <in_area_floor> [<light>] [to] <brightness>" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <light> [to] <brightness> <in_area_floor>" | ||||||
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)]] <light> <in_area_floor> [to] <brightness>" | ||||||
|
||||||
- "[<brightness_relative>] [(<all>|<the>)] <area_floor> [<light>] [to] <brightness>" | ||||||
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [to] <brightness> <in_area_floor>" | ||||||
- "[<brightness_relative>] [(<all>|<the>)] <light> <in_area_floor> [to] <brightness>" | ||||||
Comment on lines
+36
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With optional |
||||||
response: "brightness" | ||||||
|
||||||
# Set brightness in the current context | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] [the] brightness to [the] {brightness_level:brightness}" | ||||||
- "[<numeric_value_set>] [the] brightness (<in_here>;to [the] {brightness_level:brightness})" | ||||||
expansion_rules: | ||||||
in_here: "[in] here" | ||||||
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [<here>] [to] <brightness>" | ||||||
- "[<numeric_value_set>] [the] brightness [of [(<all>|<the>)] <light>] [to] <brightness> <here>" | ||||||
- "[<numeric_value_set>] [(<all>|<the>)] <light> [brightness] [<here>] [to] <brightness>" | ||||||
- "[<numeric_value_set>] [(<all>|<the>)] <light> [brightness] [to] <brightness> <here>" | ||||||
|
||||||
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [<here>] [to] <brightness>" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouch! "Hey Nabu... 70%" 😅 Definitely no! |
||||||
- "[<brightness_relative>] [[(<all>|<the>)] <light>] [to] <brightness> <here>" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing, "70% here" is too vague. |
||||||
response: "brightness" | ||||||
requires_context: | ||||||
area: | ||||||
slot: true | ||||||
|
||||||
# Floor support for brightness | ||||||
- sentences: | ||||||
- "[<numeric_value_set>] <floor> brightness [to] <brightness>" | ||||||
response: "brightness" | ||||||
########### | ||||||
## COLOR ## | ||||||
########### | ||||||
|
||||||
# color | ||||||
# Set device color | ||||||
- sentences: | ||||||
- "[<set>] <name> [color] [to] {color}" | ||||||
- "[<set>] [[the] color of] <name> to {color}" | ||||||
- "[<set>] [<area_floor>] <name> [color] [to] {color}" | ||||||
- "[<set>] <name> [color] [to] {color} <in_area_floor>" | ||||||
- "[<set>] <name> <in_area_floor> [color] [to] {color}" | ||||||
|
||||||
- "[<set>] [the] color [of] [<area_floor>] <name> [to] {color}" | ||||||
- "[<set>] [the] color [of] <name> [to] {color} <in_area_floor>" | ||||||
- "[<set>] [the] color [of] <name> <in_area_floor> [to] {color}" | ||||||
response: "color" | ||||||
requires_context: | ||||||
domain: light | ||||||
response: "color" | ||||||
|
||||||
# Set area/floor color | ||||||
- sentences: | ||||||
- "[<set>] [[the] color of] (<area> | [<all>] lights in <area> | [all] <area> lights) [to] {color}" | ||||||
- "[<set>] (<area> | [all] lights in <area> | [all] <area> lights) [color] [to] {color}" | ||||||
- "[<set>] <area_floor> [<light>] [color] [to] {color}" | ||||||
- "[<set>] [[(<all>|<the>)] <light>] [color] [to] {color} <in_area_floor>" | ||||||
- "[<set>] [(<all>|<the>)] <light> <in_area_floor> [color] [to] {color}" | ||||||
|
||||||
- "[<set>] [the] color <in_area_floor> [<light>] [to] {color}" | ||||||
- "[<set>] [the] color [of] [(<all>|<the>)] <light> [to] {color} <in_area_floor>" | ||||||
- "[<set>] [the] color [of] [(<all>|<the>)] <light> <in_area_floor> [to] {color}" | ||||||
response: "color" | ||||||
|
||||||
# Set color in the current context | ||||||
- sentences: | ||||||
- "[<set>] [[the] color of] [(<all>|<the>)] <light> [to] {color}" | ||||||
- "[<set>] [[the] color of] [(<all>|<the>)] <light> (<in_here>;[to] {color})" | ||||||
expansion_rules: | ||||||
in_here: "[in] here" | ||||||
- "[<set>] [the] color [of [(<all>|<the>)] <light>] [<here>] [to] {color}" | ||||||
- "[<set>] [the] color [of [(<all>|<the>)] <light>] [to] {color} <here>" | ||||||
- "[<set>] [(<all>|<the>)] <light> [color] [<here>] [to] {color}" | ||||||
- "[<set>] [(<all>|<the>)] <light> [color] [to] {color} <here>" | ||||||
response: "color" | ||||||
requires_context: | ||||||
area: | ||||||
slot: true | ||||||
|
||||||
# Floor support for color | ||||||
- sentences: | ||||||
- "[<set>] <floor> [color] [to] {color}" | ||||||
response: "color" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The mid lit" doesn't sound right