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"
}
}
]
}