ym88659208ym87991671
Function temp_unit_view | Documentation for developers

temp_unit_view

Last updated on June 17, 2024

Data type: ENUM.

Usage method: stores the device state without changing it.

Purpose: temperature scale displayed on the sensor screen:

  • c – degrees Celsium.
  • f – degrees Fahrenheit.

The function must be used only for sensors with a screen capable of displaying temperature according to several scales. E.g. if a sensor has a screen but shows the temperature only in C, the function value should not be indicated.

Devices with this function

sensor_temp – temperature and humidity sensors.

Examples of voice commands

No voice commands are available.

Function description for a device model

The function must be added to the model descriptions of all devices that support it.

"features": [
"temp_unit_view",
// ...
]

Function state description example

The example describes a sensor capable of displaying temperature according to several temperature scales. Now it display data in C.

{
"states": [
{
"key": "temp_unit_view",
"value": {
"type": "ENUM",
"enum_value": "c"
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.