Function pir | Documentation for developers


Last updated on November 25, 2022

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

"features": [
// ...

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.