Skip to content

Commit

Permalink
[en] Expand light_HassTurnOn with natural sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
ViViDboarder committed Nov 4, 2024
1 parent 70db9c1 commit 78028a0
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 104 deletions.
13 changes: 8 additions & 5 deletions sentences/en/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@ expansion_rules:
are_any: "[<are> ]<any>"
how_many: "how many[ of the]"
brightness: "{brightness}[[ ]%| percent]"
light: "[the ](light|lights|lighting|lamp|lamps)"
turn: "(turn|switch|change)"
light: "[the ](light|lights|lighting|lamp|lamps|bulb|bulbs|light fixture|light fixtures|light switch|light switches)"
turn: "(turn|switch|change|bring)"
temp: "(temp|temperature)"
temperature: "{temperature}[([ ]°[ ][{temperature_unit}])|( degrees[ {temperature_unit}])]"
open: "(open|raise|lift)[ up]"
close: "(close|shut|lower)[ (up|down)]"
set: "(set|make|change|turn)"
numeric_value_set: "(set|change|turn[ (up|down)]|increase|decrease|make)"
in: "(in|on|at|of)"
in: "(in|on|at|of|across|around|throughout)"
position: "{position}[[ ]%| percent]"
volume: "{volume:volume_level}[[ ]%| percent]"
currently: "(currently|presently|right now|at the moment)"
Expand All @@ -394,8 +394,8 @@ expansion_rules:
all: "(all[[ of] the]|every[ single]|each[ and every])"
are_all: "[<are> ]<all>"
home: "(home|house|appartment|flat)"
everywhere: "(everywhere|in (all|each)[[ of] the] room[s]|in every room[s]|in the <home>)"
here: "(here|in here|in this room|in the room)"
everywhere: "(everywhere|all over|[<in> ](all|each)[[ of] the] room[s]|[<in> ]every room[s]|(in|across|around|throughout) the [(entire|whole) ]<home>|<in> <all> area[s])"
here: "(here|[in ]here|[in ](this|the) (room|area|space))"

# Questions
what_is_the_class_of_name: "(<what_is> the <class> (of|in|from|(indicated|measured) by) <name> [in <area>]|<what_is> <name>['s] <class> [in <area>]|<what_is> <area> <name>['s] <class>)"
Expand All @@ -416,4 +416,7 @@ expansion_rules:
skip_words:
- "please"
- "can you"
- "could you"
- "would you"
- "for me"
- "i'd like"
93 changes: 50 additions & 43 deletions sentences/en/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,79 @@
---
language: "en"
intents:
HassTurnOn:
data:
- sentences:
- "<turn> on (<area> <name> <light_devices>|<name> <light_devices> [in <area>])"
- "[<turn>] (<area> <name> <light_devices>|<name> <light_devices> [in <area>]) [to] on"
- "activate (<area> <name> <light_devices>|<name> <light_devices> [in <area>])"
expansion_rules:
light_devices: "(light[s]|[light] switch[es])"
- "<turn> on (<area_floor> <name> <light>|<name> <light> [<in_area_floor>])"
- "[<turn>] (<area_floor> <name> <light>|<name> <light> [<in_area_floor>]) [to] on"
- "activate (<area_floor> <name> <light>|<name> <light> [<in_area_floor>])"
- "light up (<area_floor> <name> <light>|<name> <light> [<in_area_floor>])"
requires_context:
domain: "light"

- sentences:
- "<turn> on [all] <light> in <area>"
- "<turn> on [all] <area> <light>"
- "[<turn>] [all] <area> <light> on"
- "[<turn>] [all] <light> [in] <area> on"
- "activate [all] <light> [in] <area>"
- "activate [all] <area> <light>"
- "<light> on in <area>"
- "(light up|illuminate) <area>"
- "<area> <light> on"
- "<light> on [in ]<area>"
- "<turn> on [<all> ]<area> <light>"
- "<turn> on [<all> ]<light> <in> <area>"
- "[<turn>] [<all> ]<area> <light> on"
- "[<turn>] [<all> ]<light> <in> <area> on"
- "[<turn>] [<all> ]<light> on <in> <area>"
- "activate [<all> ]<area> <light>"
- "activate [<all> ]<light> <in> <area>"
slots:
domain: "light"
response: "lights_area"

# Turn on all lights on a floor
- sentences:
- "(light up|illuminate) <floor>"
- "<floor> <light> on"
- "<light> on [in ]<floor>"
- "<turn> on [<all> ]<floor> <light>"
- "<turn> on [<all> ]<light> <in> <floor>"
- "[<turn>] [<all> ]<floor> <light> on"
- "[<turn>] [<all> ]<light> <in> <floor> on"
- "[<turn>] [<all> ]<light> on <in> <floor>"
- "activate [<all> ]<floor> <light>"
- "activate [<all> ]<light> <in> <floor>"
response: "lights_floor"
slots:
domain: "light"

# Turn on all lights in the home
- sentences:
- "<turn> <all> <light> on <everywhere>"
- "<turn> on <all> <light> <everywhere>"
- "activate <all> <light> <everywhere>"
- "(light up|activate|illuminate) <all> <light> <everywhere>"
- "(light up|illuminate) the (entire|whole) <home>"
- "(light up|illuminate) <everywhere>[ <everywhere>]"
- "<turn> <all> <light> on[ <everywhere>]"
- "<turn> <light> on <everywhere>"
- "<turn> on <all> <light>[ <everywhere>]"
- "<turn> on <light> <everywhere>"
- "activate <light> <everywhere>"
- "<turn> <all> <light> on"
- "<turn> on <all> <light>"
- "<turn> on [<all> ][the ]<home> <light> <everywhere>"
- "activate <all> <light>"
- "activate <light> <everywhere>"
- "get every <light> on[ <everywhere>]"
- "illuminate <all> areas[ <everywhere>]"
- make sure <all> <light> <is> on
response: "light_all"
slots:
domain: "light"

# Turn on lights in the same area as a satellite device
- sentences:
- "<turn> <all> <light> on <here>"
- "<turn> <light> on <here>"
- "<turn> <all> <light> <here> on"
- "<turn> <light> <here> on"
- "<turn> on <all> <light> <here>"
- "<turn> on <light> <here>"
- "activate <all> <light> <here>"
- "activate <light> <here>"
- "<turn> <light> on"
- "<turn> on <light>"
- "activate <light>"
- "<light> on"
- "<light> on[ <here>]"
- "<turn> [<all> ]<light> on[ <here>]"
- "<turn> [<all> ]<light> <here> on"
- "<turn> on [<all> ]<light>[ <here>]"
- "activate [<all> ]<light>[ <here>]"
- "i want <all> <light> on[ <here>]"
- "light <here> up"
- "light up <here>"
response: "lights_area"
slots:
domain: "light"
requires_context:
area:
slot: true

# Turn on all lights on a floor
- sentences:
- "<turn> on <all> <light> (on|in) <floor>"
- "<turn> on <all> <light> <floor>"
- "<turn> on <all> <floor> <light>"
- "<turn> <floor> <light> on"
- "<floor> <light> on"
- "activate <all> <floor> <light>"
- "activate <all> <light> (on|in) <floor>"
response: "lights_floor"
slots:
domain: "light"
181 changes: 125 additions & 56 deletions tests/en/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,40 @@ language: en
tests:
# Turn on all lights in an area
- sentences:
- "turn on all the lights in the living room"
- "turn on all the lights in living room"
- "turn on the light in the living room"
- "turn on the light in living room"
- "turn on the lights in the living room"
- "turn on the lights in living room"
- "turn on all living room lights"
- "turn on living room light"
- "turn on living room lights"
- "turn on the living room light"
- "turn on all the living room lights"
- "turn all the lights in the living room on"
- "turn all the lights in living room on"
- "turn lights in the living room on"
- "turn the lighting in the living room on"
- "turn the lights in living room on"
- "turn the light in the living room on"
- "turn the light in living room on"
- "turn the living room lights on"
- "living room lights on"
- "activate living room lights"
- "lights living room on"
- "living room lighting on"
- "light on in the living room"
- activate living room lights
- activate the lights in the living room
- can you switch on the living room lights?
- can you turn the lights on in the living room?
- could you turn on the living room lights?
- light up the living room
- light up the living room for me
- living room lighting on
- living room lights on
- living room lights on please
- please turn on the lights in the living room
- switch on the lights in the living room
- turn all the lights in living room on
- turn all the lights in the living room on
- turn lights in the living room on
- turn on all living room lights
- turn on all the lights in living room
- turn on all the lights in the living room
- turn on all the living room lights
- turn on living room light
- turn on living room lights
- turn on the light in living room
- turn on the light in the living room
- turn on the lights in living room
- turn on the lights in the living room
- turn on the lights in the living room for me
- turn on the living room light
- turn on the living room lights
- turn the light in living room on
- turn the light in the living room on
- turn the lighting in the living room on
- turn the lights in living room on
- turn the living room lights on

intent:
name: HassTurnOn
slots:
Expand All @@ -35,38 +45,70 @@ tests:

# Turn on all lights in the home
- sentences:
- Turn all lights on in the appartment
- Switch on every light in the home
- Activate each and every light everywhere
- Turn the lights on in the house
- Switch on the lights in every room
- Activate the lights in the home
- Turn all lights on
- Turn on every light
- Activate each light
- Turn the lights on in all the rooms
- Turn all lighting on
- Activate every single light
- Activate lights in each room
- activate each and every light everywhere
- activate each light
- activate every single light
- activate lights in each room
- activate the lights in the home
- can you turn on all the lights in the house?
- illuminate all areas in the house
- illuminate the entire home
- light up each room in the home
- light up the whole house
- make sure every light is on
- please activate the lights all over
- please turn on all the lights everywhere
- switch on all the lights in the house
- switch on every light in the home
- switch on every single light in the home
- switch on the lights in every room
- turn all lighting on
- turn all lights on
- turn all lights on in the appartment
- turn every light on across the house
- turn on all lights across every room
- turn on all lights in the entire home
- turn on all lights throughout the home
- turn on all the lights in the home
- turn on every light
- turn on lights in every area
- turn on the house lights everywhere
- turn the lights on in all the rooms
- turn the lights on in the house

intent:
name: HassTurnOn
slots:
domain: light

# Turn on lights in the same area as a satellite device
- sentences:
- Turn every light on in this room
- Turn the lights on here
- Turn every light in here on
- Turn the lights in here on
- Switch on each and every light in the room
- Switch on the lights in this room
- Activate all the lights here
- Activate the lights in this room
- Turn the lights on
- Turn on the lights
- Activate the lights
- Lights on
- activate all the lights here
- activate the lights
- activate the lights in this room
- bring on all the lights here
- can you turn on the lights here?
- i want all the lights on in this room
- light this room up
- light up this room
- lights on
- lights on in here please
- please turn every light on in here
- please turn the lights on in here
- switch all the lights on in here
- switch on all lights in this room
- switch on each and every light in the room
- switch on the lights in this room
- turn every light in here on
- turn every light on in this room
- turn on all lights here
- turn on each light in this room
- turn on the lights
- turn on the lights in this space
- turn the lights in here on
- turn the lights on
- turn the lights on here

intent:
name: HassTurnOn
context:
Expand All @@ -78,13 +120,40 @@ tests:

# Turn on all lights on a floor
- sentences:
- Turn on all the lights on the first floor
- Turn on all the lights first floor
- Switch on all first floor lights
- Turn first floor lights on
- First floor lights on
- Activate all first floor lights
- Activate all lights on the first floor
- activate first floor lights
- activate the lights in the first floor
- can you switch on the first floor lights?
- can you turn the lights on in the first floor?
- could you turn on the first floor lights?
- first floor lighting on
- first floor lights on
- first floor lights on please
- light up the first floor
- light up the first floor for me
- please turn on the lights in the first floor
- switch on the lights in the first floor
- turn all the lights in first floor on
- turn all the lights in the first floor on
- turn lights in the first floor on
- turn on all first floor lights
- turn on all the first floor lights
- turn on all the lights in first floor
- turn on all the lights in the first floor
- turn on first floor light
- turn on first floor lights
- turn on the first floor light
- turn on the first floor lights
- turn on the lamp in the first floor
- turn on the light in first floor
- turn on the light in the first floor
- turn on the lights in first floor
- turn on the lights in the first floor
- turn on the lights in the first floor for me
- turn the first floor lights on
- turn the light in first floor on
- turn the light in the first floor on
- turn the lighting in the first floor on
- turn the lights in first floor on
intent:
name: HassTurnOn
slots:
Expand Down

0 comments on commit 78028a0

Please sign in to comment.