From b887e91e2ddd86c03be98158ac6f327f9a8a1953 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Fri, 27 Dec 2024 01:35:51 +0000 Subject: [PATCH] [EN] Add area-awareness to HassClimateGetTemperature --- .../en/climate_HassClimateGetTemperature.yaml | 22 +++++++++---------- .../en/climate_HassClimateGetTemperature.yaml | 13 +++++++---- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/sentences/en/climate_HassClimateGetTemperature.yaml b/sentences/en/climate_HassClimateGetTemperature.yaml index 2f30b5b963..347782cc80 100644 --- a/sentences/en/climate_HassClimateGetTemperature.yaml +++ b/sentences/en/climate_HassClimateGetTemperature.yaml @@ -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: + - " [the] [current] []" + - "how (hot|cold|warm|cool) is it []" + requires_context: + area: + slot: true + + # Get temperature of a climate in an area or with a name - sentences: - " [the] [current] [of] " - - " [the] [current] [in ]" + - " [the] [current] in " - " [current] " - " [current] " - # How... - - sentences: - - "how (hot|cold|warm|cool) is it [in ]" - - "how (hot|cold|warm|cool) is " - # Is it... - - sentences: - - "is it (hot|cold|warm|cool) [in ]" - requires_context: - domain: "climate" + - "how (hot|cold|warm|cool) is (|[it in] )" diff --git a/tests/en/climate_HassClimateGetTemperature.yaml b/tests/en/climate_HassClimateGetTemperature.yaml index ced9875119..5ff3f93e13 100644 --- a/tests/en/climate_HassClimateGetTemperature.yaml +++ b/tests/en/climate_HassClimateGetTemperature.yaml @@ -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?"