Motion sensor (RH3040)¶
This documentation was generated from: rh3040_motion_sensor.json
Attribute | Value |
---|---|
status | Gold |
product | Motion sensor (RH3040) |
modelid | RH3040 RH3040 RH3040 |
manufacturername | TUYATEC-zn9wyqtr TUYATEC-lakq7nse TUYATEC-53o41joc |
1. ZHAPresence¶
Endpoint: /sensors
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "TUYATEC-zn9wyqtr" "TUYATEC-lakq7nse" "TUYATEC-53o41joc" |
R |
modelid | String | "RH3040" "RH3040" "RH3040" |
R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "ZHAPresence" | R |
uniqueid | String | Unique identifier of the resource. | R |
swversion | String | Firmware version of the device. | R |
type | String | "ZHAPresence" | R |
uniqueid | String | Unique identifier of the resource. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
Config attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
battery | UInt8 | The current device battery level in 0–100 %. Default: 0 |
R |
duration | UInt16 | The duration until presence is automatically turned back to false. Default: 120 |
RW |
on | Bool | When true the sensor is enabled in rules. Default: true |
RW |
pending | Array | Pending tasks to configure the device. | R |
reachable | Bool | When true the device is assumed to be operational. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
presence | Bool | True when presence is detected. Default: false |
R |
lowbattery | Bool | True when the device battery runs low. | R |
tampered | Bool | True when the device tampered alarm was triggered. | R |
lastupdated | ISO 8601 timestamp | Timestamp when state was last updated. | R |
Example output¶
{
"config": {
"battery": 75,
"duration": 120,
"on": true,
"pending": [],
"reachable": true
},
"lastseen": "2020-12-29T14:47Z",
"manufacturername": "TUYATEC-lakq7nse",
"modelid": "RH3040",
"name": "Presence 68",
"state": {
"lastupdated": "2020-12-29T14:47:19.022",
"lowbattery": false,
"presence": true,
"tampered": false
},
"swversion": "1.0.3",
"type": "ZHAPresence",
"uniqueid": "14:b4:57:ff:fe:15:66:fc-01-0500"
}