From 84b984f729e39717d5934408e64e9bce3971f412 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Fri, 27 Dec 2024 15:58:39 +0000 Subject: [PATCH] [EN] Add floor support to HassClimateGetTemperature --- intents.yaml | 3 +++ sentences/en/climate_HassClimateGetTemperature.yaml | 4 ++-- tests/en/climate_HassClimateGetTemperature.yaml | 9 +++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/intents.yaml b/intents.yaml index 530338cf28..7f63e4d365 100644 --- a/intents.yaml +++ b/intents.yaml @@ -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" diff --git a/sentences/en/climate_HassClimateGetTemperature.yaml b/sentences/en/climate_HassClimateGetTemperature.yaml index 347782cc80..70802945f9 100644 --- a/sentences/en/climate_HassClimateGetTemperature.yaml +++ b/sentences/en/climate_HassClimateGetTemperature.yaml @@ -13,7 +13,7 @@ intents: # Get temperature of a climate in an area or with a name - sentences: - " [the] [current] [of] " - - " [the] [current] in " + - " [the] [current] " - " [current] " - " [current] " - - "how (hot|cold|warm|cool) is (|[it in] )" + - "how (hot|cold|warm|cool) is (|[it] )" diff --git a/tests/en/climate_HassClimateGetTemperature.yaml b/tests/en/climate_HassClimateGetTemperature.yaml index 5ff3f93e13..9f2ccdbf69 100644 --- a/tests/en/climate_HassClimateGetTemperature.yaml +++ b/tests/en/climate_HassClimateGetTemperature.yaml @@ -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?"