doorcontact_state
Last updated on June 17, 2024
Data type: BOOL.
Usage method: stores the device state without changing it.
Purpose: shows whether the sensor contacts are closed or open:
true
– the sensor's contacts are open. Doors, window shutters or other similar structures are open.false
– the sensor's contacts are closed. Doors, window shutters or other similar structures are closed.
Devices with this function
sensor_door – opening 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": [
"doorcontact_state",
// ...
]
Function state description example
In this example, the sensor's contacts and buckets are closed.
{
"states": [
{
"key": "doorcontact_state",
"value": {
"type": "BOOL",
"bool_value": false
}
}
]
}