ym88659208ym87991671
doorcontact_state | Documentation for developers

doorcontact_state

Last updated on August 26, 2022

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

"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
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.