ym88659208ym87991671
Function smoke_state | Documentation for developers

smoke_state

Last updated on June 17, 2024

Data type: BOOL.

Usage method: stores the device state without changing it.

Purpose: reports whether smoke is detected:

  • true — there is smoke.
  • false — there is no smoke.

Devices with this function

sensor_smoke — smoke sensor.

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": [
"smoke_state",
// ...
]

Function state description example

In the example, the sensor detected smoke.

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