Hello,
I wanted to create custom sentence for voice in HA.
I want to ask Assist questions like:
- “Kolik je stupňů v kanceláři?” (How many degrees in the office?)
- “Jaká je teplota v ložnici?” (What is the temperature in the bedroom?)
- “Kolik je tu stupňů?” (How many degrees is it here?)
And have it return the value from the temperature sensor assigned to that area (not a climate/thermostat entity).
My setup:
- Each room has a
sensorentity withdevice_class: temperatureassigned to the area - In the Area settings, the sensor is set as the “Temperature sensor” under Related sensors
- I am using Czech (
cs) as my Assist language
The problem:
The built-in HassClimateGetTemperature intent only works with climate domain entities (thermostats), not standalone sensor entities.
language: "cs"
intents:
HassGetState:
data:
- sentences:
- "(jaká|jaké) [je] [tam|tu|tady] teplota [<v> <area>]"
- "kolik [je] [tam|tu|tady] stupňů [<v> <area>]"
- "jak [je] [tam|tu|tady] teplo [<v> <area>]"
- "[<v> <area>] (jaká|jaké) [je] teplota"
- "[<v> <area>] kolik [je] stupňů"
slots:
domain: sensor
device_class: temperature
response: temperature_response
responses:
intents:
HassGetState:
temperature_response: ????
Any help or pointer to existing solutions appreciated. Thanks!