|
楼主 |
发表于 2023-3-26 21:20:21
|
显示全部楼层
感谢大佬,后面设置成功了,还是有问题,这是我后面重装的日志,就是没有读取到occupancy的状态,是不是e1本身的z2m代码有问题啊
Info 2023-03-25 17:05:28MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara E1 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":"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":7,"description":"Time interval for detecting actions","name":"detection_interval","property":"detection_interval","type":"numeric","unit":"s","value_max":65535,"value_min":2},
{"access":1,"description":"Temperature of the device","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},
{"access":1,"description":"Remaining battery in %, can take up to 24 hours before reported.","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},
{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},
{"access":1,"description":"Number of power outages","name":"power_outage_count","property":"power_outage_count","type":"numeric"},
{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ15LM","options":[
{"access":2,"description":"Time in seconds after which occupancy is cleared after detecting it (default is \"detection_interval\" + 2 seconds). The value must be equal to or greater than \"detection_interval\", and it can also be a fraction.","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","unit":"s","value_min":0,"value_step":0.1},
{"access":2,"description":"Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{\"no_occupancy_since\": 10}` will be send after 10 seconds and a `{\"no_occupancy_since\": 60}` after 60 seconds.","item_type":
{"access":3,"name":"time","type":"numeric"},"name":"no_occupancy_since","property":"no_occupancy_since","type":"list"},
{"access":2,"description":"Calibrates the illuminance value (percentual offset), takes into effect on next report of device.","name":"illuminance_calibration","property":"illuminance_calibration","type":"numeric"},
{"access":2,"description":"Calibrates the illuminance_lux value (percentual offset), takes into effect on next report of device.","name":"illuminance_lux_calibration","property":"illuminance_lux_calibration","type":"numeric"},
{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],
"supports_ota":true,"vendor":"Xiaomi"},"friendly_name":"0x54ef4410007c9b48","ieee_address":"0x54ef4410007c9b48","status":"successful","supported":true},"type":"device_interview"}'
Received Zigbee message from '0x54ef4410007c9b48', type 'attributeReport', cluster 'genBasic', data '{"modelId":"lumi.motion.acn001"}' from endpoint 1 with groupID 0
Debug 2023-03-25 21:27:51Received Zigbee message from '0x54ef4410007c9b48', type 'attributeReport', cluster 'aqaraOpple', data '
{"247":{"data":[1,33,244,11,3,40,25,4,33,0,0,5,33,1,0,8,33,10,0,10,33,87,136,12,32,30,100,16,0,101,33,79,0],"type":"Buffer"}}' from endpoint 1 with groupID 0
Debug 2023-03-25 21:27:51lumi.motion.acn001: Processed buffer into data {"1":3060,"3":25,"4":0,"5":1,"8":10,"10":34903,"12":30,"100":0,"101":79}
Debug 2023-03-25 21:27:51lumi.motion.acn001: Processed data into payload {"voltage":3060,"battery":100,"device_temperature":25,"power_outage_count":0,"illuminance":79}
Debug 2023-03-25 21:27:51lumi.motion.acn001: Processed data into payload {"voltage":3060,"battery":100,"device_temperature":25,"power_outage_count":0,"illuminance":79}
Info 2023-03-25 21:27:51MQTT publish: topic 'zigbee2mqtt/0x54ef4410007c9b48', payload '{"battery":100,"detection_interval":60,"device_temperature":25,"illuminance":79,
"linkquality":105,"occupancy":null,"power_outage_count":0,"update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":3060}' |
|