Voice intent to query room temperature sensor by area (Czech)

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 sensor entity with device_class: temperature assigned 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!

There’s no built-in intent because the system doesn’t know whether it’s a sensor in the refrigerator, the oven, or a regular room thermometer (assuming these are all exposed to the assistant).
You need to create your own intent and choose what to use. Currently, the most convenient filter is by lable.

The syntax of template expressions can be found in this topic.

1 Like

I will check your post. I was thinking about room preferred sensor. This can be configured in room definition.

Jan

Oh, I missed that new feature. The team now has the ability to create an intent if they decide to implement it.

But if you create your own intent, you’re not limited to a single sensor; you can also create complex responses, like combining temperature and humidity. And stuff like that.