water_leak_state
Last updated on June 17, 2024
Data type: BOOL.
Usage method: stores the device state without changing it.
Purpose: indicates whether a leak has been detected (is there water on the sensor):
true
– there is water on the sensor.false
– there is no water on the sensor.
Devices with this function
sensor_water_leak – leak sensors.
Examples of voice commands
— Салют, нет ли протечки в ванной? (Salute, is there a leak in the bathroom?)
— Салют, проверь, не сработал ли датчик протечки на кухне? (Salute, check if the leak sensor in the kitchen went off?)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"water_leak_state",
// ...
]
Function state description example
In the example, the sensor detected a water leak.
{
"states": [
{
"key": "water_leak_state",
"value": {
"type": "BOOL",
"bool_value": true
}
}
]
}