Koenkk / zigbee2mqtt

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

PIR313-E doesn't send anything despite registration ok #16816

Closed dblas closed 1 year ago

dblas commented 1 year ago

What happened?

I have 2 PIR313-E since yesterday. Both PIR313-E went registered without any problem in Z2M. But once it's done, nothing more: PIR313s don't emit anything else despite the blinking red Led when the sensor detects something. BTW I have 20 or so other zigbee end devices and routers including on PIR323-PTH that work in the same conditions.

Did I miss something specific to this device?

db

What did you expect to happen?

Receiving informations like battery level, linkquality, illuminance, temperature and hygrometry.

How to reproduce it (minimal and precise)

Association done and watching.

Zigbee2MQTT version

1.30.1 commit: eb878d3

Adapter firmware version

zstack3x0 20210708

Adapter

Sonoff Zigbee 3.0 USB Dongle Plus

Debug log

debug 2023-02-25 11:29:49: No converter available for 'PIR313-E' with cluster 'ssIasZone' and type 'readResponse' and data '{"iasCieAddr":"0x0000000000000000","zoneState":0}'
debug 2023-02-25 11:29:52: No converter available for 'PIR313-E' with cluster 'ssIasZone' and type 'readResponse' and data '{"iasCieAddr":"0x00124b0026d15b89","zoneState":1}'
info  2023-02-25 11:29:52: Device '0x3c6a2cfffxxxxxxxx' is supported, identified as: OWON Motion sensor (PIR313-E)
info  2023-02-25 11:29:52: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Motion sensor","exposes":[{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Raw measured illuminance","name":"illuminance","property":"illuminance","type":"numeric"},{"access":1,"description":"Measured illuminance in lux","name":"illuminance_lux","property":"illuminance_lux","type":"numeric","unit":"lx"},{"access":1,"description":"Measured temperature value","name":"temperature","property":"temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Measured relative humidity","name":"humidity","property":"humidity","type":"numeric","unit":"%"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"PIR313-E","options":[{"access":2,"description":"Number of digits after decimal point for temperature, takes into effect on next report of device.","name":"temperature_precision","property":"temperature_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the temperature value (absolute offset), takes into effect on next report of device.","name":"temperature_calibration","property":"temperature_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for humidity, takes into effect on next report of device.","name":"humidity_precision","property":"humidity_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the humidity value (absolute offset), takes into effect on next report of device.","name":"humidity_calibration","property":"humidity_calibration","type":"numeric"},{"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"}],"supports_ota":false,"vendor":"OWON"},"friendly_name":"0x3c6a2cfffxxxxxxxx","ieee_address":"0x3c6a2cfffxxxxxxxx,"status":"successful","supported":true},"type":"device_interview"}'
debug 2023-02-25 11:30:40: Received MQTT message on 'zigbee2mqtt/bridge/request/device/rename' with data '{"from":"0x3c6a2cfffxxxxxxxx","homeassistant_rename":false,"to":"PIR313-E_1","transaction":"1rh5s-10"}'
info  2023-02-25 11:30:41: MQTT publish: topic 'zigbee2mqtt/PIR313-E_1', payload '{"battery_low":false,"last_seen":"2023-02-25T10:29:57.583Z","linkquality":96,"occupancy":true,"tamper":true}'
info  2023-02-25 11:30:41: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/rename', payload '{"data":{"from":"0x3c6a2cfffxxxxxxxx","homeassistant_rename":false,"to":"PIR313-E_1"},"status":"ok","transaction":"1rh5s-10"}'
debug 2023-02-25 11:33:00: Received MQTT message on 'zigbee2mqtt/bridge/request/device/bind' with data '{"clusters":["msIlluminanceMeasurement"],"from":"PIR313-E_1/2","to":"Coordinator","transaction":"1rh5s-12"}'
de
dblas commented 1 year ago

Problem solved. In fact one cannot trust the messages sent by Z2M saying that registration is ok. YOU have to trust the device itself to know if it's registered or not: 3 red blinks => not registered 3 quick green blinks => being registered. 3 slow green blinks => registered.

BTW, this devices is not very good for measurements. Temperature is higher than the real one by 0.5 °C. Lux measurements are wrong (far too low). Only the presence detector is really working good. db