ym88659208ym87991671
doorcontact_state | Documentation SmartMarket
Skip to main content

doorcontact_state

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
}
}
]
}
Last updated on August 26, 2022