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
}
}
]
}