tamper_alarm
Last updated on June 17, 2024
Data type: BOOL.
Usage method: stores the device state without changing it.
Purpose: sensor tamper alarm:
true
– the sensor is tampered. A malicious person might have broken the cap of the sensor to damage it.false
– the sensor is not tampered. Everything is alright.
Devices with this function
sensor_door – opening 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": [
"tamper_alarm",
// ...
]
Function state description example
In the example, the sensor is not tampered.
{
"states": [
{
"key": "tamper_alarm",
"value": {
"type": "BOOL",
"bool_value": false
}
}
]
}