Skip to content

Commit

Permalink
[EN] Add area-awareness to HassClimateGetTemperature
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Dec 27, 2024
1 parent 2e7344d commit b887e91
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
22 changes: 11 additions & 11 deletions sentences/en/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ language: "en"
intents:
HassClimateGetTemperature:
data:
# What is...
# Get temperature of a climate in the same area as a satellite device
- sentences:
- "<what_is> [the] [current] <temp> [<here>]"
- "how (hot|cold|warm|cool) is it [<here>]"
requires_context:
area:
slot: true

# Get temperature of a climate in an area or with a name
- sentences:
- "<what_is> [the] [current] <temp> [of] <name>"
- "<what_is> [the] [current] <temp> [in <area>]"
- "<what_is> [the] [current] <temp> in <area>"
- "<what_is> <area> [current] <temp>"
- "<what_is> <name> [current] <temp>"
# How...
- sentences:
- "how (hot|cold|warm|cool) is it [in <area>]"
- "how (hot|cold|warm|cool) is <name>"
# Is it...
- sentences:
- "is it (hot|cold|warm|cool) [in <area>]"
requires_context:
domain: "climate"
- "how (hot|cold|warm|cool) is (<name>|[it in] <area>)"
13 changes: 9 additions & 4 deletions tests/en/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
language: en
tests:
- sentences:
- "what's the temperature?"
- "what's the temp?"
- "what is the temperature in here?"
- "what is the temperature?"
- "what is the temp?"
- "how warm is it in here?"
- "how warm is it?"
intent:
name: HassClimateGetTemperature
response: "68 degrees"
context:
area: Office
slots:
area: Office
response: "1 degree"

- sentences:
- "what is the temperature in the living room?"
- "how hot is it in the living room?"
- "how hot is the living room?"
- "what is the living room temperature?"
- "what's the temperature in the living room?"
- "what's the living room temperature?"
Expand Down

0 comments on commit b887e91

Please sign in to comment.