gas_leak_state
Last updated on June 17, 2024
Data type: BOOL.
Usage method: stores the device state without changing it.
Purpose: shows whether a gas leak is detected:
true
— gas leak detected.false
— no gas leak detected.
Devices with this function
sensor_gas — gas 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": [
"gas_leak_state",
// ...
]
Function state description example
In the example, the sensor detected a gas leak.
{
"states": [
{
"key": "gas_leak_state",
"value": {
"type": "BOOL",
"bool_value": true
}
}
]
}