ym88659208ym87991671
Function pir | Documentation SmartMarket
Skip to main content

pir

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

Function state description example

The example describes a sensor that notifies of motion detection.

{
"states": [
{
"key": "pir",
"value": {
"type": "ENUM",
"enum_value": "pir"
}
}
]
}
Last updated on August 26, 2022