doorcontact_state

Data type: BOOL.

Method of use: device status is stored and cannot be changed.

Purpose: indicates whether the sensor contacts are open or closed:

  • true means that the sensor contacts are closed. It means that the sashes of a window, door or another similar structure are closed.
  • false means that the sensor contacts are opened. It means that the sashes of a window, door or another similar structure are opened.

Devices with this feature

sensor_door are opening sensors.

Sample voice commands

Note that currently only commands in Russian are supported. The translation of the commands into English is given in parentheses.

Sample commands:

— Салют, открыто ли окно? (Salute, is the window open?)

— Салют, закрыто ли окно? (Salute, is the window closed?)

Function description for a device model

"features": [
    "doorcontact_state",
    // ...
 ]

Sample description of a function state

In the sample, the sensor state means that the contacts and the sashes are closed.

{
    "states": [
        {
            "key": "doorcontact_state",
            "value": {
                "type": "BOOL",
                "bool_value": true
            }
        }
    ]
}