Skip to content

Commit

Permalink
[EN] Add floor support to HassClimateGetTemperature
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Dec 27, 2024
1 parent b887e91 commit 84b984f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions intents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ HassClimateGetTemperature:
area:
description: "Name of an area"
required: false
floor:
description: "Name of a floor"
required: false
response_variables:
state:
description: "State of the entity that contains the temperature"
Expand Down
4 changes: 2 additions & 2 deletions sentences/en/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ intents:
# 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_floor>"
- "<what_is> <area> [current] <temp>"
- "<what_is> <name> [current] <temp>"
- "how (hot|cold|warm|cool) is (<name>|[it in] <area>)"
- "how (hot|cold|warm|cool) is (<name>|[it] <in_area_floor>)"
9 changes: 9 additions & 0 deletions tests/en/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ tests:
area: Living Room
response: "68 degrees"

- sentences:
- "what's the temperature in the basement?"
- "how hot is it in the basement?"
intent:
name: HassClimateGetTemperature
slots:
floor: Basement
response: "1 degree"

- sentences:
- "what is the temperature of the office thermostat?"
- "what's the office thermostat temperature?"
Expand Down

0 comments on commit 84b984f

Please sign in to comment.