Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.11k stars 1.68k forks source link

Support for Aqara motion sensor T1 (RTCGQ12LM; lumi.motion.agl02) #5706

Closed Otnow closed 2 years ago

Otnow commented 3 years ago

Information about the device + link

Aqara motion sensor T1 (RTCGQ12LM; lumi.motion.agl02)

It has 1 parameter for customization:

RTCGQ12LM

data/database.db entry of the device

{"id":46,"type":"EndDevice","ieeeAddr":"0x04cf8cdf3c7fd37e","nwkAddr":56004,"manufId":4447,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.motion.agl02","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":263,"inClusterList":[0,1030,3,1],"outClusterList":[3,25],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.motion.agl02","manufacturerName":"LUMI","powerSource":3,"zclVersion":3,"appVersion":29,"stackVersion":2,"hwVersion":1,"dateCode":"20200327","swBuildId":"2019\u0000www."}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":29,"stackVersion":2,"hwVersion":1,"dateCode":"20200327","swBuildId":"2019\u0000www.","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1610396769681}

Additional info

Zigbee2mqtt pairing log - Zigbee2MQTT:debug 2021-01-11 23:25:46: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true' - Zigbee2MQTT:info 2021-01-11 23:25:46: Zigbee: allowing new devices to join. - Zigbee2MQTT:info 2021-01-11 23:25:47: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","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.17.0"}' - Zigbee2MQTT:info 2021-01-11 23:25:57: Device '0x04cf8cdf3c7fd37e' joined - Zigbee2MQTT:info 2021-01-11 23:25:57: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - Zigbee2MQTT:info 2021-01-11 23:25:57: Starting interview of '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:info 2021-01-11 23:25:57: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-11 23:25:57: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - Zigbee2MQTT:info 2021-01-11 23:25:57: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - Zigbee2MQTT:debug 2021-01-11 23:26:01: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:01: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:02: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:02: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:03: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:03: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:04: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:04: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:05: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":29}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:05: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:06: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:06: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:07: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:07: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20200327"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:08: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:debug 2021-01-11 23:26:09: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-11 23:26:09: Skipping message, definition is undefined and still interviewing - Zigbee2MQTT:info 2021-01-11 23:26:09: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - Zigbee2MQTT:warn 2021-01-11 23:26:09: Device '0x04cf8cdf3c7fd37e' with Zigbee model 'lumi.motion.agl02' and manufacturer name 'LUMI' is NOT supported, please follow https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html - Zigbee2MQTT:info 2021-01-11 23:26:09: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":null,"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":false},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-11 23:26:09: MQTT publish: topic 'zigbee2mqtt/bridge/devices', payload '**[{"date_code":"20200327","definition":null,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":56004,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":false,"type":"EndDevice"}]**' - Zigbee2MQTT:info 2021-01-11 23:26:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"friendly_name":"0x04cf8cdf3c7fd37e","supported":false},"type":"pairing"}'
Dump zigbee-packets with ZBOSS Sniffer and Wireshark The dump was made according to [this instruction](https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html): - [RTCGQ12LM.pcapng.gz](https://github.com/Koenkk/zigbee2mqtt/files/5798137/RTCGQ12LM.pcapng.gz) - encrypted pcapng-dump (_Network Key for decryption entries: 21724f48ad8ebbc4f96ae7000506d3fc_) - [RTCGQ12LM.txt.zip](https://github.com/Koenkk/zigbee2mqtt/files/5798141/RTCGQ12LM.txt.zip) - decrypted plain text dump **Recorded events in the dump:** - sensor pairing - changing sensor settings - _Detection period = 199s_ - dump entry №121 - _Detection period = 2s_ - dump entry №183 - motion detections **Environment:** - Sensor firmware version: _0.0.0_0029_ - Aqara Hub M1S (ZHWG15LM) firmware version: _3.1.0_0005.0517_ - Aqara Home app version: _2.2.4_
sjorge commented 3 years ago

Try with adding to devices.js

    {
        zigbeeModel: ['lumi.motion.agl02'],
        model: 'RTCGQ12LM',
        vendor: 'Xiaomi',
        description: 'Aqara human body movement and illuminance sensor',
        meta: {battery: {voltageToPercentage: '3V_2100'}},
        fromZigbee: [fz.xiaomi_battery, fz.occupancy_with_timeout, fz.RTCGQ11LM_illuminance, fz.RTCGQ11LM_interval],
        toZigbee: [],
        exposes: [e.battery(), e.occupancy(), e.illuminance_lux().withProperty('illuminance'),
            e.illuminance().withUnit('lx').withDescription('Measured illuminance in lux')],
    },
Otnow commented 3 years ago

Try with adding to devices.js

Zigbee2mqtt pairing log with modify devices.js - Zigbee2MQTT:debug 2021-01-12 00:30:03: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true' - Zigbee2MQTT:info 2021-01-12 00:30:03: Zigbee: allowing new devices to join. - Zigbee2MQTT:info 2021-01-12 00:30:04: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","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.17.0"}' - Zigbee2MQTT:info 2021-01-12 00:30:13: Device '0x04cf8cdf3c7fd37e' joined - Zigbee2MQTT:info 2021-01-12 00:30:13: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - Zigbee2MQTT:info 2021-01-12 00:30:13: Starting interview of '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:info 2021-01-12 00:30:13: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-12 00:30:13: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - Zigbee2MQTT:info 2021-01-12 00:30:13: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - Zigbee2MQTT:debug 2021-01-12 00:30:19: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:20: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:21: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:23: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":29}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:24: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:25: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:26: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20200327"}' from endpoint 1 with groupID null - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID null - Zigbee2MQTT:info 2021-01-12 00:30:27: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - Zigbee2MQTT:info 2021-01-12 00:30:27: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Measured illuminance in lux","name":"illuminance_lux","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Measured illuminance in lux","name":"illuminance","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance_lux/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance lux","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_lux_zigbee2mqtt","unit_of_measurement":"lx","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"lx","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'zigbee2mqtt/bridge/devices', payload '[{"date_code":"20200327","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Measured illuminance in lux","name":"illuminance_lux","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Measured illuminance in lux","name":"illuminance","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":42597,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - Zigbee2MQTT:info 2021-01-12 00:30:27: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance_lux/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance lux","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_lux_zigbee2mqtt","unit_of_measurement":"lx","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"lx","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:debug 2021-01-12 00:30:27: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'

After pairing, no sensor events appear.

Sensor exposes in Web-interface:

_battery - N/A % occupancy - N/A illuminancelux - N/A lx illuminance - N/A lx linkquality - 47 lqi

sjorge commented 3 years ago

If you remove all entries from fromZigbee, restart z2m... do any messages show up for missing converters?

Otnow commented 3 years ago

If you remove all entries from fromZigbee, restart z2m... do any messages show up for missing converters?

Only such events appeared - Zigbee2MQTT:debug 2021-01-12 01:27:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - Zigbee2MQTT:debug 2021-01-12 01:27:46: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - Zigbee2MQTT:debug 2021-01-12 01:27:47: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - Zigbee2MQTT:debug 2021-01-12 01:27:48: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - Zigbee2MQTT:debug 2021-01-12 01:27:49: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":29}' - Zigbee2MQTT:debug 2021-01-12 01:27:50: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - Zigbee2MQTT:debug 2021-01-12 01:27:51: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - Zigbee2MQTT:debug 2021-01-12 01:27:52: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20200327"}' - Zigbee2MQTT:debug 2021-01-12 01:27:53: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}'

Moreover, after listening to the zigbee-traffic, I see that the sensor does not respond to movement (there are no corresponding events - "Report Attributes") after pairing with the zigbee-stick.

Koenkk commented 3 years ago

@Otnow I think you have to sniff the traffic with the original gateway as we need to figure out how to configure the detection period. So start sniffing, pair it with the gateway, change detection period. https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

Otnow commented 3 years ago

@Otnow I think you have to sniff the traffic with the original gateway as we need to figure out how to configure the detection period. So start sniffing, pair it with the gateway, change detection period. https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

I already made such a dump in advance and placed it in the initial post in the Additional info section under the spoiler Dump zigbee-packets with ZBOSS Sniffer and Wireshark )

Koenkk commented 3 years ago

@Otnow sorry for being blind. I've created an initial pr, it only allows setting the detection period: https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files

Seems that something non standard is used for occupancy. Can you provide the packet numbers of occupancy: true and false (please provide multiple)

Otnow commented 3 years ago

Seems that something non standard is used for occupancy. Can you provide the packet numbers of occupancy: true and false (please provide multiple)

When motion is detected, only 1 event is generated: dump entries № 214, 220, 226, 232, 238, 244, 251, 257, 263 (events were generated every 2 seconds, because detection period = 2s). There are no events at the end of the detection period.

Otnow commented 3 years ago

By analogy with the Aqara T1 temperature, humidity and pressure sensor (WSDCGQ12LM), this code:

{
    zigbeeModel: ['lumi.motion.agl02'],
    model: 'RTCGQ12LM',
    vendor: 'Xiaomi',
    description: 'Aqara T1 human body movement and illuminance sensor',
    fromZigbee: [],
    toZigbee: [],
    meta: {},
    configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint = device.getEndpoint(1);
        const binds = ['msOccupancySensing'];           
        await reporting.bind(endpoint, coordinatorEndpoint, binds);
    },
    exposes: [],
},

allows you to generate a motion detection event in the log:

Koenkk commented 3 years ago

Can you check updates of https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files?

Following should work now: occupancy, illuminance and battery (please check carefully in the logs if configure is succesfull, you can force it via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgerequestdeviceconfigure)

Otnow commented 3 years ago

Can you check updates of https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files?

The test showed that motion events appear, but the set detection period is not observed, although the parameter is set normally. Also, illuminance and battery power are not displayed.

Log - debug 2021-01-14 00:55:18: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true' - info 2021-01-14 00:55:18: Zigbee: allowing new devices to join. - info 2021-01-14 00:55:18: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":true,"version":"1.17.0"}' - info 2021-01-14 00:55:30: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-14 00:55:30: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-14 00:55:30: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-14 00:55:30: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-14 00:55:30: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-14 00:55:30: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-14 00:55:31: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-14 00:55:31: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-14 00:55:31: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-14 00:55:34: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:34: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-14 00:55:35: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:35: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-14 00:55:38: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:38: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-14 00:55:39: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:39: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-14 00:55:40: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":29}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:40: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":29}' - debug 2021-01-14 00:55:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-14 00:55:42: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:42: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-14 00:55:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20200327"}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:43: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20200327"}' - debug 2021-01-14 00:55:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-14 00:55:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-14 00:55:44: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-14 00:55:44: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-14 00:55:44: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - info 2021-01-14 00:55:44: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - info 2021-01-14 00:55:44: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-14 00:55:44: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-14 00:55:44: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-14 00:55:44: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-14 00:55:44: 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":"20200327","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":2171,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-14 00:55:44: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-14 00:55:44: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-14 00:55:44: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-14 00:55:44: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-14 00:55:44: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - debug 2021-01-14 00:55:44: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - debug 2021-01-14 00:55:44: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - debug 2021-01-14 00:55:47: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-14 00:55:47: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":8,"linkquality":157,"occupancy":true,"voltage":3100}' - debug 2021-01-14 00:55:48: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false' - info 2021-01-14 00:55:48: Zigbee: disabling joining new devices. - debug 2021-01-14 00:55:48: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false' - info 2021-01-14 00:55:48: Zigbee: disabling joining new devices. - error 2021-01-14 00:55:48: Failed to configure '0x04cf8cdf3c7fd37e', attempt 1 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:185:23) at Endpoint. (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:408:26) at Generator.next () at fulfilled (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) - info 2021-01-14 00:55:49: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0"}' - info 2021-01-14 00:55:49: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0"}' - debug 2021-01-14 00:56:35: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-14 00:56:35: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-14 00:56:36: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":157,"occupancy":true,"voltage":3100}' - debug 2021-01-14 00:56:59: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-14 00:56:59: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":134,"occupancy":true,"voltage":3100}' - info 2021-01-14 00:56:59: Configuring '0x04cf8cdf3c7fd37e' - error 2021-01-14 00:57:03: Failed to configure '0x04cf8cdf3c7fd37e', attempt 2 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:185:23) at Endpoint. (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:408:26) at Generator.next () at fulfilled (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) - debug 2021-01-14 00:59:22: Saving state to file /share/zigbee2mqtt/state.json - debug 2021-01-14 01:00:30: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-14 01:00:30: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":144,"occupancy":false,"voltage":3100}' - info 2021-01-14 01:00:30: Configuring '0x04cf8cdf3c7fd37e' - error 2021-01-14 01:00:40: Failed to configure '0x04cf8cdf3c7fd37e', attempt 3 (Error: Bind 0x04cf8cdf3c7fd37e/1 msOccupancySensing from '0x00124b0014d9f126/1' failed (AREQ - ZDO - bindRsp after 10000ms) at Timeout._onTimeout (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)) - debug 2021-01-14 01:01:04: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-14 01:01:04: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":144,"occupancy":true,"voltage":3100}' - debug 2021-01-14 01:02:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-14 01:02:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":141,"occupancy":false,"voltage":3100}' - debug 2021-01-14 01:03:28: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":3}' - debug 2021-01-14 01:03:28: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - error 2021-01-14 01:03:38: Publish 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' failed: 'Error: Write 0x04cf8cdf3c7fd37e/1 aqaraOpple({"258":{"value":3,"type":32}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null}) failed (Data request failed with error: 'Timeout' (9999))' - debug 2021-01-14 01:03:38: Error: Write 0x04cf8cdf3c7fd37e/1 aqaraOpple({"258":{"value":3,"type":32}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null}) failed (Data request failed with error: 'Timeout' (9999)) at ZStackAdapter. (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:339:27) at Generator.next () at fulfilled (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:24:58) - info 2021-01-14 01:03:38: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' failed: 'Error: Write 0x04cf8cdf3c7fd37e/1 aqaraOpple({\"258\":{\"value\":3,\"type\":32}}, {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":true,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":4447,\"transactionSequenceNumber\":null}) failed (Data request failed with error: 'Timeout' (9999))'","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"zigbee_publish_error"}' - debug 2021-01-14 01:04:22: Saving state to file /share/zigbee2mqtt/state.json - debug 2021-01-14 01:05:13: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-14 01:05:13: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - debug 2021-01-14 01:05:16: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":3}' - debug 2021-01-14 01:05:16: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-14 01:05:20: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":149,"occupancy":false,"voltage":3100}' - info 2021-01-14 01:05:21: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":139,"occupancy":false,"voltage":3100}' - debug 2021-01-14 01:05:25: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-14 01:05:25: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":162,"occupancy":true,"voltage":3100}' - debug 2021-01-14 01:07:11: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-14 01:07:11: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":160,"occupancy":false,"voltage":3100}' - debug 2021-01-14 01:08:19: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-14 01:08:19: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":162,"occupancy":true,"voltage":3100}' - debug 2021-01-14 01:09:22: Saving state to file /share/zigbee2mqtt/state.json - debug 2021-01-14 01:10:40: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-14 01:10:40: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":157,"occupancy":false,"voltage":3100}' - debug 2021-01-14 01:10:56: Received MQTT message on 'zigbee2mqtt/bridge/request/device/configure' with data '{"id":"0x04cf8cdf3c7fd37e","transaction":"mqqqu-1"}' - info 2021-01-14 01:10:56: Configuring '0x04cf8cdf3c7fd37e' - error 2021-01-14 01:11:00: Failed to configure '0x04cf8cdf3c7fd37e', attempt 4 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:185:23) at Endpoint. (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:408:26) at Generator.next () at fulfilled (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) - info 2021-01-14 01:11:00: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure', payload '{"data":{"id":"0x04cf8cdf3c7fd37e"},"error":"Failed to configure (ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{\"attribute\":\"batteryPercentageRemaining\",\"minimumReportInterval\":3600,\"maximumReportInterval\":62000,\"reportableChange\":0}], {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":true,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE'))","status":"error","transaction":"mqqqu-1"}' - debug 2021-01-14 01:11:01: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-14 01:11:01: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":115,"occupancy":true,"voltage":3100}' - debug 2021-01-14 01:12:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-14 01:12:57: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":3,"linkquality":157,"occupancy":false,"voltage":3100}'
Koenkk commented 3 years ago

Made some more updates to https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files, battery and illuminance should work after this

, but the set detection period is not observed, although the parameter is set normally.

I don't understand what you mean with this, can you explain it further?

Otnow commented 3 years ago

Made some more updates to https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files, battery and illuminance should work after this

The battery power is now displayed, but the illuminance is still not:

- Zigbee2MQTT:error 2021-01-15 20:58:32: Failed to configure '0x04cf8cdf3c7fd37e', attempt 1 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 msIlluminanceMeasurement([{"attribute":"measuredValue","minimumReportInterval":15,"maximumReportInterval":3600,"reportableChange":500}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Timeout - 9879 - 1 - 14 - 1024 - 7 after 10000ms)
    at Timeout._onTimeout (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7))
Here is this error in the form of 2 zigbee packets (command and response) ``` No. Time Source Destination Protocol Length Dectination Port Info 1214 2021-01-15 20:59:14.927202 0x0000 0x2697 ZigBee HA 69 ZCL: Configure Reporting, Seq: 18 Frame 1214: 69 bytes on wire (552 bits), 69 bytes captured (552 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 15, 2021 20:59:14.927202000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1610733554.927202000 seconds [Time delta from previous captured frame: 0.007457000 seconds] [Time delta from previous displayed frame: 0.007457000 seconds] [Time since reference or first frame: 970.230916000 seconds] Frame Number: 1214 Frame Length: 69 bytes (552 bits) Capture Length: 69 bytes (552 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0x2697, Src: 0x0000 Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 175 Destination PAN: 0x1a62 Destination: 0x2697 Source: 0x0000 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 1] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -30 dB LQI Correlation Value: 108 ZigBee Network Layer Data, Dst: 0x2697, Src: 0x0000 Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0x2697 Source: 0x0000 Radius: 30 Sequence Number: 55 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 1] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 57977 Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26) Key Sequence Number: 0 Message Integrity Code: c4150f96 [Key: 01030507090b0d0f00020406080a0c0d] [Key Origin: 24] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Illuminance Measurement (0x0400) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 107 ZigBee Cluster Library Frame, Command: Configure Reporting, Seq: 18 Frame Control Field: Profile-wide (0x10) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 0... = Direction: Client to Server ...1 .... = Disable Default Response: True Sequence Number: 18 Command: Configure Reporting (0x06) Reporting Configuration Record Direction: Reported (0x00) Attribute: Measured Value (0x0000) Data Type: 16-Bit Unsigned Integer (0x21) Measured Value: 500 (=0.122018 [lx]) Minimum Interval: 15 Maximum Interval: 3600 No. Time Source Destination Protocol Length Dectination Port Info 1216 2021-01-15 20:59:14.931213 0x2697 0x0000 ZigBee HA 61 ZCL: Default Response, Seq: 18 Frame 1216: 61 bytes on wire (488 bits), 61 bytes captured (488 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 15, 2021 20:59:14.931213000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1610733554.931213000 seconds [Time delta from previous captured frame: 0.001768000 seconds] [Time delta from previous displayed frame: 0.001768000 seconds] [Time since reference or first frame: 970.234927000 seconds] Frame Number: 1216 Frame Length: 61 bytes (488 bits) Capture Length: 61 bytes (488 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0x0000, Src: 0x2697 Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 17 Destination PAN: 0x1a62 Destination: 0x0000 Source: 0x2697 [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 845] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -30 dB LQI Correlation Value: 108 ZigBee Network Layer Data, Dst: 0x0000, Src: 0x2697 Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0x0000 Source: 0x2697 Radius: 30 Sequence Number: 42 [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 845] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 36 Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e) Key Sequence Number: 0 Message Integrity Code: fb2d750d [Key: 01030507090b0d0f00020406080a0c0d] [Key Origin: 24] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Illuminance Measurement (0x0400) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 35 ZigBee Cluster Library Frame, Command: Default Response, Seq: 18 Frame Control Field: Profile-wide (0x18) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 1... = Direction: Server to Client ...1 .... = Disable Default Response: True Sequence Number: 18 Command: Default Response (0x0b) Response to Command: 0x06 Status: Unsupported Cluster (0xc3) ```

I don't understand what you mean with this, can you explain it further?

I set the detection period = 5s:

- Zigbee2MQTT:debug 2021-01-15 20:59:05: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":5}'
- Zigbee2MQTT:debug 2021-01-15 20:59:05: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e'

But the generated events of the beginning and the end of the movement show the delay significantly more than 5s, in fact - 106s:

- Zigbee2MQTT:debug 2021-01-15 21:02:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0
- Zigbee2MQTT:info  2021-01-15 21:02:22: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":136,"occupancy":true,"voltage":3100}'
- Zigbee2MQTT:debug 2021-01-15 21:04:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0
- Zigbee2MQTT:info  2021-01-15 21:04:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":136,"occupancy":false,"voltage":3100}'
Full Log ``` - Zigbee2MQTT:debug 2021-01-15 20:57:39: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true' - Zigbee2MQTT:info 2021-01-15 20:57:39: Zigbee: allowing new devices to join. - Zigbee2MQTT:info 2021-01-15 20:57:39: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":true,"version":"1.17.0"}' - Zigbee2MQTT:info 2021-01-15 20:57:49: Device '0x04cf8cdf3c7fd37e' joined - Zigbee2MQTT:info 2021-01-15 20:57:49: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - Zigbee2MQTT:info 2021-01-15 20:57:49: Starting interview of '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:info 2021-01-15 20:57:49: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-15 20:57:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - Zigbee2MQTT:info 2021-01-15 20:57:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - Zigbee2MQTT:debug 2021-01-15 20:57:50: Device '0x04cf8cdf3c7fd37e' announced itself - Zigbee2MQTT:info 2021-01-15 20:57:50: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - Zigbee2MQTT:info 2021-01-15 20:57:50: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - Zigbee2MQTT:debug 2021-01-15 20:57:52: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:57:53: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - Zigbee2MQTT:debug 2021-01-15 20:57:53: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:57:53: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - Zigbee2MQTT:debug 2021-01-15 20:57:56: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:57:56: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - Zigbee2MQTT:debug 2021-01-15 20:57:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:57:57: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - Zigbee2MQTT:debug 2021-01-15 20:57:58: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":29}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:57:58: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":29}' - Zigbee2MQTT:debug 2021-01-15 20:57:59: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:58:00: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - Zigbee2MQTT:debug 2021-01-15 20:58:01: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:58:01: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - Zigbee2MQTT:debug 2021-01-15 20:58:02: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20200327"}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:58:02: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20200327"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - Zigbee2MQTT:debug 2021-01-15 20:58:03: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - Zigbee2MQTT:info 2021-01-15 20:58:03: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - Zigbee2MQTT:info 2021-01-15 20:58:03: 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":"20200327","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":9879,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - Zigbee2MQTT:info 2021-01-15 20:58:03: Configuring '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:info 2021-01-15 20:58:03: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - Zigbee2MQTT:debug 2021-01-15 20:58:03: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - Zigbee2MQTT:debug 2021-01-15 20:58:06: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - Zigbee2MQTT:info 2021-01-15 20:58:06: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":136,"voltage":3100}' - Zigbee2MQTT:debug 2021-01-15 20:58:14: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false' - Zigbee2MQTT:info 2021-01-15 20:58:14: Zigbee: disabling joining new devices. - Zigbee2MQTT:debug 2021-01-15 20:58:14: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false' - Zigbee2MQTT:info 2021-01-15 20:58:14: Zigbee: disabling joining new devices. - Zigbee2MQTT:info 2021-01-15 20:58:14: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0"}' - Zigbee2MQTT:info 2021-01-15 20:58:14: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"1.17.0","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0"}' - Zigbee2MQTT:error 2021-01-15 20:58:32: Failed to configure '0x04cf8cdf3c7fd37e', attempt 1 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 msIlluminanceMeasurement([{"attribute":"measuredValue","minimumReportInterval":15,"maximumReportInterval":3600,"reportableChange":500}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Timeout - 9879 - 1 - 14 - 1024 - 7 after 10000ms) at Timeout._onTimeout (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)) - Zigbee2MQTT:debug 2021-01-15 20:58:56: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - Zigbee2MQTT:info 2021-01-15 20:58:56: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":105,"occupancy":true,"voltage":3100}' - Zigbee2MQTT:info 2021-01-15 20:58:56: Configuring '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:debug 2021-01-15 20:59:05: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":5}' - Zigbee2MQTT:debug 2021-01-15 20:59:05: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:error 2021-01-15 20:59:25: Failed to configure '0x04cf8cdf3c7fd37e', attempt 2 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 msIlluminanceMeasurement([{"attribute":"measuredValue","minimumReportInterval":15,"maximumReportInterval":3600,"reportableChange":500}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Timeout - 9879 - 1 - 18 - 1024 - 7 after 10000ms) at Timeout._onTimeout (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)) - Zigbee2MQTT:info 2021-01-15 20:59:25: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":131,"occupancy":true,"voltage":3100}' - Zigbee2MQTT:debug 2021-01-15 21:01:02: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - Zigbee2MQTT:info 2021-01-15 21:01:02: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":131,"occupancy":false,"voltage":3100}' - Zigbee2MQTT:info 2021-01-15 21:01:02: Configuring '0x04cf8cdf3c7fd37e' - Zigbee2MQTT:error 2021-01-15 21:01:30: Failed to configure '0x04cf8cdf3c7fd37e', attempt 3 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 msIlluminanceMeasurement([{"attribute":"measuredValue","minimumReportInterval":15,"maximumReportInterval":3600,"reportableChange":500}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Data request failed with error: 'Timeout' (9999)) at ZStackAdapter. (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:339:27) at Generator.next () at fulfilled (/zigbee2mqtt-1.17.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:24:58)) - Zigbee2MQTT:debug 2021-01-15 21:01:58: Saving state to file /share/zigbee2mqtt/state.json - Zigbee2MQTT:debug 2021-01-15 21:02:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - Zigbee2MQTT:info 2021-01-15 21:02:22: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":136,"occupancy":true,"voltage":3100}' - Zigbee2MQTT:debug 2021-01-15 21:04:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - Zigbee2MQTT:info 2021-01-15 21:04:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":5,"linkquality":136,"occupancy":false,"voltage":3100}' ```
Koenkk commented 3 years ago

@Otnow can you provide a sniff with the Xiaomi gateway from pairing till a illuminance report is send?

Otnow commented 3 years ago

@Otnow can you provide a sniff with the Xiaomi gateway from pairing till a illuminance report is send?

RTCGQ12LM_2.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 21724f48ad8ebbc4f96ae7000506d3fc) RTCGQ12LM_2.zip - decrypted plain text dump

Recorded events in the dump:

Koenkk commented 3 years ago

Can you update to the latest zigbee2mqtt dev branch first (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html), apply latest changes from https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079 and check if illuminance is reported now?

Can you also provide a sniff when pairing it with Zigbee2MQTT?

Otnow commented 3 years ago

Can you update to the latest zigbee2mqtt dev branch first (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html), apply latest changes from Koenkk/zigbee-herdsman-converters#2079 and check if illuminance is reported now? Can you also provide a sniff when pairing it with Zigbee2MQTT?

After pairing the sensor with a zigbee-stick, no motion events are generated in zigbee-traffic. Accordingly, they are not in the Zigbee2MQTT log either, as are the illuminance values. The battery power value is not detected again. It was only possible to set the value of the detection period.

Zigbee2mqtt log ``` - info 2021-01-18 03:41:36: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-18 03:41:57: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"f3bml-2","value":true}' - info 2021-01-18 03:41:57: Zigbee: allowing new devices to join. - info 2021-01-18 03:41:57: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"f3bml-2"}' - info 2021-01-18 03:42:09: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-18 03:42:09: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-18 03:42:09: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-18 03:42:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-18 03:42:12: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:12: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-18 03:42:13: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:13: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-18 03:42:16: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:16: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-18 03:42:17: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:17: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-18 03:42:18: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:18: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-18 03:42:19: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:19: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-18 03:42:20: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:20: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-18 03:42:21: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:21: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-18 03:42:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-18 03:42:22: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-18 03:42:22: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-18 03:42:22: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-18 03:42:22: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - info 2021-01-18 03:42:22: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - info 2021-01-18 03:42:22: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-18 03:42:22: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-18 03:42:22: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-18 03:42:22: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-18 03:42:22: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":7848,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-18 03:42:22: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-18 03:42:22: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-18 03:42:22: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-18 03:42:22: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - debug 2021-01-18 03:42:22: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - debug 2021-01-18 03:42:22: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - debug 2021-01-18 03:42:28: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"f3bml-3","value":false}' - info 2021-01-18 03:42:28: Zigbee: disabling joining new devices. - info 2021-01-18 03:42:29: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"f3bml-3"}' - debug 2021-01-18 03:42:42: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":0}' - debug 2021-01-18 03:42:42: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-18 03:42:43: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":0,"linkquality":92}' - debug 2021-01-18 03:42:44: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-18 03:42:44: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-18 03:42:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":120}' ```

RTCGQ12LM_3.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_3.zip - decrypted plain text dump

Recorded events in the dump:

Environment:

Koenkk commented 3 years ago

Updated https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files again, can you check what works and provide a sniff?

Otnow commented 3 years ago

Updated https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files again, can you check what works and provide a sniff?

As before after pairing the sensor with a zigbee-stick, no motion events are generated in zigbee-traffic. Accordingly, they are not in the Zigbee2MQTT log either, as are the illuminance values. But the battery power value is detected again.

Zigbee2mqtt log ``` - info 2021-01-19 05:08:10: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-19 05:10:22: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"qgakc-1","value":true}' - info 2021-01-19 05:10:22: Zigbee: allowing new devices to join. - info 2021-01-19 05:10:22: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"qgakc-1"}' - info 2021-01-19 05:10:36: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-19 05:10:36: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-19 05:10:36: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-19 05:10:36: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-19 05:10:36: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-19 05:10:36: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-19 05:10:37: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-19 05:10:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-19 05:10:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-19 05:10:40: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:40: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-19 05:10:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-19 05:10:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-19 05:10:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-19 05:10:46: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:46: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-19 05:10:47: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:47: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-19 05:10:48: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:48: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-19 05:10:49: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:49: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-19 05:10:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-19 05:10:50: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-19 05:10:50: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-19 05:10:50: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-19 05:10:50: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - info 2021-01-19 05:10:50: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - info 2021-01-19 05:10:50: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-19 05:10:50: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-19 05:10:50: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-19 05:10:50: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-19 05:10:50: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":15078,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-19 05:10:50: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-19 05:10:50: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-19 05:10:50: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-19 05:10:50: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-19 05:10:50: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - debug 2021-01-19 05:10:50: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - debug 2021-01-19 05:10:50: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-19 05:10:59: Successfully configured '0x04cf8cdf3c7fd37e' - info 2021-01-19 05:11:01: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[{"cluster":"msOccupancySensing","target":{"endpoint":1,"ieee_address":"0x00124b0014d9f126","type":"endpoint"}},{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00124b0014d9f126","type":"endpoint"}},{"cluster":"msIlluminanceMeasurement","target":{"endpoint":1,"ieee_address":"0x00124b0014d9f126","type":"endpoint"}}],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":15078,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - debug 2021-01-19 05:11:07: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"qgakc-2","value":false}' - info 2021-01-19 05:11:07: Zigbee: disabling joining new devices. - info 2021-01-19 05:11:07: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"qgakc-2"}' - debug 2021-01-19 05:11:31: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":0}' - debug 2021-01-19 05:11:31: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 05:11:32: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":0,"linkquality":165}' - debug 2021-01-19 05:11:32: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-19 05:11:32: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 05:11:33: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":126}' - debug 2021-01-19 05:11:34: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-19 05:11:34: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":120,"voltage":3100}' ```

RTCGQ12LM_4.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_4.zip - decrypted plain text dump

Recorded events in the dump:

Environment:

Koenkk commented 3 years ago

Don't understand why no occupancy is reported. Can you try again with: https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/commits/79c3986231d25f4a636921e4842f9ed091170c79 with this you reported that occupancy worked.

Otnow commented 3 years ago

Don't understand why no occupancy is reported. Can you try again with: Koenkk/zigbee-herdsman-converters@79c3986 with this you reported that occupancy worked.

After pairing the sensor with a zigbee-stick, no motion events are generated in zigbee-traffic. Accordingly, they are not in the Zigbee2MQTT log either, as are the illuminance values. The battery power value is not detected again. It was only possible to set the value of the detection period.

Zigbee2mqtt log ``` - info 2021-01-19 21:29:34: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-19 21:30:24: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"obb4b-1","value":true}' - info 2021-01-19 21:30:24: Zigbee: allowing new devices to join. - info 2021-01-19 21:30:24: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"obb4b-1"}' - info 2021-01-19 21:30:37: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-19 21:30:37: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-19 21:30:37: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-19 21:30:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-19 21:30:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-19 21:30:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-19 21:30:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-19 21:30:46: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:46: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-19 21:30:47: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:47: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-19 21:30:48: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:48: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-19 21:30:49: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:49: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-19 21:30:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:50: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-19 21:30:51: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-19 21:30:51: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-19 21:30:51: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-19 21:30:51: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-19 21:30:51: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - info 2021-01-19 21:30:51: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - info 2021-01-19 21:30:51: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-19 21:30:51: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-19 21:30:51: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-19 21:30:51: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-19 21:30:51: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":7191,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-19 21:30:51: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-19 21:30:51: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-19 21:30:51: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-19 21:30:51: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-19 21:30:51: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/illuminance/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"illuminance","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e illuminance","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_illuminance_zigbee2mqtt","unit_of_measurement":"-","value_template":"{{ value_json.illuminance }}"}' - debug 2021-01-19 21:30:51: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - debug 2021-01-19 21:30:51: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - error 2021-01-19 21:30:56: Failed to configure '0x04cf8cdf3c7fd37e', attempt 1 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:196:23) at Endpoint. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:419:26) at Generator.next () at fulfilled (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) - debug 2021-01-19 21:31:14: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"obb4b-2","value":false}' - info 2021-01-19 21:31:14: Zigbee: disabling joining new devices. - info 2021-01-19 21:31:14: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"obb4b-2"}' - debug 2021-01-19 21:31:33: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":0}' - debug 2021-01-19 21:31:33: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 21:31:34: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":0,"linkquality":123}' - debug 2021-01-19 21:31:35: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-19 21:31:35: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 21:31:36: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":128}' - debug 2021-01-19 21:31:37: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-19 21:31:37: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":120,"voltage":3100}' - info 2021-01-19 21:31:37: Configuring '0x04cf8cdf3c7fd37e' - error 2021-01-19 21:31:42: Failed to configure '0x04cf8cdf3c7fd37e', attempt 2 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:196:23) at Endpoint. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:419:26) at Generator.next () at fulfilled (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) ```

RTCGQ12LM_5.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_5.zip - decrypted plain text dump

Recorded events in the dump:

Environment:

Otnow commented 3 years ago

In this configuration:

    {
        zigbeeModel: ['lumi.motion.agl02'],
        model: 'RTCGQ12LM',
        vendor: 'Xiaomi',
        description: 'Aqara T1 human body movement and illuminance sensor',
        fromZigbee: [fz.occupancy, fz.battery],
        toZigbee: [tz.RTCGQ12LM_detection_period],
        exposes: [e.occupancy(), e.battery(),
            exposes.numeric('detection_period', exposes.access.STATE_SET).withValueMin(2).withValueMax(199).withUnit('s')
                .withDescription('Time in seconds till occupancy goes to false')],
        meta: {configureKey: 1, battery: {voltageToPercentage: '3V_2100'}},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'msOccupancySensing']);            
            await reporting.occupancy(endpoint);
            await reporting.batteryVoltage(endpoint);
        },
    },

battery power is displayed and motion events are generated (no illuminance), but the set detection period is not taken into account (actually 116s instead of the given 2s).

Zigbee2mqtt log ``` - debug 2021-01-19 23:05:45: Received MQTT message on 'zigbee2mqtt/bridge/config' with data '{"commit":"2ef2c54","coordinator":{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"},"log_level":"debug","network":{"channel":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - info 2021-01-19 23:05:46: 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"}]' - info 2021-01-19 23:05:46: MQTT publish: topic 'zigbee2mqtt/bridge/groups', payload '[]' - info 2021-01-19 23:05:46: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-19 23:06:19: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"hkt26-1","value":true}' - info 2021-01-19 23:06:19: Zigbee: allowing new devices to join. - info 2021-01-19 23:06:19: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"hkt26-1"}' - info 2021-01-19 23:06:32: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-19 23:06:32: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-19 23:06:32: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-19 23:06:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-19 23:06:35: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:35: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-19 23:06:36: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:36: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-19 23:06:39: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:39: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-19 23:06:40: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:40: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-19 23:06:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-19 23:06:42: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:42: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-19 23:06:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:43: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-19 23:06:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-19 23:06:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-19 23:06:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-19 23:06:45: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-19 23:06:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-19 23:06:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - info 2021-01-19 23:06:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-19 23:06:45: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-19 23:06:45: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-19 23:06:45: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-19 23:06:45: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":19533,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-19 23:06:45: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-19 23:06:45: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-19 23:06:45: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-19 23:06:45: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-19 23:06:45: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/detection_period/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e detection period","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_detection_period_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.detection_period }}"}' - debug 2021-01-19 23:06:45: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - debug 2021-01-19 23:06:56: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-19 23:06:56: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":99,"occupancy":true}' - info 2021-01-19 23:06:57: Successfully configured '0x04cf8cdf3c7fd37e' - info 2021-01-19 23:06:57: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":3,"description":"Time in seconds till occupancy goes to false","name":"detection_period","property":"detection_period","type":"numeric","unit":"s","value_max":199,"value_min":2},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","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":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":19533,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - debug 2021-01-19 23:07:02: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"hkt26-2","value":false}' - info 2021-01-19 23:07:02: Zigbee: disabling joining new devices. - info 2021-01-19 23:07:02: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"hkt26-2"}' - debug 2021-01-19 23:07:06: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":0}' - debug 2021-01-19 23:07:06: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 23:07:07: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":0,"linkquality":99,"occupancy":true}' - debug 2021-01-19 23:07:07: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"detection_period":2}' - debug 2021-01-19 23:07:07: Publishing 'set' 'detection_period' to '0x04cf8cdf3c7fd37e' - info 2021-01-19 23:07:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"detection_period":2,"linkquality":84,"occupancy":true}' - debug 2021-01-19 23:07:10: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-19 23:07:10: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":89,"occupancy":true,"voltage":3100}' - debug 2021-01-19 23:09:06: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-19 23:09:06: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":115,"occupancy":false,"voltage":3100}' - debug 2021-01-19 23:09:12: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-19 23:09:12: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":86,"occupancy":true,"voltage":3100}' - debug 2021-01-19 23:10:40: Saving state to file /opt/zigbee2mqtt/data/state.json - debug 2021-01-19 23:11:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-19 23:11:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":110,"occupancy":false,"voltage":3100}' - debug 2021-01-19 23:11:26: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-19 23:11:26: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":110,"occupancy":true,"voltage":3100}' - debug 2021-01-19 23:13:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-19 23:13:22: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"detection_period":2,"linkquality":105,"occupancy":false,"voltage":3100}' ```

RTCGQ12LM_6.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_6.zip - decrypted plain text dump

Recorded events in the dump:

Environment:

Otnow commented 3 years ago

I tried by analogy with:

    occupancy: async (endpoint, overrides) => {
        const p = payload('occupancy', 0, repInterval.HOUR, 0, overrides);
        await endpoint.configureReporting('msOccupancySensing', p);
    },

set up reporting in the reporting.js for 0x0112 attribute from aqaraOpple cluster:

    RTCGQ12LM_occupancy: async (endpoint, overrides) => {
        const p = payload('illuminance', 0, repInterval.HOUR, 0, overrides);
        await endpoint.configureReporting('aqaraOpple', p);
    },

with devices.js:

    {
        zigbeeModel: ['lumi.motion.agl02'],
        model: 'RTCGQ12LM',
        vendor: 'Xiaomi',
        description: 'Aqara T1 human body movement and illuminance sensor',
        fromZigbee: [fz.xiaomi_opple_illuminance, fz.battery],
        toZigbee: [tz.RTCGQ12LM_detection_period],
        exposes: [e.illuminance(), e.battery(),
            exposes.numeric('detection_period', exposes.access.STATE_SET).withValueMin(2).withValueMax(199).withUnit('s')
                .withDescription('Time in seconds till occupancy goes to false')],
        meta: {configureKey: 1, battery: {voltageToPercentage: '3V_2100'}},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'aqaraOpple']);            
            await reporting.RTCGQ12LM_occupancy(endpoint);
            await reporting.batteryVoltage(endpoint);
        },
    },

but sensor responds that attribute 0x0112 is not supported for reporting:

Error log ``` - error 2021-01-20 00:27:39: Failed to configure '0x04cf8cdf3c7fd37e', attempt 3 (Error: ConfigureReporting 0x04cf8cdf3c7fd37e/1 aqaraOpple([{"attribute":"illuminance","minimumReportInterval":0,"maximumReportInterval":3600,"reportableChange":0}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:196:23) at Endpoint. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:419:26) at Generator.next () at fulfilled (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:24:58)) No. Time Source Destination Protocol Length Dectination Port Info 616 2021-01-20 00:27:37.934306 0x0000 0x5c4b ZigBee HA 71 ZCL: Configure Reporting, Seq: 16 Frame 616: 71 bytes on wire (568 bits), 71 bytes captured (568 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 20, 2021 00:27:37.934306000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1611091657.934306000 seconds [Time delta from previous captured frame: 0.006482000 seconds] [Time delta from previous displayed frame: 1.011611000 seconds] [Time since reference or first frame: 341.488951000 seconds] Frame Number: 616 Frame Length: 71 bytes (568 bits) Capture Length: 71 bytes (568 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0x5c4b, Src: 0x0000 Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 228 Destination PAN: 0x1a62 Destination: 0x5c4b Source: 0x0000 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 1] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -17 dB LQI Correlation Value: 108 ZigBee Network Layer Data, Dst: 0x5c4b, Src: 0x0000 Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0x5c4b Source: 0x0000 Radius: 30 Sequence Number: 223 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 1] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 70409 Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26) Key Sequence Number: 0 Message Integrity Code: 48b5f8b9 [Key: 01030507090b0d0f00020406080a0c0d] [Key Origin: 29] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Manufacturer Specific (0xfcc0) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 1 ZigBee Cluster Library Frame, Command: Configure Reporting, Seq: 16 Frame Control Field: Profile-wide (0x10) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 0... = Direction: Client to Server ...1 .... = Disable Default Response: True Sequence Number: 16 Command: Configure Reporting (0x06) Reporting Configuration Record, Uint32: 0 Direction: Reported (0x00) Attribute: 0x0112 Data Type: 32-Bit Unsigned Integer (0x23) Uint32: 0 (0x00000000) Minimum Interval: 0 Maximum Interval: 3600 No. Time Source Destination Protocol Length Dectination Port Info 618 2021-01-20 00:27:37.938668 0x5c4b 0x0000 ZigBee HA 63 ZCL: Configure Reporting Response, Seq: 16 Frame 618: 63 bytes on wire (504 bits), 63 bytes captured (504 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 20, 2021 00:27:37.938668000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1611091657.938668000 seconds [Time delta from previous captured frame: 0.002053000 seconds] [Time delta from previous displayed frame: 0.004362000 seconds] [Time since reference or first frame: 341.493313000 seconds] Frame Number: 618 Frame Length: 63 bytes (504 bits) Capture Length: 63 bytes (504 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0x0000, Src: 0x5c4b Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 124 Destination PAN: 0x1a62 Destination: 0x0000 Source: 0x5c4b [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 37] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -17 dB LQI Correlation Value: 108 ZigBee Network Layer Data, Dst: 0x0000, Src: 0x5c4b Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0x0000 Source: 0x5c4b Radius: 30 Sequence Number: 38 [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 37] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 32 Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e) Key Sequence Number: 0 Message Integrity Code: 6eba26e7 [Key: 01030507090b0d0f00020406080a0c0d] [Key Origin: 29] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Manufacturer Specific (0xfcc0) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 31 ZigBee Cluster Library Frame, Command: Configure Reporting Response, Seq: 16 Frame Control Field: Profile-wide (0x18) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 1... = Direction: Server to Client ...1 .... = Disable Default Response: True Sequence Number: 16 Command: Configure Reporting Response (0x07) Attribute Status Record Status: Unsupported Attribute (0x86) Direction: Reported (0x00) Attribute: 0x0112 ```

Accordingly, there are no motion events.

Environment:

Otnow commented 3 years ago

By analogy with the Philips Hue motion sensor (SML001), this code:

    {
        zigbeeModel: ['lumi.motion.agl02'],
        model: 'RTCGQ12LM',
        vendor: 'Xiaomi',
        description: 'Aqara T1 human body movement and illuminance sensor',
        fromZigbee: [fz.occupancy, fz.battery],
        toZigbee: [tz.occupancy_timeout],
        exposes: [e.occupancy(), e.battery(),
            exposes.numeric('occupancy_timeout', exposes.access.ALL).withValueMin(0).withValueMax(65535).withUnit('s')
                .withDescription('Time in seconds till occupancy goes to false')],
        meta: {configureKey: 1, battery: {voltageToPercentage: '3V_2100'}},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'msOccupancySensing']);            
        await reporting.occupancy(endpoint);
            await reporting.batteryVoltage(endpoint);
        },
    },

allows you to set the detection period (any, not just 2-199s) and generate a motion detection event based on it:

Zigbee2mqtt log ``` - debug 2021-01-20 04:05:56: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:05:56: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":110,"occupancy":true}' - debug 2021-01-20 04:06:19: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:19: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":81,"occupancy":true,"voltage":3100}' - debug 2021-01-20 04:06:20: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":0}' - debug 2021-01-20 04:06:20: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:06:21: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":86,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:23: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:23: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":94,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:30: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:30: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":84,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:38: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:38: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:43: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":73,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:48: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:48: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:52: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:52: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":86,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:06:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:06:57: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:07:00: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":0}' - debug 2021-01-20 04:07:00: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:07:00: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:07:05: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:05: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":113,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:07:07: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:07: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:07:07: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:07: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-20 04:07:09: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":1}' - debug 2021-01-20 04:07:09: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:07:09: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:09: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:09: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:18: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:18: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":110,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:22: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:22: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:25: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:25: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:29: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:29: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":false,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:32: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:32: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":120,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:36: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:36: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":false,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:39: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":1}' - debug 2021-01-20 04:07:39: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - debug 2021-01-20 04:07:39: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:39: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - info 2021-01-20 04:07:40: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":true,"occupancy_timeout":1,"voltage":3100}' - debug 2021-01-20 04:07:41: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":2}' - debug 2021-01-20 04:07:41: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:07:42: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":true,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:07:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":false,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:07:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":true,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:07:55: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:55: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":105,"occupancy":false,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:07:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:07:57: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":true,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:02: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:02: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":65,"occupancy":false,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:04: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:04: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":86,"occupancy":true,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":84,"occupancy":false,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:13: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":2}' - debug 2021-01-20 04:08:13: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:08:13: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":81,"occupancy":false,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:14: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:14: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":36,"occupancy":true,"occupancy_timeout":2,"voltage":3100}' - debug 2021-01-20 04:08:15: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":5}' - debug 2021-01-20 04:08:15: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:08:16: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":84,"occupancy":true,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:17: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:17: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":84,"occupancy":false,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:23: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:23: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":115,"occupancy":true,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:31: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:31: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":94,"occupancy":false,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:35: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:35: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":94,"occupancy":true,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:42: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:42: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":false,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:45: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":107,"occupancy":true,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:52: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:52: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":false,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:58: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":5}' - debug 2021-01-20 04:08:58: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:08:58: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":false,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:08:58: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:08:58: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":true,"occupancy_timeout":5,"voltage":3100}' - debug 2021-01-20 04:09:00: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":60}' - debug 2021-01-20 04:09:00: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-20 04:09:01: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":true,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:10:00: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-20 04:10:00: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":102,"occupancy":true,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:11:25: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:11:25: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":134,"occupancy":false,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:11:27: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:11:27: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":134,"occupancy":true,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:12:27: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:12:27: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":131,"occupancy":false,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:12:32: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:12:32: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":131,"occupancy":true,"occupancy_timeout":60,"voltage":3100}' - debug 2021-01-20 04:12:37: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":60}' - debug 2021-01-20 04:12:37: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - debug 2021-01-20 04:12:44: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":300}' - debug 2021-01-20 04:12:44: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - debug 2021-01-20 04:12:48: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-20 04:12:48: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":113,"occupancy":true,"occupancy_timeout":60,"voltage":3100}' - info 2021-01-20 04:12:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":141,"occupancy":true,"occupancy_timeout":300,"voltage":3100}' - debug 2021-01-20 04:17:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:17:43: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":162,"occupancy":false,"occupancy_timeout":300,"voltage":3100}' - debug 2021-01-20 04:17:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-20 04:17:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":157,"occupancy":true,"occupancy_timeout":300,"voltage":3100}' - debug 2021-01-20 04:17:50: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-20 04:17:50: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":160,"occupancy":true,"occupancy_timeout":300,"voltage":3100}' - debug 2021-01-20 04:22:39: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-20 04:22:39: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":162,"occupancy":false,"occupancy_timeout":300,"voltage":3100}' ```

In previous configuration attempts, the static delay between start and end of detection in 116s was due to the default attribute pirOToUDelay = 120s.

It remains to understand where to get the value of illuminance.

Koenkk commented 3 years ago

Really like the config from https://github.com/Koenkk/zigbee2mqtt/issues/5706#issuecomment-763271991 , if I understand correctly everything works except the illuminance?

Do you see illuminance reports when adding msIlluminanceMeasurement to reporting.bind? Make sure to reconfigure the device via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgerequestdeviceconfigure after changing the configure() (otherwise it won't be applied)

Otnow commented 3 years ago

Really like the config from #5706 (comment) , if I understand correctly everything works except the illuminance?

Yes.

Do you see illuminance reports when adding msIlluminanceMeasurement to reporting.bind? Make sure to reconfigure the device via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgerequestdeviceconfigure after changing the configure() (otherwise it won't be applied)

Added msIlluminanceMeasurement to reporting.bind, but the illuminance parameter is still not visible:

Zigbee2mqtt log ``` - info 2021-01-21 02:29:45: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-21 02:30:19: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"lnpf2-1","value":true}' - info 2021-01-21 02:30:19: Zigbee: allowing new devices to join. - info 2021-01-21 02:30:19: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"lnpf2-1"}' - info 2021-01-21 02:30:34: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-21 02:30:34: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-21 02:30:34: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-21 02:30:34: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-21 02:30:37: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:37: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-21 02:30:38: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:38: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-21 02:30:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-21 02:30:42: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:42: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-21 02:30:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:43: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-21 02:30:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-21 02:30:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-21 02:30:46: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:46: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-21 02:30:47: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-21 02:30:47: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-21 02:30:47: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-21 02:30:47: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-21 02:30:47: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/occupancy_timeout/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}' - info 2021-01-21 02:30:47: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-21 02:30:47: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-21 02:30:47: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-21 02:30:47: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-21 02:30:47: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":44764,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-21 02:30:47: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-21 02:30:47: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-21 02:30:47: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-21 02:30:47: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-21 02:30:48: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/occupancy_timeout/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}' - debug 2021-01-21 02:30:48: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - debug 2021-01-21 02:30:53: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-21 02:30:53: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":141,"occupancy":true}' - info 2021-01-21 02:30:54: Successfully configured '0x04cf8cdf3c7fd37e' - debug 2021-01-21 02:31:02: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"lnpf2-2","value":false}' - info 2021-01-21 02:31:02: Zigbee: disabling joining new devices. - info 2021-01-21 02:31:02: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"lnpf2-2"}' - debug 2021-01-21 02:31:17: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":0}' - debug 2021-01-21 02:31:17: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-21 02:31:17: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":147,"occupancy":true,"occupancy_timeout":0}' - debug 2021-01-21 02:31:28: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:28: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:41: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":147,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:41: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":147,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:43: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":131,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:51: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:51: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":147,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:54: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:54: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":131,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-21 02:31:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-21 02:31:57: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":147,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' ```

RTCGQ12LM_7.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_7.zip - decrypted plain text dump

Recorded events in the dump:

Moreover, if you add to the configuration:

await reporting.illuminance(endpoint);

then the sensor responds that the cluster Illuminance Measurement (0x0400) is unsupported:

Here is this error in the form of 2 zigbee packets (command and response) ``` No. Time Source Destination Protocol Length Dectination Port Info 162 2021-01-21 03:28:09.798432 0x0000 0xaedc ZigBee HA 69 ZCL: Configure Reporting, Seq: 5 Frame 162: 69 bytes on wire (552 bits), 69 bytes captured (552 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 21, 2021 03:28:09.798432000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1611188889.798432000 seconds [Time delta from previous captured frame: 0.007364000 seconds] [Time delta from previous displayed frame: 3.678980000 seconds] [Time since reference or first frame: 521.295445000 seconds] Frame Number: 162 Frame Length: 69 bytes (552 bits) Capture Length: 69 bytes (552 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0xaedc, Src: 0x0000 Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 226 Destination PAN: 0x1a62 Destination: 0xaedc Source: 0x0000 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 6] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -19 dB LQI Correlation Value: 50 ZigBee Network Layer Data, Dst: 0xaedc, Src: 0x0000 Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0xaedc Source: 0x0000 Radius: 30 Sequence Number: 190 [Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26)] [Origin: 6] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 73297 Extended Source: TexasIns_00:14:d9:f1:26 (00:12:4b:00:14:d9:f1:26) Key Sequence Number: 0 Message Integrity Code: a2a72814 [Key: 01030507090b0d0f00020406080a0c0d] [Key Label: ] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Illuminance Measurement (0x0400) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 199 ZigBee Cluster Library Frame, Command: Configure Reporting, Seq: 5 Frame Control Field: Profile-wide (0x10) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 0... = Direction: Client to Server ...1 .... = Disable Default Response: True Sequence Number: 5 Command: Configure Reporting (0x06) Reporting Configuration Record Direction: Reported (0x00) Attribute: Measured Value (0x0000) Data Type: 16-Bit Unsigned Integer (0x21) Measured Value: 5 (=0.001152 [lx]) Minimum Interval: 10 Maximum Interval: 3600 No. Time Source Destination Protocol Length Dectination Port Info 164 2021-01-21 03:28:09.802788 0xaedc 0x0000 ZigBee HA 61 ZCL: Default Response, Seq: 5 Frame 164: 61 bytes on wire (488 bits), 61 bytes captured (488 bits) on interface \\.\pipe\zboss_sniffer, id 0 Interface id: 0 (\\.\pipe\zboss_sniffer) Interface name: \\.\pipe\zboss_sniffer Encapsulation type: IEEE 802.15.4 Wireless PAN (104) Arrival Time: Jan 21, 2021 03:28:09.802788000 RTZ 2 (зима) [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1611188889.802788000 seconds [Time delta from previous captured frame: 0.002112000 seconds] [Time delta from previous displayed frame: 0.004356000 seconds] [Time since reference or first frame: 521.299801000 seconds] Frame Number: 164 Frame Length: 61 bytes (488 bits) Capture Length: 61 bytes (488 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zcl] ZBOSS dump, IN, page 0, channel 15 .... ...0 = ZBOSS Direction: IN (0x0) 0000 000. = Page: 2.4 GHz (0) Channel: 15 Trace number: 0 IEEE 802.15.4 Data, Dst: 0x0000, Src: 0xaedc Frame Control Field: 0x8861, Frame Type: Data, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2003, Source Addressing Mode: Short/16-bit .... .... .... .001 = Frame Type: Data (0x1) .... .... .... 0... = Security Enabled: False .... .... ...0 .... = Frame Pending: False .... .... ..1. .... = Acknowledge Request: True .... .... .1.. .... = PAN ID Compression: True .... .... 0... .... = Reserved: False .... ...0 .... .... = Sequence Number Suppression: False .... ..0. .... .... = Information Elements Present: False .... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x2) ..00 .... .... .... = Frame Version: IEEE Std 802.15.4-2003 (0) 10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x2) Sequence Number: 81 Destination PAN: 0x1a62 Destination: 0x0000 Source: 0xaedc [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 2] TI CC24xx-format metadata: FCS OK FCS Valid: True RSSI: -19 dB LQI Correlation Value: 50 ZigBee Network Layer Data, Dst: 0x0000, Src: 0xaedc Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data .... .... .... ..00 = Frame Type: Data (0x0) .... .... ..00 10.. = Protocol Version: 2 .... .... 01.. .... = Discover Route: Enable (0x1) .... ...0 .... .... = Multicast: False .... ..1. .... .... = Security: True .... .0.. .... .... = Source Route: False .... 0... .... .... = Destination: False ...0 .... .... .... = Extended Source: False ..0. .... .... .... = End Device Initiator: False Destination: 0x0000 Source: 0xaedc Radius: 30 Sequence Number: 228 [Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e)] [Origin: 2] ZigBee Security Header Security Control Field: 0x28, Key Id: Network Key, Extended Nonce ...0 1... = Key Id: Network Key (0x1) ..1. .... = Extended Nonce: True Frame Counter: 222 Extended Source: XIAOMIEl_df:3c:7f:d3:7e (04:cf:8c:df:3c:7f:d3:7e) Key Sequence Number: 0 Message Integrity Code: cea761e5 [Key: 01030507090b0d0f00020406080a0c0d] [Key Label: ] ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 Frame Control Field: Data (0x00) .... ..00 = Frame Type: Data (0x0) .... 00.. = Delivery Mode: Unicast (0x0) ..0. .... = Security: False .0.. .... = Acknowledgement Request: False 0... .... = Extended Header: False Destination Endpoint: 1 Cluster: Illuminance Measurement (0x0400) Profile: Home Automation (0x0104) Source Endpoint: 1 Counter: 218 ZigBee Cluster Library Frame, Command: Default Response, Seq: 5 Frame Control Field: Profile-wide (0x18) .... ..00 = Frame Type: Profile-wide (0x0) .... .0.. = Manufacturer Specific: False .... 1... = Direction: Server to Client ...1 .... = Disable Default Response: True Sequence Number: 5 Command: Default Response (0x0b) Response to Command: 0x06 Status: Unsupported Cluster (0xc3) ```

Environment:

Koenkk commented 3 years ago

What if we bind the aqaraOpple cluster? Updated: https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files

Otnow commented 3 years ago

What if we bind the aqaraOpple cluster? Updated: https://github.com/Koenkk/zigbee-herdsman-converters/pull/2079/files

Added aqaraOpple to reporting.bind, but the illuminance parameter is still not visible:

Zigbee2mqtt log ``` - info 2021-01-22 01:27:03: 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":15,"extendedPanID":"0x00124b0014d9f126","panID":6754},"permit_join":false,"version":"1.17.0-dev"}' - debug 2021-01-22 01:27:21: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"lhu8n-1","value":true}' - info 2021-01-22 01:27:21: Zigbee: allowing new devices to join. - info 2021-01-22 01:27:21: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok","transaction":"lhu8n-1"}' - info 2021-01-22 01:27:32: Device '0x04cf8cdf3c7fd37e' joined - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-01-22 01:27:32: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-01-22 01:27:32: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-01-22 01:27:32: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-01-22 01:27:35: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:35: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"lumi.motion.agl02"}' - debug 2021-01-22 01:27:36: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:36: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"LUMI"}' - debug 2021-01-22 01:27:39: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:39: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":3}' - debug 2021-01-22 01:27:40: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:40: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":3}' - debug 2021-01-22 01:27:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"appVersion":35}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:41: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":35}' - debug 2021-01-22 01:27:42: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:42: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}' - debug 2021-01-22 01:27:43: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:43: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":1}' - debug 2021-01-22 01:27:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:44: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"dateCode":"20201113"}' - debug 2021-01-22 01:27:45: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-01-22 01:27:45: No converter available for 'RTCGQ12LM' with cluster 'genBasic' and type 'readResponse' and data '{"swBuildId":"2019\u0000www."}' - info 2021-01-22 01:27:45: MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - info 2021-01-22 01:27:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - info 2021-01-22 01:27:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/occupancy_timeout/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}' - info 2021-01-22 01:27:45: MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - info 2021-01-22 01:27:45: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-01-22 01:27:45: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (RTCGQ12LM) - info 2021-01-22 01:27:45: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-01-22 01:27:45: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","vendor":"Xiaomi"},"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","msOccupancySensing","genIdentify","genPowerCfg"],"output":["genIdentify","genOta"]},"configured_reportings":[]}},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":40718,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - info 2021-01-22 01:27:45: Configuring '0x04cf8cdf3c7fd37e' - info 2021-01-22 01:27:45: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-01-22 01:27:45: Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7fd37e/occupancy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"motion","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_zigbee2mqtt","value_template":"{{ value_json.occupancy }}"}' - debug 2021-01-22 01:27:45: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e battery","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' - debug 2021-01-22 01:27:46: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/occupancy_timeout/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e occupancy timeout","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_occupancy_timeout_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.occupancy_timeout }}"}' - debug 2021-01-22 01:27:46: Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7fd37e/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7fd37e"],"manufacturer":"Xiaomi","model":"Aqara T1 human body movement and illuminance sensor (RTCGQ12LM)","name":"0x04cf8cdf3c7fd37e","sw_version":"Zigbee2MQTT 1.17.0-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","name":"0x04cf8cdf3c7fd37e linkquality","state_topic":"zigbee2mqtt/0x04cf8cdf3c7fd37e","unique_id":"0x04cf8cdf3c7fd37e_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' - debug 2021-01-22 01:27:53: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-22 01:27:53: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":123,"occupancy":true}' - info 2021-01-22 01:27:54: Successfully configured '0x04cf8cdf3c7fd37e' - info 2021-01-22 01:27:55: 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":"20201113","definition":{"description":"Aqara T1 human body movement and illuminance sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","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"}},{"cluster":"aqaraOpple","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":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","interview_completed":true,"interviewing":false,"model_id":"lumi.motion.agl02","network_address":40718,"power_source":"Battery","software_build_id":"2019\u0000www.","supported":true,"type":"EndDevice"}]' - debug 2021-01-22 01:28:03: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"lhu8n-2","value":false}' - info 2021-01-22 01:28:03: Zigbee: disabling joining new devices. - info 2021-01-22 01:28:03: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":false},"status":"ok","transaction":"lhu8n-2"}' - debug 2021-01-22 01:28:10: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7fd37e/set' with data '{"occupancy_timeout":0}' - debug 2021-01-22 01:28:10: Publishing 'set' 'occupancy_timeout' to '0x04cf8cdf3c7fd37e' - info 2021-01-22 01:28:11: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":123,"occupancy":true,"occupancy_timeout":0}' - debug 2021-01-22 01:28:14: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":31}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:14: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":110,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:17: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:17: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:26: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:26: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":107,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:29: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:29: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:34: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:34: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":92,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:37: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:37: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:41: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:41: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":113,"occupancy":true,"occupancy_timeout":0,"voltage":3100}' - debug 2021-01-22 01:28:44: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":0}' from endpoint 1 with groupID 0 - info 2021-01-22 01:28:44: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":126,"occupancy":false,"occupancy_timeout":0,"voltage":3100}' ```

RTCGQ12LM_8.pcapng.gz - encrypted pcapng-dump (Network Key for decryption entries: 01030507090b0d0f00020406080a0c0d) RTCGQ12LM_8.zip - decrypted plain text dump

Recorded events in the dump:

Environment:

Koenkk commented 3 years ago

TBH I'm currently out of ideas how to get the illuminance working. I think the magic is in the write of 0x00FF (https://github.com/Koenkk/zigbee2mqtt/issues/5706#issuecomment-761622061) but looking at your various Xiaomi gateway sniff the values is different every time (so don't know how to reconstruct it). I will merge the current MR so at least occupancy is supported for now.

Where did you buy this sensor? Interested in buying one myself.

Otnow commented 3 years ago

I think the magic is in the write of 0x00FF (#5706 (comment)) but looking at your various Xiaomi gateway sniff the values is different every time (so don't know how to reconstruct it).

Yes, I think so too. You have correctly noticed that each time the gateway writes the 0x00FF attribute with a different value. I tried to write the 0x00FF attribute with the value from the dump, but the illuminance did not appear, because there seems to be some special algorithm for its generation. I also wanted to check for a possible vendor lock by MAC address, but for some reason the value of the configuration parameter ext_pan_id: [84, 239, 68, 16, 0, 2, 212, 160] is not applied:

- info  2021-01-22 05:35:30: Starting Zigbee2MQTT version 1.17.0-dev (commit #2ef2c54)
- info  2021-01-22 05:35:30: Starting zigbee-herdsman (0.13.57)
- debug 2021-01-22 05:35:30: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[25],"extendedPanID":[84,239,68,16,0,2,212,160],"networkKey":"HIDDEN","panID":22441},"serialPort":{"path":"/dev/ttyACM0"}}'
- info  2021-01-22 05:35:34: zigbee-herdsman started
- info  2021-01-22 05:35:34: Coordinator firmware version: '{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"}'
- debug 2021-01-22 05:35:34: Zigbee network parameters: {"channel":25,"extendedPanID":"0x00124b0014d9f126","panID":22441}

What can be wrong?

I will merge the current MR so at least occupancy is supported for now.

Ok, let it be as a temporary solution for now. Thank you.

Where did you buy this sensor? Interested in buying one myself.

I bought this sensor on Aliexpress from this seller (my purchase history), but judging by the comments under my review of the sensor on Reddit, it quickly ran out and now this seller is sending the old version (not T1). I think after some time this sensor should again appear on sale on Aliexpress and it is better to ask the seller in advance for the name of the model before buying, so as not to be mistaken.

Koenkk commented 3 years ago

About the ext_pan_id, can you provide the herdsman debug log when starting with this?

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

Otnow commented 3 years ago

About the ext_pan_id, can you provide the herdsman debug log when starting with this?

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

Herdsman debug log ``` $ DEBUG=zigbee-herdsman* npm start > zigbee2mqtt@1.17.0-dev start > node index.js Zigbee2MQTT:debug 2021-01-24 21:23:48: Loaded state from file /opt/zigbee2mqtt/data/state.json Zigbee2MQTT:info 2021-01-24 21:23:48: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2021-01-24.21-23-45' filename: log.txt Zigbee2MQTT:info 2021-01-24 21:23:48: Starting Zigbee2MQTT version 1.17.0-dev (commit #2ef2c54) Zigbee2MQTT:info 2021-01-24 21:23:48: Starting zigbee-herdsman (0.13.57) Zigbee2MQTT:debug 2021-01-24 21:23:48: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[25],"extendedPanID":[84,239,68,16,0,2,212,160],"networkKey":"HIDDEN","panID":22441},"serialPort":{"path":"/dev/ttyACM0"}}' zigbee-herdsman:adapter Path '/dev/ttyACM0' is valid for 'ZStackAdapter' +0ms zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252],"panID":22441,"extendedPanID":[84,239,68,16,0,2,212,160],"channelList":[25]},"serialPort":{"path":"/dev/ttyACM0"},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}' +0ms zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} +0ms zigbee-herdsman:adapter:zStack:znp:log Serialport opened +20ms zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload +473ms zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] +0ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +0ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +1s zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,2,97,1,121,7,28] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,2,97,1,121,7,28] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 2 - 3 - 1 - 1 - [121,7] - 28 +3ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - ping - {"capabilities":1913} +0ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +12ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - version - {} +39ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,2,35] +34ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,97,2,2,2,2,7,2,217,20,52,1,2,0,0,0,0,144] +14ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,97,2,2,2,2,7,2,217,20,52,1,2,0,0,0,0,144] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 3 - 1 - 2 - [2,2,2,7,2,217,20,52,1,2,0,0,0,0] - 144 +2ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - version - {"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20190425} +31ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +9ms zigbee-herdsman:adapter:zStack:adapter Adapter concurrent: 2 +0ms zigbee-herdsman:adapter:zStack:adapter Detected znp version 'zStack30x' ({"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20190425}) +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":96,"offset":0,"len":1,"value":{"type":"Buffer","data":[85]}} +34ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,96,0,0,74] +37ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,97,8,0,1,85,62] +24ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,97,8,0,1,85,62] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 3 - 1 - 8 - [0,1,85] - 62 +2ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":1,"value":{"type":"Buffer","data":[85]}} +31ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'hasConfigured' is valid +0ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":96,"offset":0,"len":1,"value":{"type":"Buffer","data":[85]}} +27ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,96,0,0,74] +25ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,97,8,0,1,85,62] +16ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,97,8,0,1,85,62] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 3 - 1 - 8 - [0,1,85] - 62 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":1,"value":{"type":"Buffer","data":[85]}} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'hasConfigured' is valid +23ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":132,"len":4,"offset":0,"value":{"type":"Buffer","data":[0,0,0,2]}} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,132,0,0,174] +22ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,6,97,8,0,4,0,0,0,2,105] +16ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,6,97,8,0,4,0,0,0,2,105] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 6 - 3 - 1 - 8 - [0,4,0,0,0,2] - 105 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":4,"value":{"type":"Buffer","data":[0,0,0,2]}} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'channelList' is valid +22ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":99,"len":1,"offset":0,"value":{"type":"Buffer","data":[0]}} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,99,0,0,73] +21ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,97,8,0,1,0,107] +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,97,8,0,1,0,107] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 3 - 1 - 8 - [0,1,0] - 107 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":1,"value":{"type":"Buffer","data":[0]}} +30ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'networkKeyDistribute' is valid +31ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SAPI - readConfiguration - {"id":98,"configid":98,"len":16,"offset":0,"value":{"type":"Buffer","data":[33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252]}} +31ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,1,38,4,98,65] +31ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,19,102,4,0,98,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,83] +17ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,19,102,4,0,98,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,83] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 19 - 3 - 6 - 4 - [0,98,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252] - 83 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SAPI - readConfiguration - {"status":0,"configid":98,"len":16,"value":{"type":"Buffer","data":[33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252]}} +24ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'networkKey' is valid +24ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":131,"len":2,"offset":0,"value":{"type":"Buffer","data":[169,87]}} +24ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,131,0,0,169] +24ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,4,97,8,0,2,169,87,145] +14ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,4,97,8,0,2,169,87,145] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 4 - 3 - 1 - 8 - [0,2,169,87] - 145 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":2,"value":{"type":"Buffer","data":[169,87]}} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'panID' is valid +20ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":45,"len":8,"offset":0,"value":{"type":"Buffer","data":[84,239,68,16,0,2,212,160]}} +20ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,45,0,0,7] +20ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,10,97,8,0,8,84,239,68,16,0,2,212,160,242] +31ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,10,97,8,0,8,84,239,68,16,0,2,212,160,242] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 10 - 3 - 1 - 8 - [0,8,84,239,68,16,0,2,212,160] - 242 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":8,"value":{"type":"Buffer","data":[84,239,68,16,0,2,212,160]}} +38ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms zigbee-herdsman:adapter:zStack:startZnp Item 'extendedPanID' is valid +39ms zigbee-herdsman:adapter:zStack:znp:SREQ --> UTIL - getDeviceInfo - {} +39ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,39,0,39] +39ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,103,0,0,38,241,217,20,0,75,18,0,0,0,7,9,0,36] +17ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,103,0,0,38,241,217,20,0,75,18,0,0,0,7,9,0,36] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 3 - 7 - 0 - [0,38,241,217,20,0,75,18,0,0,0,7,9,0] - 36 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- UTIL - getDeviceInfo - {"status":0,"ieeeaddr":"0x00124b0014d9f126","shortaddr":0,"devicetype":7,"devicestate":9,"numassocdevices":0,"assocdeviceslist":[]} +25ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +5ms zigbee-herdsman:adapter:zStack:startZnp ZNP is already started as coordinator +25ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - activeEpReq - {"dstaddr":0,"nwkaddrofinterest":0} +26ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,4,37,5,0,0,0,0,36] +26ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,5,0,97] +17ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,5,0,97] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 5 - [0] - 97 +2ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - activeEpReq - {"status":0} +29ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +9ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,20,69,133,0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1,102] +5ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,20,69,133,0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1,102] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 20 - 2 - 5 - 133 - [0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1] - 102 +2ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - activeEpRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"activeepcount":14,"activeeplist":[242,47,13,12,110,11,10,8,6,5,4,3,2,1]} +0ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +6ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '1' already registered +43ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '2' already registered +2ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '3' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '4' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '5' already registered +0ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '6' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '8' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '10' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '11' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '110' already registered +0ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '12' already registered +2ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '13' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '47' already registered +1ms zigbee-herdsman:adapter:zStack:startZnp Endpoint '242' already registered +0ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - extFindGroup - {"endpoint":242,"groupid":2948} +54ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,37,74,242,132,11,17] +54ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,19,101,74,0,132,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179] +24ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,19,101,74,0,132,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 19 - 3 - 5 - 74 - [0,132,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] - 179 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - extFindGroup - {"status":0,"groupid":2948,"namelen":0,"groupname":{"type":"Buffer","data":[]}} +46ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +3ms zigbee-herdsman:controller:log Started with result 'resumed' +2s zigbee-herdsman:controller:log Injected database: true, adapter: true +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - activeEpReq - {"dstaddr":0,"nwkaddrofinterest":0} +24ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,4,37,5,0,0,0,0,36] +25ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,5,0,97] +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,5,0,97] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 5 - [0] - 97 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - activeEpReq - {"status":0} +27ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,20,69,133,0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1,102] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,20,69,133,0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1,102] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 20 - 2 - 5 - 133 - [0,0,0,0,0,14,242,47,13,12,110,11,10,8,6,5,4,3,2,1] - 102 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - activeEpRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"activeepcount":14,"activeeplist":[242,47,13,12,110,11,10,8,6,5,4,3,2,1]} +65ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> UTIL - getDeviceInfo - {} +25ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,39,0,39] +24ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,103,0,0,38,241,217,20,0,75,18,0,0,0,7,9,0,36] +13ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,103,0,0,38,241,217,20,0,75,18,0,0,0,7,9,0,36] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 3 - 7 - 0 - [0,38,241,217,20,0,75,18,0,0,0,7,9,0] - 36 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- UTIL - getDeviceInfo - {"status":0,"ieeeaddr":"0x00124b0014d9f126","shortaddr":0,"devicetype":7,"devicestate":9,"numassocdevices":0,"assocdeviceslist":[]} +25ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +3ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":242} +19ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,242,214] +18ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +12ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +16ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,242,224,161,5,0,0,0,0,113] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,242,224,161,5,0,0,0,0,113] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,242,224,161,5,0,0,0,0] - 113 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":242,"profileid":41440,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +41ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +3ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":47} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,47,11] +23ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +13ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +24ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,47,4,1,5,0,0,0,0,232] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,47,4,1,5,0,0,0,0,232] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,47,4,1,5,0,0,0,0] - 232 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":47,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +24ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":13} +25ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,13,41] +24ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +2ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,16,69,132,0,0,0,0,0,10,13,4,1,5,0,0,1,25,0,0,206] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,16,69,132,0,0,0,0,0,10,13,4,1,5,0,0,1,25,0,0,206] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 16 - 2 - 5 - 132 - [0,0,0,0,0,10,13,4,1,5,0,0,1,25,0,0] - 206 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":10,"endpoint":13,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":1,"inclusterlist":[25],"numoutclusters":0,"outclusterlist":[]} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":12} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,12,40] +22ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +12ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,12,94,192,5,0,0,0,0,80] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,12,94,192,5,0,0,0,0,80] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,12,94,192,5,0,0,0,0] - 80 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":12,"profileid":49246,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +3ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":110} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,110,74] +23ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,110,4,1,5,0,0,0,0,169] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,110,4,1,5,0,0,0,0,169] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,110,4,1,5,0,0,0,0] - 169 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":110,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":11} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,11,47] +21ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,20,69,132,0,0,0,0,0,14,11,4,1,0,4,0,1,1,5,2,0,5,2,5,212] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,20,69,132,0,0,0,0,0,14,11,4,1,0,4,0,1,1,5,2,0,5,2,5,212] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 20 - 2 - 5 - 132 - [0,0,0,0,0,14,11,4,1,0,4,0,1,1,5,2,0,5,2,5] - 212 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":14,"endpoint":11,"profileid":260,"deviceid":1024,"deviceversion":0,"numinclusters":1,"inclusterlist":[1281],"numoutclusters":2,"outclusterlist":[1280,1282]} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":10} +21ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,10,46] +22ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +12ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,10,4,1,5,0,0,0,0,205] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,10,4,1,5,0,0,0,0,205] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,10,4,1,5,0,0,0,0] - 205 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":10,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":8} +23ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,8,44] +23ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +12ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +23ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,8,4,1,5,0,0,0,0,207] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,8,4,1,5,0,0,0,0,207] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,8,4,1,5,0,0,0,0] - 207 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":8,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":6} +23ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,6,34] +22ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,6,9,1,5,0,0,0,0,204] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,6,9,1,5,0,0,0,0,204] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,6,9,1,5,0,0,0,0] - 204 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":6,"profileid":265,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":5} +20ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,5,33] +20ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +19ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,5,8,1,5,0,0,0,0,206] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,5,8,1,5,0,0,0,0,206] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,5,8,1,5,0,0,0,0] - 206 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":5,"profileid":264,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":4} +18ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,4,32] +18ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,4,7,1,5,0,0,0,0,192] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,4,7,1,5,0,0,0,0,192] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,4,7,1,5,0,0,0,0] - 192 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":4,"profileid":263,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +19ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":3} +18ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,3,39] +18ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +19ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,3,5,1,5,0,0,0,0,197] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,3,5,1,5,0,0,0,0,197] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,3,5,1,5,0,0,0,0] - 197 +1ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":3,"profileid":261,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":2} +19ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,2,38] +19ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +17ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,2,1,1,5,0,0,0,0,192] +3ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,2,1,1,5,0,0,0,0,192] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,2,1,1,5,0,0,0,0] - 192 +0ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":2,"profileid":257,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":1} +18ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,1,37] +18ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,1,4,1,5,0,0,0,0,198] +4ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,1,4,1,5,0,0,0,0,198] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,1,4,1,5,0,0,0,0] - 198 +0ms zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":1,"profileid":260,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} +19ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:controller:log Creating coordinator backup +350ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - version - {} +29ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,2,35] +29ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,97,2,2,2,2,7,2,217,20,52,1,2,0,0,0,0,144] +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,97,2,2,2,2,7,2,217,20,52,1,2,0,0,0,0,144] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 3 - 1 - 2 - [2,2,2,7,2,217,20,52,1,2,0,0,0,0] - 144 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - version - {"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20190425} +28ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":1,"offset":0,"osal":true,"product":-1} +11ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,1,0,0,43] +11ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,10,97,8,0,8,38,241,217,20,0,75,18,0,40] +16ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,10,97,8,0,8,38,241,217,20,0,75,18,0,40] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 10 - 3 - 1 - 8 - [0,8,38,241,217,20,0,75,18,0] - 40 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":8,"value":{"type":"Buffer","data":[38,241,217,20,0,75,18,0]}} +19ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":33,"offset":0,"osal":true,"product":-1} +20ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,33,0,0,11] +20ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,112,97,8,0,110,186,5,2,16,20,16,0,20,0,0,0,1,5,1,143,7,0,2,5,30,0,0,25,0,0,0,0,0,0,0,0,0,0,169,87,8,0,0,0,2,15,15,4,0,1,0,0,0,1,0,0,0,0,38,241,217,20,0,75,18,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,3,0,1,120,10,1,0,0,0,0,0,184] +30ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,112,97,8,0,110,186,5,2,16,20,16,0,20,0,0,0,1,5,1,143,7,0,2,5,30,0,0,25,0,0,0,0,0,0,0,0,0,0,169,87,8,0,0,0,2,15,15,4,0,1,0,0,0,1,0,0,0,0,38,241,217,20,0,75,18,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,3,0,1,120,10,1,0,0,0,0,0,184] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 112 - 3 - 1 - 8 - [0,110,186,5,2,16,20,16,0,20,0,0,0,1,5,1,143,7,0,2,5,30,0,0,25,0,0,0,0,0,0,0,0,0,0,169,87,8,0,0,0,2,15,15,4,0,1,0,0,0,1,0,0,0,0,38,241,217,20,0,75,18,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,3,0,1,120,10,1,0,0,0,0,0] - 184 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":110,"value":{"type":"Buffer","data":[186,5,2,16,20,16,0,20,0,0,0,1,5,1,143,7,0,2,5,30,0,0,25,0,0,0,0,0,0,0,0,0,0,169,87,8,0,0,0,2,15,15,4,0,1,0,0,0,1,0,0,0,0,38,241,217,20,0,75,18,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,3,0,1,120,10,1,0,0,0,0,0]}} +34ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":131,"offset":0,"osal":true,"product":-1} +33ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,131,0,0,169] +33ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,4,97,8,0,2,169,87,145] +15ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,4,97,8,0,2,169,87,145] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 4 - 3 - 1 - 8 - [0,2,169,87] - 145 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":2,"value":{"type":"Buffer","data":[169,87]}} +20ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":45,"offset":0,"osal":true,"product":-1} +19ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,45,0,0,7] +19ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,10,97,8,0,8,84,239,68,16,0,2,212,160,242] +26ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,10,97,8,0,8,84,239,68,16,0,2,212,160,242] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 10 - 3 - 1 - 8 - [0,8,84,239,68,16,0,2,212,160] - 242 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":8,"value":{"type":"Buffer","data":[84,239,68,16,0,2,212,160]}} +28ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":58,"offset":0,"osal":true,"product":-1} +29ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,58,0,0,16] +29ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,19,97,8,0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +7ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,19,97,8,0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 19 - 3 - 1 - 8 - [0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252] - 59 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":17,"value":{"type":"Buffer","data":[0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252]}} +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":59,"offset":0,"osal":true,"product":-1} +10ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,59,0,0,17] +10ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,19,97,8,0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +9ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,19,97,8,0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 19 - 3 - 1 - 8 - [0,17,0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252] - 59 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":17,"value":{"type":"Buffer","data":[0,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252]}} +12ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":71,"offset":0,"osal":true,"product":-1} +12ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,71,0,0,109] +12ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,10,97,8,0,8,0,0,0,0,0,0,0,0,107] +20ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,10,97,8,0,8,0,0,0,0,0,0,0,0,107] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 10 - 3 - 1 - 8 - [0,8,0,0,0,0,0,0,0,0] - 107 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":8,"value":{"type":"Buffer","data":[0,0,0,0,0,0,0,0]}} +22ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":98,"offset":0,"osal":true,"product":-1} +22ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,98,0,0,72] +22ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,18,97,8,0,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +10ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,18,97,8,0,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252,59] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 18 - 3 - 1 - 8 - [0,16,33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252] - 59 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":16,"value":{"type":"Buffer","data":[33,114,79,72,173,142,187,196,249,106,231,0,5,6,211,252]}} +13ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":99,"offset":0,"osal":true,"product":-1} +13ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,99,0,0,73] +13ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,97,8,0,1,0,107] +18ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,97,8,0,1,0,107] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 3 - 1 - 8 - [0,1,0] - 107 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":1,"value":{"type":"Buffer","data":[0]}} +21ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +2ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":132,"offset":0,"osal":true,"product":-1} +21ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,132,0,0,174] +21ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,6,97,8,0,4,0,0,0,2,105] +9ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,6,97,8,0,4,0,0,0,2,105] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 6 - 3 - 1 - 8 - [0,4,0,0,0,2] - 105 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":4,"value":{"type":"Buffer","data":[0,0,0,2]}} +11ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":273,"product":2,"offset":0,"osal":true} +11ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,17,1,0,58] +11ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,21,97,8,0,19,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,188] +13ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,21,97,8,0,19,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,188] +0ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 21 - 3 - 1 - 8 - [0,19,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0] - 188 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":19,"value":{"type":"Buffer","data":[44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0]}} +16ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvRead - {"id":117,"product":2,"offset":0,"osal":true} +16ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,117,0,0,95] +16ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,97,8,0,12,49,81,1,0,38,241,217,20,0,75,18,0,73] +33ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,97,8,0,12,49,81,1,0,38,241,217,20,0,75,18,0,73] +1ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 3 - 1 - 8 - [0,12,49,81,1,0,38,241,217,20,0,75,18,0] - 73 +0ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":12,"value":{"type":"Buffer","data":[49,81,1,0,38,241,217,20,0,75,18,0]}} +35ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +1ms zigbee-herdsman:controller:log Wrote coordinator backup to '/opt/zigbee2mqtt/data/coordinator_backup.json' +963ms Zigbee2MQTT:info 2021-01-24 21:23:53: zigbee-herdsman started Zigbee2MQTT:info 2021-01-24 21:23:53: Coordinator firmware version: '{"meta":{"maintrel":2,"majorrel":2,"minorrel":7,"product":2,"revision":20190425,"transportrev":2},"type":"zStack30x"}' zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - extNwkInfo - {} +766ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,37,80,117] +767ms zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,24,101,80,0,0,9,169,87,0,0,38,241,217,20,0,75,18,0,0,0,0,0,0,0,0,0,25,128] +742ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,24,101,80,0,0,9,169,87,0,0,38,241,217,20,0,75,18,0,0,0,0,0,0,0,0,0,25,128] +2ms zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 24 - 3 - 5 - 80 - [0,0,9,169,87,0,0,38,241,217,20,0,75,18,0,0,0,0,0,0,0,0,0,25] - 128 +1ms zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - extNwkInfo - {"shortaddr":0,"devstate":9,"panid":22441,"parentaddr":0,"extendedpanid":"0x00124b0014d9f126","parentextaddr":"0x0000000000000000","channel":25} +748ms zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms Zigbee2MQTT:debug 2021-01-24 21:23:53: Zigbee network parameters: {"channel":25,"extendedPanID":"0x00124b0014d9f126","panID":22441} ```
Koenkk commented 3 years ago

Ah, this is a bug in the Zstack 3.0.x firmware (probably will not be fixed since this firmware is not maintained anymore by TI).

Here you see Zigbee2MQTT checks the extended pan id, which matches yours:

  zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvRead - {"status":0,"len":8,"value":{"type":"Buffer","data":[84,239,68,16,0,2,212,160]}} +38ms
  zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +4ms
  zigbee-herdsman:adapter:zStack:startZnp Item 'extendedPanID' is valid +39ms

However when z2m reads the extended pan id with another request it returns the ieeeAddr instead of the extended pan id.

  zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - extNwkInfo - {"shortaddr":0,"devstate":9,"panid":22441,"parentaddr":0,"extendedpanid":"0x00124b0014d9f126","parentextaddr":"0x0000000000000000","channel":25} +748ms

This probably is not the issue why the illuminance doesn't work (since other stuff works fine)

github-actions[bot] commented 3 years ago

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

Otnow commented 3 years ago

Experimentally, it was possible to find out that the value of the attribute 0x00FF, which the gateway transmits to the sensor during pairing, changes approximately once every 5 minutes:

21:20:33 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10
21:21:20 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10
21:22:18 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10
21:23:17 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10
21:24:16 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10
21:25:16 - 30:53:24:44:22:15:63:24:12:55:14:34:29:22:84:10

21:26:16 - 95:47:57:88:77:34:10:69:61:74:79:54:40:78:18:18
21:27:17 - 95:47:57:88:77:34:10:69:61:74:79:54:40:78:18:18
21:28:15 - 95:47:57:88:77:34:10:69:61:74:79:54:40:78:18:18
21:29:17 - 95:47:57:88:77:34:10:69:61:74:79:54:40:78:18:18
21:30:16 - 95:47:57:88:77:34:10:69:61:74:79:54:40:78:18:18

21:31:16 - 13:41:03:54:26:81:18:82:21:26:24:94:14:78:81:83
21:32:15 - 13:41:03:54:26:81:18:82:21:26:24:94:14:78:81:83
21:33:48 - 13:41:03:54:26:81:18:82:21:26:24:94:14:78:81:83
21:34:19 - 13:41:03:54:26:81:18:82:21:26:24:94:14:78:81:83
21:35:15 - 13:41:03:54:26:81:18:82:21:26:24:94:14:78:81:83

21:36:24 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53
21:37:17 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53
21:38:15 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53
21:39:52 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53
21:40:21 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53
21:41:17 - 18:23:20:31:56:54:56:74:94:08:16:32:42:00:96:53

21:42:16 - 97:89:23:89:20:68:35:37:87:57:99:95:19:14:44:15
21:43:15 - 97:89:23:89:20:68:35:37:87:57:99:95:19:14:44:15

RTCGQ12LM_9.zip - decrypted plain text dump

Using the intercepted value of the 0x00FF attribute for 5 minutes, I repeated its transmission to the sensor in the test environment, but the sensor did not start transmitting the illuminance value.

Environment:

github-actions[bot] commented 3 years ago

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

victorhooi commented 3 years ago

I recently purchased some of the RTCGQ12LM sensors myself.

I'm curious - does anybody have any ideas as to why illuminance not work?

Would it help if I supplied a physical sample of this sensor to the developers?

Or is there something I can dump from the sensors I have here?

Otnow commented 3 years ago

I recently purchased some of the RTCGQ12LM sensors myself.

I'm curious - does anybody have any ideas as to why illuminance not work?

Would it help if I supplied a physical sample of this sensor to the developers?

Or is there something I can dump from the sensors I have here?

Unfortunately, Aqara does not strictly adhere to the standard of the zigbee protocol, so the algorithm for activating the transmission of illuminance data by the sensor is not yet clear.

Hopefully, over time, someone will figure out this algorithm.

victorhooi commented 3 years ago

Got it - do any of the devs need a sample of the server to progress this?

dmulcahey commented 2 years ago

@Koenkk while working on supporting the E1 devices in ZHA I noticed something interesting. When we do the same thing that you did in the firmware to support the E1 devices (respond w/ Xiamoi's MFG code when pairing) this device acts differently. I haven't had a ton of time to dig into this much yet but I am getting reports now from cluster 0xfcc0 which isn't in the device signature.

Otnow commented 2 years ago

@Koenkk while working on supporting the E1 devices in ZHA I noticed something interesting. When we do the same thing that you did in the firmware to support the E1 devices (respond w/ Xiamoi's MFG code when pairing) this device acts differently. I haven't had a ton of time to dig into this much yet but I am getting reports now from cluster 0xfcc0 which isn't in the device signature.

Yes, thanks, I am planning to test the operation of this motion sensor with a modified coordinator firmware (respond w/ Xiamoi's MFG code when pairing) by analogy with the e1 sensors and with a high probability I hope to get the illuminance data.

dmulcahey commented 2 years ago

@Koenkk while working on supporting the E1 devices in ZHA I noticed something interesting. When we do the same thing that you did in the firmware to support the E1 devices (respond w/ Xiamoi's MFG code when pairing) this device acts differently. I haven't had a ton of time to dig into this much yet but I am getting reports now from cluster 0xfcc0 which isn't in the device signature.

Yes, thanks, I am planning to test the operation of this motion sensor with a modified coordinator firmware (respond w/ Xiamoi's MFG code when pairing) by analogy with the e1 sensors and with a high probability I hope to get the illuminance data.

From a quick test… the default occupancy sensing cluster functionality now appears broken. I see traffic on the mfg cluster. There are 2 reports that I have noticed so far. One looks like the typical Xiaomi byte string and the other looks like it’s the occupancy event. I’m not at the logs atm so I can’t provide specifics

Koenkk commented 2 years ago

@dmulcahey interesting! (and somehow disappointing that Xiaomi doesn't follow the spec, I guess they just don't want their device to work with other gateways)

@Otnow could you provide the z2m debug log when running with the new fw and triggering occupancy on the sensor?

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging.

dmulcahey commented 2 years ago

This isn't from Z2M but it is what the sensor sends when occupancy is triggered: Endpoint 1, Cluster Id: 0xfcc0 ZCL request 0x000a: [[Attribute(attrid=274, value=<TypeValue type=uint32_t, value=65540>)]]

The value of this attribute isn't consistent.

if you press the button on the device 1x you also get the Xiaomi bytes report:

Endpoint 1, Cluster Id: 0xfcc0 ZCL request 0x000a: [[Attribute(attrid=247, value=<TypeValue type=LVBytes, value=b'\x01!?\x0c\x03(\x19\x04!\xa8C\x05!\x18\x00\x06$\x03\x00\x00\x00\x00\x08!#\x01\n!\x00\x00\x0c \x01d\x10\x00e!\x00\x00f \x03g \x01h!\xa8\x00'>)]]

It also looks like occupancy no longer clears itself

Otnow commented 2 years ago

@dmulcahey interesting! (and somehow disappointing that Xiaomi doesn't follow the spec, I guess they just don't want their device to work with other gateways)

@Otnow could you provide the z2m debug log when running with the new fw and triggering occupancy on the sensor?

Yes, unfortunately Aqara is trying to prevent its sensors from being used in alternative systems.

This motion sensor, when paired with a coordinator on a modified firmware, completely ceases to use standard clusters (msOccupancySensing no longer gives occupancy data and is occupied all the time) and uses only its own (aqaraOpple - 0xFCC0).

Now, in fact, there is only a motion start event containing illuminance data - cluster 0xFCC0: attribute 0x0112 (type: 0x23), manufacturerCode: 0x115f - starting point: 65536 = 0 Lux:

Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65540}' from endpoint 1 with groupID 0

The occupancy timeout is now contained in parameter - cluster 0xFCC0: attribute 0x0102 (type: 0x20), manufacturerCode: 0x115f - default: 60 sec:

Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'aqaraOpple', data '{"258":60}' from endpoint 1 with groupID 0
Zigbee2mqtt debug log ``` - info 2021-11-18 01:39:48: Device '0x04cf8cdf3c7fd37e' joined - info 2021-11-18 01:39:48: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_joined"}' - info 2021-11-18 01:39:48: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_connected"}' - info 2021-11-18 01:39:48: Starting interview of '0x04cf8cdf3c7fd37e' - info 2021-11-18 01:39:48: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"started"},"type":"device_interview"}' - info 2021-11-18 01:39:48: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"pairing"}' - debug 2021-11-18 01:39:49: Device '0x04cf8cdf3c7fd37e' announced itself - info 2021-11-18 01:39:49: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e"},"type":"device_announce"}' - info 2021-11-18 01:39:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x04cf8cdf3c7fd37e"},"type":"device_announced"}' - debug 2021-11-18 01:39:54: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'genBasic', data '{"appVersion":35,"modelId":"lumi.motion.agl02"}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:39:54: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:39:57: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[1,33,243,11,3,40,25,4,33,168,1,5,33,112,2,6,36,4,0,0,0,0,8,33,35,1,10,33,0,0,12,32,1,100,16,0,101,33,5,0,102,32,3,103,32,1,104,33,168,0],"type":"Buffer"}}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:39:57: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:01: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[1,33,227,11,3,40,25,4,33,168,1,5,33,112,2,6,36,6,0,0,0,0,8,33,35,1,10,33,0,0,12,32,1,100,16,0,101,33,5,0,102,32,3,103,32,1,104,33,168,0],"type":"Buffer"}}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:01: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:02: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"LUMI"}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:02: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:03: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:03: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:04: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65541}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:04: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:04: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:04: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:05: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:05: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:06: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:06: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:07: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20201113"}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:07: Skipping message, definition is undefined and still interviewing - debug 2021-11-18 01:40:08: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"2019\u0000www."}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:08: Skipping message, definition is undefined and still interviewing - info 2021-11-18 01:40:08: Successfully interviewed '0x04cf8cdf3c7fd37e', device has successfully been paired - info 2021-11-18 01:40:08: Device '0x04cf8cdf3c7fd37e' is supported, identified as: Xiaomi Aqara T1 human body movement and illuminance sensor (illuminance not supported for now) (RTCGQ12LM) - info 2021-11-18 01:40:08: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 human body movement and illuminance sensor (illuminance not supported for now)","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"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":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ12LM","options":[],"supports_ota":false,"vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7fd37e","ieee_address":"0x04cf8cdf3c7fd37e","status":"successful","supported":true},"type":"device_interview"}' - info 2021-11-18 01:40:08: Configuring '0x04cf8cdf3c7fd37e' - info 2021-11-18 01:40:08: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara T1 human body movement and illuminance sensor (illuminance not supported for now)","friendly_name":"0x04cf8cdf3c7fd37e","model":"RTCGQ12LM","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' - debug 2021-11-18 01:40:11: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65542}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:11: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65542}' - debug 2021-11-18 01:40:13: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'msOccupancySensing', data '{"occupancy":1}' from endpoint 1 with groupID 0 - info 2021-11-18 01:40:13: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"linkquality":94,"occupancy":true}' - debug 2021-11-18 01:40:14: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'genPowerCfg', data '{"batteryVoltage":30}' from endpoint 1 with groupID 0 - info 2021-11-18 01:40:14: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":99,"occupancy":true,"voltage":3000}' - debug 2021-11-18 01:40:15: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'readResponse', cluster 'msOccupancySensing', data '{"pirOToUDelay":120}' from endpoint 1 with groupID 0 - info 2021-11-18 01:40:15: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7fd37e', payload '{"battery":100,"linkquality":97,"occupancy":true,"occupancy_timeout":120,"voltage":3000}' - info 2021-11-18 01:40:15: Successfully configured '0x04cf8cdf3c7fd37e' - debug 2021-11-18 01:40:34: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65540}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:34: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65540}' - debug 2021-11-18 01:40:52: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65541}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:40:52: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65541}' - debug 2021-11-18 01:41:00: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65542}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:41:00: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65542}' - debug 2021-11-18 01:41:07: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65541}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:41:07: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65541}' - debug 2021-11-18 01:41:12: Received Zigbee message from '0x04cf8cdf3c7fd37e', type 'attributeReport', cluster 'aqaraOpple', data '{"illuminance":65540}' from endpoint 1 with groupID 0 - debug 2021-11-18 01:41:12: No converter available for 'RTCGQ12LM' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"illuminance":65540}' ```

Environment:

Koenkk commented 2 years ago

@Otnow could you try with this external converter:

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const {calibrateAndPrecisionRoundOptions} = require('zigbee-herdsman-converters/lib/utils');
const e = exposes.presets;
const ea = exposes.access;

const fzLocal = {
    occupancy_illuminance: {
        cluster: 'aqaraOpple',
        type: ['attributeReport', 'readResponse'],
        options: [exposes.options.precision('illuminance'), exposes.options.calibration('illuminance', 'percentual'), 
            exposes.options.occupancy_timeout()],
        convert: (model, msg, publish, options, meta) => {
            if (msg.data.hasOwnProperty('illuminance')) {
                // The occupancy sensor only sends a message when motion detected.
                // Therefore we need to publish the no_motion detected by ourselves.
                const timeout = options && options.hasOwnProperty('occupancy_timeout') ? options.occupancy_timeout : 90;

                // Stop existing timers because motion is detected and set a new one.
                globalStore.getValue(msg.endpoint, 'timers', []).forEach((t) => clearTimeout(t));
                globalStore.putValue(msg.endpoint, 'timers', []);

                if (timeout !== 0) {
                    const timer = setTimeout(() => {
                        publish({occupancy: false});
                    }, timeout * 1000);

                    globalStore.getValue(msg.endpoint, 'timers').push(timer);
                }

                const illuminance = msg.data['illuminance'] - 65536;
                return {occupancy: true, illuminance: calibrateAndPrecisionRoundOptions(illuminance, options, 'illuminance')}
            }
        },
    }
}

const definition = {
    zigbeeModel: ['lumi.motion.agl02'],
    model: 'RTCGQ12LM',
    vendor: 'Xiaomi',
    description: 'Aqara T1 human body movement and illuminance sensor',
    fromZigbee: [fzLocal.occupancy_illuminance, fz.aqara_opple_report],
    toZigbee: [],
    exposes: [e.illuminance().withUnit('lx').withDescription('Measured illuminance in lux'), e.occupancy(), e.battery(), e.battery_voltage()],
};

module.exports = definition;

See https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#instructions how to use it

Questions:

The occupancy timeout is now contained in parameter - cluster 0xFCC0: attribute 0x0102 (type: 0x20), manufacturerCode: 0x115f - default: 60 sec:

  • I don't understand why the sensor does this when it doesn't send an occupancy false event itself.
dmulcahey commented 2 years ago

The occupancy timeout is now contained in parameter - cluster 0xFCC0: attribute 0x0102 (type: 0x20), manufacturerCode: 0x115f - default: 60 sec:

  • I don't understand why the sensor does this when it doesn't send an occupancy false event itself.

Maybe it's writeable that way software can use this to reset it? similar to on w/ timed off from the OnOff cluster? I don't understand why the entire device needs to function completely differently...

Given what we are seeing I am starting to go through the rest of the Aqara Zigbee 3.0 devices that I have managed to acquire... The Aqara TVOC device now has the Opple cluster as well when pairing w/ this change. Unlike the T1 motion sensor the device continues to function as it did before the change. So much for any form of consistency. The Opple cluster is reporting the Xiaomi data but I have no clue what any of it is for.

It may make sense to go through all Aqara Zigbee 3.0 devices to ensure they function still before widely recommending this firmware change to support the E1 devices.

Koenkk commented 2 years ago

Maybe it's writeable that way software can use this to reset it? similar to on w/ timed off from the OnOff cluster? I don't understand why the entire device needs to function completely differently...

That would only make sense if the occupancy sensor also can produce an occupancy: false event (like e.g. the Hue occupancy sensors)

It may make sense to go through all Aqara Zigbee 3.0 devices to ensure they function still before widely recommending this firmware change to support the E1 devices.

True, @z-x-f you have added support for many new Xiaomi devices, do you see any differences with the new fw?

dmulcahey commented 2 years ago

True, @z-x-f you have added support for many new Xiaomi devices, do you see any differences with the new fw?

You need to remove them and re-pair them to test just FYI.

z-x-f commented 2 years ago

@Koenkk My smart outlet, smart plug and smart wall switch are no different with the new fw (after removing, restart z2m, and then re-pair).