Support for Aqara high precision motion sensor (RTCGQ13LM; lumi.motion.agl04)
Information about the device + link
Aqara high precision motion sensor (RTCGQ13LM; lumi.motion.agl04)
It has 2 parameters for customization:
- Sensitivity adjustment (High; Middle; Low)
- Detection period (2-180s, step: 1s)

- https://oh-lalabs.com/articles/review-aqara-high-precision-motion-sensor-rtcgq13lm
- https://community.oh-lalabs.com/t/the-new-aqara-high-precision-motion-sensor-rtcgq13lm/484
- https://www.reddit.com/r/Aqara/comments/k7aeqy/aqara_high_precision_motion_sensor_rtcgq13lm/
- https://www.reddit.com/r/Aqara/comments/kksfnw/quick_test_aqara_high_precision_motion_sensor/
- https://www.youtube.com/watch?v=h6hd60FS650
- https://aliexpress.com/item/1005001739628125.html
- https://item.jd.com/10024066313112.html
data/database.db entry of the device
{"id":42,"type":"EndDevice","ieeeAddr":"0x04cf8cdf3c8a82e0","nwkAddr":53924,"manufId":4447,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.motion.agl04","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":263,"inClusterList":[0,1030,3,1],"outClusterList":[3,25],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.motion.agl04","manufacturerName":"LUMI","powerSource":3,"zclVersion":3,"appVersion":25,"stackVersion":2,"hwVersion":1,"dateCode":"20200722","swBuildId":"2019\u0000www."}}},"binds":[],"meta":{}}},"appVersion":25,"stackVersion":2,"hwVersion":1,"dateCode":"20200722","swBuildId":"2019\u0000www.","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1607196412575}
Additional info
Zigbee2mqtt pairing log
- Zigbee2MQTT:debug 2020-12-05 14:26:14: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true'
- Zigbee2MQTT:info 2020-12-05 14:26:14: Zigbee: allowing new devices to join.
- Zigbee2MQTT:info 2020-12-05 14:26:16: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.16.2","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":104,"product":0,"revision":"0x26680700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"debug","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.16.2"}'
- Zigbee2MQTT:info 2020-12-05 14:26:29: Device '0x04cf8cdf3c8a82e0' joined
- Zigbee2MQTT:info 2020-12-05 14:26:29: Starting interview of '0x04cf8cdf3c8a82e0'
- Zigbee2MQTT:info 2020-12-05 14:26:29: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0"},"type":"device_joined"}'
- Zigbee2MQTT:info 2020-12-05 14:26:29: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","status":"started"},"type":"device_interview"}'
- Zigbee2MQTT:info 2020-12-05 14:26:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c8a82e0"},"type":"device_connected"}'
- Zigbee2MQTT:info 2020-12-05 14:26:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c8a82e0"},"type":"pairing"}'
- Zigbee2MQTT:debug 2020-12-05 14:26:35: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl04"}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:35: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:36: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:36: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:37: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:37: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:39: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:39: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:40: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"appVersion":25}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:40: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:41: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:41: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:43: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:43: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:45: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20200722"}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:45: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:debug 2020-12-05 14:26:46: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID null
- Zigbee2MQTT:debug 2020-12-05 14:26:46: Skipping message, definition is undefined and still interviewing
- Zigbee2MQTT:info 2020-12-05 14:26:46: Successfully interviewed '0x04cf8cdf3c8a82e0', device has successfully been paired
- Zigbee2MQTT:warn 2020-12-05 14:26:46: Device '0x04cf8cdf3c8a82e0' with Zigbee model 'lumi.motion.agl04' and manufacturer name 'LUMI' is NOT supported, please follow https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html
- Zigbee2MQTT:info 2020-12-05 14:26:46: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":null,"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","status":"successful","supported":false},"type":"device_interview"}'
- Zigbee2MQTT:info 2020-12-05 14:26:46: MQTT publish: topic 'zigbee2mqtt/bridge/devices', payload '[{"date_code":"20200722","definition":null,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]}}},"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","interview_completed":true,"interviewing":false,"network_address":37338,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":false,"type":"EndDevice"}]'
- Zigbee2MQTT:info 2020-12-05 14:26:46: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"friendly_name":"0x04cf8cdf3c8a82e0","supported":false},"type":"pairing"}'
Sensor attributes from deCONZ application
Main:

0000 Basic:

0406 Occupansy sensing:

0003 Identify:

0001 Power Configuration:

0019 OTAU:

Dump zigbee-packets with ZBOSS Sniffer and Wireshark
The dump was made according to this instruction:
- RTCGQ13LM.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 21724f48ad8ebbc4f96ae7000506d3fc)
- RTCGQ13LM.txt.zip - decrypted plain text dump
Recorded events in the dump:
- sensor pairing
- changing sensor settings
- Sensitivity adjustment = Low - dump entry โ152
- Sensitivity adjustment = Middle - dump entry โ178
- Sensitivity adjustment = High - dump entry โ228
- Detection period = 180s - dump entry โ258
- Detection period = 2s - dump entry โ283
- motion detections
Environment:
- Sensor firmware version: 0.0.0_0025
- Aqara Hub M1S (ZHWG15LM) firmware version: 3.1.0_0005.0517
- Aqara Home app version: 2.2.4
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
I'm not finding this device anywhere to buy
I'm not finding this device anywhere to buy
Yes, unfortunately this is still the case. I bought this sensor myself by a miracle (my purchase history).
@Koenkk, please check. By analogy with Aqara motion sensor T1 (RTCGQ12LM) and Philips Hue motion sensor (SML001) full support of this sensor is implemented (with changing sensitivity and motion detection period):
Zigbee2mqtt log
- info 2021-02-03 18:44:42: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"2ef2c54","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":25,"extendedPanID":"0x00124b0014d9f126","panID":22442},"permit_join":false,"version":"1.17.0-dev"}'
- debug 2021-02-03 18:45:50: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"cz4aw-1","value":true}'
- info 2021-02-03 18:45:50: Zigbee: allowing new devices to join.
- info 2021-02-03 18:45:50: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"cz4aw-1"}'
- info 2021-02-03 18:46:04: Device '0x04cf8cdf3c8a82e0' joined
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0"},"type":"device_joined"}'
- info 2021-02-03 18:46:04: Starting interview of '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","status":"started"},"type":"device_interview"}'
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c8a82e0"},"type":"device_connected"}'
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c8a82e0"},"type":"pairing"}'
- debug 2021-02-03 18:46:04: Device '0x04cf8cdf3c8a82e0' announced itself
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0"},"type":"device_announce"}'
- info 2021-02-03 18:46:04: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c8a82e0"},"type":"device_announced"}'
- debug 2021-02-03 18:46:07: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl04"}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:07: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl04"}'
- debug 2021-02-03 18:46:08: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:08: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}'
- debug 2021-02-03 18:46:11: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:11: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}'
- debug 2021-02-03 18:46:12: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:12: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}'
- debug 2021-02-03 18:46:13: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"appVersion":26}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:13: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":26}'
- debug 2021-02-03 18:46:14: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:14: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}'
- debug 2021-02-03 18:46:15: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:15: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}'
- debug 2021-02-03 18:46:16: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201123"}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:16: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201123"}'
- debug 2021-02-03 18:46:17: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0
- debug 2021-02-03 18:46:17: No converter available for 'RTCGQ13LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c8a82e0/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c8a82e0/motion_sensitivity/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 motion sensitivity","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_motion_sensitivity_zigbee2mqtt","value_template":"{{ value_json.motion_sensitivity }}"}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c8a82e0/occupancy_timeout/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c8a82e0/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c8a82e0/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
- info 2021-02-03 18:46:17: Successfully interviewed '0x04cf8cdf3c8a82e0', device has successfully been paired
- info 2021-02-03 18:46:17: Device '0x04cf8cdf3c8a82e0' is supported, identified as: Xiaomi Aqara high precision motion sensor (RTCGQ13LM)
- info 2021-02-03 18:46:17: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara high precision motion sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":7,"name":"motion_sensitivity","property":"motion_sensitivity","type":"enum","values":["low","medium","high"]},{"access":7,"description":"Time in seconds till occupancy goes to false","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","unit":"s","value_max":65535,"value_min":0},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ13LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","status":"successful","supported":true},"type":"device_interview"}'
- info 2021-02-03 18:46:17: MQTT publish: topic 'zigbee2mqtt/bridge/devices', payload '[{"definition":null,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"10":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"11":{"bindings":[],"clusters":{"input":["ssIasAce"],"output":["ssIasZone","ssIasWd"]},"configured_reportings":[]},"110":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"12":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"13":{"bindings":[],"clusters":{"input":["genOta"],"output":[]},"configured_reportings":[]},"2":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"242":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"3":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"4":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"47":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"5":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"6":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"8":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]}},"friendly_name":"Coordinator","ieee_address":"0x00124b0014d9f126","interview_completed":true,"interviewing":false,"network_address":0,"supported":false,"type":"Coordinator"},{"date_code":"20201123","definition":{"description":"Aqara high precision motion sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":7,"name":"motion_sensitivity","property":"motion_sensitivity","type":"enum","values":["low","medium","high"]},{"access":7,"description":"Time in seconds till occupancy goes to false","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","unit":"s","value_max":65535,"value_min":0},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ13LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl04","network_address":31572,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]'
- info 2021-02-03 18:46:17: Configuring '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:17: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara high precision motion sensor","friendly_name":"0x04cf8cdf3c8a82e0","model":"RTCGQ13LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}'
- debug 2021-02-03 18:46:17: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c8a82e0/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}'
- debug 2021-02-03 18:46:17: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c8a82e0/motion_sensitivity/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 motion sensitivity","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_motion_sensitivity_zigbee2mqtt","value_template":"{{ value_json.motion_sensitivity }}"}'
- debug 2021-02-03 18:46:18: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c8a82e0/occupancy_timeout/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}'
- debug 2021-02-03 18:46:18: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c8a82e0/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
- debug 2021-02-03 18:46:18: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c8a82e0/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c8a82e0"],"manufacturer":"Xiaomi","model":"Aqara high precision motion sensor (RTCGQ13LM)","name":"0x04cf8cdf3c8a82e0","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","name":"0x04cf8cdf3c8a82e0 linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c8a82e0","unique_id":"0x04cf8cdf3c8a82e0_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
- debug 2021-02-03 18:46:27: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:46:27: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"linkquality":134,"occupancy":true}'
- debug 2021-02-03 18:46:27: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"cz4aw-2","value":false}'
- info 2021-02-03 18:46:27: Zigbee: disabling joining new devices.
- info 2021-02-03 18:46:27: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"cz4aw-2"}'
- debug 2021-02-03 18:46:29: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'msOccupancySensing', data '{"pirOToUDelay":120}' from endpoint 1 with groupID 0
- info 2021-02-03 18:46:29: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"linkquality":134,"occupancy":true,"occupancy_timeout":120}'
- debug 2021-02-03 18:46:30: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'readResponse', cluster 'aqaraOpple', data '{"268":2}' from endpoint 1 with groupID 0
- info 2021-02-03 18:46:30: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"linkquality":134,"motion_sensitivity":"medium","occupancy":true,"occupancy_timeout":120}'
- info 2021-02-03 18:46:30: Successfully configured '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:31: MQTT publish: topic 'zigbee2mqtt/bridge/devices', payload '[{"definition":null,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"10":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"11":{"bindings":[],"clusters":{"input":["ssIasAce"],"output":["ssIasZone","ssIasWd"]},"configured_reportings":[]},"110":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"12":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"13":{"bindings":[],"clusters":{"input":["genOta"],"output":[]},"configured_reportings":[]},"2":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"242":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"3":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"4":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"47":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"5":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"6":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]},"8":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[]}},"friendly_name":"Coordinator","ieee_address":"0x00124b0014d9f126","interview_completed":true,"interviewing":false,"network_address":0,"supported":false,"type":"Coordinator"},{"date_code":"20201123","definition":{"description":"Aqara high precision motion sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":7,"name":"motion_sensitivity","property":"motion_sensitivity","type":"enum","values":["low","medium","high"]},{"access":7,"description":"Time in seconds till occupancy goes to false","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","unit":"s","value_max":65535,"value_min":0},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ13LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00124b0014d9f126","type":"endpoint"}},{"cluster":"msOccupancySensing","target":{"endpoint":1,"ieee_address":"0x00124b0014d9f126","type":"endpoint"}}],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[{"attribute":"occupancy","cluster":"msOccupancySensing","maximum_report_interval":3600,"minimum_report_interval":0,"reportable_change":0},{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}]}},"friendly_name":"0x04cf8cdf3c8a82e0","ieee_address":"0x04cf8cdf3c8a82e0","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl04","network_address":31572,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]'
- debug 2021-02-03 18:46:44: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"motion_sensitivity":"low"}'
- debug 2021-02-03 18:46:44: Publishing 'set' 'motion_sensitivity' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"linkquality":131,"motion_sensitivity":"low","occupancy":true,"occupancy_timeout":120}'
- debug 2021-02-03 18:46:46: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:46:46: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"low","occupancy":true,"occupancy_timeout":120,"voltage":3200}'
- debug 2021-02-03 18:46:49: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":120}'
- debug 2021-02-03 18:46:49: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:49: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":126,"motion_sensitivity":"low","occupancy":true,"occupancy_timeout":120,"voltage":3200}'
- debug 2021-02-03 18:46:50: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":2}'
- debug 2021-02-03 18:46:50: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:46:51: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":120,"motion_sensitivity":"low","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:46:52: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:46:52: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"low","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:21: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:21: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"low","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:27: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"motion_sensitivity":"medium"}'
- debug 2021-02-03 18:48:28: Publishing 'set' 'motion_sensitivity' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:48:28: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":110,"motion_sensitivity":"medium","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:29: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:29: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":120,"motion_sensitivity":"medium","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:37: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"motion_sensitivity":"high"}'
- debug 2021-02-03 18:48:37: Publishing 'set' 'motion_sensitivity' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:48:37: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":102,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:39: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:39: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:43: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:43: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":136,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:48: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:48: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":126,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:48: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:48: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:50: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:52: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:52: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:56: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:56: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:48:57: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:48:57: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:01: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:01: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:02: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:02: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:05: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:05: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:07: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:07: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":136,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:10: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:10: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:11: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:11: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:13: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:13: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:15: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:15: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":126,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:18: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:18: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":136,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:27: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":2}'
- debug 2021-02-03 18:49:27: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:49:27: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":2,"voltage":3200}'
- debug 2021-02-03 18:49:29: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":300}'
- debug 2021-02-03 18:49:29: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- info 2021-02-03 18:49:29: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":300,"voltage":3200}'
- debug 2021-02-03 18:49:31: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:31: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":126,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":300,"voltage":3200}'
- debug 2021-02-03 18:49:35: Saving state to file /opt/zigbee2mqtt/data/state.json
- debug 2021-02-03 18:49:35: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:49:35: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":139,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":300,"voltage":3200}'
- debug 2021-02-03 18:54:27: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:27: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":300,"voltage":3200}'
- debug 2021-02-03 18:54:31: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":300}'
- debug 2021-02-03 18:54:31: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- debug 2021-02-03 18:54:32: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":1}'
- debug 2021-02-03 18:54:32: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- debug 2021-02-03 18:54:35: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:35: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":300,"voltage":3200}'
- debug 2021-02-03 18:54:35: Saving state to file /opt/zigbee2mqtt/data/state.json
- info 2021-02-03 18:54:36: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":300,"voltage":3200}'
- info 2021-02-03 18:54:37: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:39: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:39: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:42: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:42: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:44: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":139,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:47: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:47: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:49: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:49: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":141,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:53: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:53: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":134,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- debug 2021-02-03 18:54:54: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":1}'
- debug 2021-02-03 18:54:54: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- debug 2021-02-03 18:54:55: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c8a82e0/set' with data '{"occupancy_timeout":0}'
- debug 2021-02-03 18:54:55: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c8a82e0'
- debug 2021-02-03 18:54:58: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":32}' from endpoint 1 with groupID 0
- info 2021-02-03 18:54:58: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- info 2021-02-03 18:54:59: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":1,"voltage":3200}'
- info 2021-02-03 18:55:00: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:02: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:02: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:06: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:06: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:07: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:07: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":136,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:11: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:11: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":131,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:12: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:12: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":139,"motion_sensitivity":"high","occupancy":true,"occupancy_timeout":0,"voltage":3200}'
- debug 2021-02-03 18:55:16: Received Zigbee message from '0x04cf8cdf3c8a82e0', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- info 2021-02-03 18:55:16: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8a82e0', payload '{"battery":100,"linkquality":126,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"voltage":3200}'
Environment:
- Sensor firmware version: 0.0.0_0026
- Ebyte E18-2G4U04B (CC2531) firmware version: zStack30x (20190425)
- Zigbee2mqtt version: 1.17.0-dev (2ef2c54)
How to put it to pairing mode? The reset button seems to be not doing what it should
How to put it to pairing mode? The reset button seems to be not doing what it should
To turn on the pairing mode, you need to hold down the button (~ 5 sec) until the blue LED inside the sensor starts to flash periodically.
I got this sensor recently (rare find that was) and I was under the impression that it works with zigbee2mqtt as it is listed. I successfully paired it with HA and it was detected, interviewed. and shows as supported, but no incoming messages are received. The occupancy state never changes. I am confused. Is support for this sensor actually implemented?
I got this sensor recently (rare find that was) and I was under the impression that it works with zigbee2mqtt as it is listed. I successfully paired it with HA and it was detected, interviewed. and shows as supported, but no incoming messages are received. The occupancy state never changes. I am confused. Is support for this sensor actually implemented?
I got this sensor too and it works just fine for me. Try to re-pair it.
Oh man, thanks for returning my faith into trying to fix that! And oh! fk, why is it such a hidden rare knowledge that I just uncovered by an accident that Aqara devices pair very strangely. It appeared that it's not enough to just hold the button on the sensor for 5 secs to turn on the pairing mode, you would need to keep doing short press every 2-3 seconds to pair it properly. I did it like 5 times until it started to work. Maybe that helps someone else.
Hi guys, did the occupancy_timeout and the motion_sensitivity options work for you? For me is not working properly
Hi guys, did the occupancy_timeout and the motion_sensitivity options work for you? For me is not working properly
Immediately after changing the settings in the web interface, you need to press the button on the sensor so that it wakes up and accepts the new parameter values.
Hi guys, did the occupancy_timeout and the motion_sensitivity options work for you? For me is not working properly
Immediately after changing the settings in the web interface, you need to press the button on the sensor so that it wakes up and accepts the new parameter values.
Is it possible to let it wake up without pressing the button. I just would like to update the occupancy_timeout and motion_sensitivity in different time of day, something like high sensitivity in the evening while low sensitivity during daytime. Thanks.
Is it possible to let it wake up without pressing the button. I just would like to update the occupancy_timeout and motion_sensitivity in different time of day, something like high sensitivity in the evening while low sensitivity during daytime. Thanks.
This motion sensor is battery powered and most of the time it sleeps to save energy, so it cannot constantly listen to the radio air to quickly change its settings. To test the feasibility of your idea, you need to experiment. I havenโt done this yet, but maybe Iโll try it somehow.
Is it possible to let it wake up without pressing the button. I just would like to update the occupancy_timeout and motion_sensitivity in different time of day, something like high sensitivity in the evening while low sensitivity during daytime. Thanks.
This motion sensor is battery powered and most of the time it sleeps to save energy, so it cannot constantly listen to the radio air to quickly change its settings. To test the feasibility of your idea, you need to experiment. I havenโt done this yet, but maybe Iโll try it somehow.
cool man. BTW, I try with the method you had mentioned, but still get the following failure, do you have any idea? Nov 29 09:23:21 smarthome npm[9087]: Zigbee2MQTT:error 2021-11-29 09:23:21: Publish 'set' 'occupancy_timeout' to 'primaryroom_washroom_motionsensor' failed: 'Error: Write 0x54ef4410002dc6a2/1 msOccupancySensing({"pirOToUDelay":30}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))' Nov 29 09:23:21 smarthome npm[9087]: Zigbee2MQTT:info 2021-11-29 09:23:21: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'occupancy_timeout' to 'primaryroom_washroom_motionsensor' failed: 'Error: Write 0x54ef4410002dc6a2/1 msOccupancySensing({"pirOToUDelay":30}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))'","meta":{"friendly_name":"primaryroom_washroom_motionsensor"},"type":"zigbee_publish_error"}'
cool man. BTW, I try with the method you had mentioned, but still get the following failure, do you have any idea?
Unfortunately, I am not an expert in debugging, so I can only recommend re-pairing the sensor: remove it from the network and add it again.
cool man. BTW, I try with the method you had mentioned, but still get the following failure, do you have any idea?
Unfortunately, I am not an expert in debugging, so I can only recommend re-pairing the sensor: remove it from the network and add it again.
Cool man. I re-paired the sensor and send the cmd as soon as z2m reported paird successfully. I it was set successfully. Thanks a lot for you kindly help.
Hi guys. Need help. Downgraded CC2531 firmware from 3.0.X to 1.2 for Aqara E1 Switch support. And now I re-paired two motion sensors. And they are don't change the occupancy state. I set up occupancy-timeout to 30 second (and pushed the button on the sensor, yes). State says "occupancy_timeout":30 . But occupancy is true all the time. I see in log when sensor detects motion. But there is nothing in log about changing occupancy to false. So dashboard shows "true". Where to dig? I re-paired them about 5 times. The same picture.
Hi guys. Need help. Downgraded CC2531 firmware from 3.0.X to 1.2 for Aqara E1 Switch support. And now I re-paired two motion sensors. And they are don't change the occupancy state. I set up occupancy-timeout to 30 second (and pushed the button on the sensor, yes). State says "occupancy_timeout":30 . But occupancy is true all the time. I see in log when sensor detects motion. But there is nothing in log about changing occupancy to false. So dashboard shows "true". Where to dig? I re-paired them about 5 times. The same picture.
I think that when working with modified firmware, RTCGQ13LM changed its logic as well as RTCGQ12LM (completely ceases to use standard clusters (msOccupancySensing no longer gives occupancy data and is occupied all the time)).
Therefore, now it is required to write a new converter and I will try to do it in the near future.
Hi guys. Need help. Downgraded CC2531 firmware from 3.0.X to 1.2 for Aqara E1 Switch support. And now I re-paired two motion sensors. And they are don't change the occupancy state. I set up occupancy-timeout to 30 second (and pushed the button on the sensor, yes). State says "occupancy_timeout":30 . But occupancy is true all the time. I see in log when sensor detects motion. But there is nothing in log about changing occupancy to false. So dashboard shows "true". Where to dig? I re-paired them about 5 times. The same picture.
I think that when working with modified firmware, RTCGQ13LM changed its logic as well as RTCGQ12LM (completely ceases to use standard clusters (msOccupancySensing no longer gives occupancy data and is occupied all the time)).
Therefore, now it is required to write a new converter and I will try to do it in the near future.
Thanks a lot. Think the same way. But thanks for approving. And for your help.
Hi guys. Need help. Downgraded CC2531 firmware from 3.0.X to 1.2 for Aqara E1 Switch support. And now I re-paired two motion sensors. And they are don't change the occupancy state. I set up occupancy-timeout to 30 second (and pushed the button on the sensor, yes). State says "occupancy_timeout":30 . But occupancy is true all the time. I see in log when sensor detects motion. But there is nothing in log about changing occupancy to false. So dashboard shows "true". Where to dig? I re-paired them about 5 times. The same picture.
I think that when working with modified firmware, RTCGQ13LM changed its logic as well as RTCGQ12LM (completely ceases to use standard clusters (msOccupancySensing no longer gives occupancy data and is occupied all the time)).
Therefore, now it is required to write a new converter and I will try to do it in the near future.
FYI, my RTCGQ13LM looks like everything is normal, and the coordinator firmware is a modified firmware.
Debug Received Zigbee message from 'motion_sensor_washroom', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
Zigbee2MQTT version: 1.22.1-dev commit: f9aa5250 Coordinator type: zStack3x0 Coordinator revision: 20211217
FYI, my RTCGQ13LM looks like everything is normal, and the coordinator firmware is a modified firmware.
Thank you, I will try to check it with myself in the near future.