temperature
Data type: INTEGER(-400, 2000).
Usage method: stores the device state without changing it.
Purpose: shows the current temperature. It takes values from the range of -400-2,000 at an interval of 0.1 degree. When describing the device model, you can shorten the range of values accepted by the function or change their interval. For more information, see Allowed values of functions.
Devices with this function
- sensor_temp – temperature and humidity sensors.
- hvac_boiler – boilers, heating controllers.
- hvac_heater – heaters.
- hvac_radiator – thermostats.
- hvac_underfloor_heating – heated floors.
- hvac_ac – air conditioners.
Examples of voice commands
— Салют, какая температура в детской? (Salute, what is the temperature in the children's room?)
— Салют, сколько градусов на веранде? (Salute, how many degrees is the temperature on the patio?)
— Салют, какая температура на обогревателе? (Salute, what is the temperature of the heater?)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"temperature",
// ...
]
Function state description example
The example describes a sensor reporting that the temperature is 22 C.
{
"states": [
{
"key": "temperature",
"value": {
"type": "INTEGER",
"integer_value": "220"
}
}
]
}