ym88659208ym87991671
Function pir | Documentation for developers

pir

Last updated on June 17, 2024

Data type: ENUM.

Usage method: notifies about the state of the device, but cannot change it.

Purpose: notifies when motion is detected:

  • pir – it's sent when motion is detected.

Devices with this function

sensor_pir – motion 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": [
"pir",
// ...
]

Function state description example

The example describes a sensor that notifies of motion detection.

{
"states": [
{
"key": "pir",
"value": {
"type": "ENUM",
"enum_value": "pir"
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.