Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interview fails for Sonoff SNZB-03 motion sensor #13600

Closed
blacknell opened this issue Aug 19, 2022 · 30 comments
Closed

Interview fails for Sonoff SNZB-03 motion sensor #13600

blacknell opened this issue Aug 19, 2022 · 30 comments
Labels
problem Something isn't working

Comments

@blacknell
Copy link

blacknell commented Aug 19, 2022

What happened?

Periodically, I lose connectivity with devices. This has mostly occurred when the battery runs low. However, reconnecting is very problematic.

I can no longer properly pair this SNZB-03. It has a new battery and I'm admitting it via a nearby switch which is a router on the network (with good LQI).

What did you expect to happen?

I expected it to pair, interview and start working.

How to reproduce it (minimal and precise)

I first removed the device from the network
Then I selected Permit Join from Dining Room Dimmer
Then I initiated pairing on the motion sensor.

Zigbee2MQTT version

1.27.0

Adapter firmware version

20220219

Adapter

Sonoff Zigbee 3.0 USB Dongle Plus × 1

Debug log

info  2022-08-19 08:21:30: Accepting joining not in blocklist device '0x00124b00251973a3'
info  2022-08-19 08:21:30: Accepting joining not in blocklist device '0x00124b00251973a3'
info  2022-08-19 08:21:30: Device '0x00124b00251973a3' joined
info  2022-08-19 08:21:30: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00251973a3","ieee_address":"0x00124b00251973a3"},"type":"device_joined"}'
info  2022-08-19 08:21:30: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b00251973a3"},"type":"device_connected"}'
info  2022-08-19 08:21:30: MQTT publish: topic 'zigbee2mqtt/0x00124b00251973a3/availability', payload 'online'
info  2022-08-19 08:21:30: MQTT publish: topic 'zigbee2mqtt/0x00124b00251973a3', payload '{"battery_low":false,"last_seen":"2022-08-19T08:21:30+01:00","linkquality":134,"occupancy":false,"tamper":false}'
info  2022-08-19 08:21:30: Starting interview of '0x00124b00251973a3'
info  2022-08-19 08:21:31: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00251973a3","ieee_address":"0x00124b00251973a3","status":"started"},"type":"device_interview"}'
info  2022-08-19 08:21:31: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b00251973a3"},"type":"pairing"}'
info  2022-08-19 08:21:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00251973a3', payload '{"battery_low":false,"last_seen":"2022-08-19T08:21:31+01:00","linkquality":134,"occupancy":false,"tamper":false}'
error 2022-08-19 08:23:49: Failed to interview '0x00124b00251973a3', device has not successfully been paired
info  2022-08-19 08:23:49: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00251973a3","ieee_address":"0x00124b00251973a3","status":"failed"},"type":"device_interview"}'
info  2022-08-19 08:23:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00251973a3"},"type":"pairing"}'
@blacknell blacknell added the problem Something isn't working label Aug 19, 2022
@blacknell
Copy link
Author

This problem happens a lot with my battery sensors. I often have to delete and re-pair after battery replacement and then frequently experience this behaviour of a failed interview.

Let me know if there's more info needed to help diagnose

@blacknell
Copy link
Author

@Koenkk - any chance we could investigate. I'm happy to try and tests to debug. I'm seeing this a lot on the Sonoff battery devices

@Koenkk
Copy link
Owner

Koenkk commented Sep 6, 2022

This problem happens a lot with my battery sensors. I often have to delete and re-pair after battery replacement and then frequently experience this behaviour of a failed interview.

Does this only happen with Sonoff devices?

any chance we could investigate. I'm happy to try and tests to debug.

Can you provide the herdsman debug log when repairing this device?

Also when this fails; does the following help?

  • Force remove device through z2m frontend
  • stop z2m
  • start z2m
  • try to pair device

@blacknell
Copy link
Author

Now, of course pairing is working. I tried a few times and it works and as I said the problem is intermittent.

I will leave herdsman debug logging on and update when i next have to change a battery. For now, the only log I have of failure is the one above without the DEBUG detail

Does this only happen with Sonoff devices?

Yes, but I only have Sonoff battery devices. But I had it happen with multiple motion and temperature ones.

@blacknell
Copy link
Author

OK. I found a failed interview after installing (trying to) this brand new contact sensor.

I first did the usual allow join and it did see it very quickly. The interview did seem to take a long time and then showed the | triangle warning 'Interview failed'

I then clicked Reconfigure and the device appears to be partially working but still showing interview failed.

info  2022-09-27 11:33:38: Accepting joining not in blocklist device '0x00124b00254d1387'
info  2022-09-27 11:33:38: Device '0x00124b00254d1387' joined
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00254d1387","ieee_address":"0x00124b00254d1387"},"type":"device_joined"}'
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b00254d1387"},"type":"device_connected"}'
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387/availability', payload 'online'
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:38+01:00"}'
info  2022-09-27 11:33:38: Starting interview of '0x00124b00254d1387'
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00254d1387","ieee_address":"0x00124b00254d1387","status":"started"},"type":"device_interview"}'
info  2022-09-27 11:33:38: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b00254d1387"},"type":"pairing"}'
info  2022-09-27 11:33:41: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:41+01:00"}'
debug 2022-09-27 11:33:41: Device '0x00124b00254d1387' announced itself
info  2022-09-27 11:33:41: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00254d1387","ieee_address":"0x00124b00254d1387"},"type":"device_announce"}'
info  2022-09-27 11:33:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b00254d1387"},"type":"device_announced"}'
debug 2022-09-27 11:33:45: Received Zigbee message from '0x00124b00254d1387', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"eWeLink","modelId":"DS01"}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:45: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:45+01:00","linkquality":21}'
debug 2022-09-27 11:33:49: Received Zigbee message from '0x00124b00254d1387', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:49: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:49+01:00","linkquality":18}'
debug 2022-09-27 11:33:50: Received Zigbee message from '0x00124b00254d1387', type 'readResponse', cluster 'genBasic', data '{"zclVersion":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:50: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:50+01:00","linkquality":29}'
info  2022-09-27 11:33:55: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:55+01:00","linkquality":29}'
debug 2022-09-27 11:33:55: Device '0x00124b00254d1387' announced itself
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00254d1387","ieee_address":"0x00124b00254d1387"},"type":"device_announce"}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b00254d1387"},"type":"device_announced"}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
debug 2022-09-27 11:33:56: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
info  2022-09-27 11:33:56: Accepting joining not in blocklist device '0x00124b00254d1387'
info  2022-09-27 11:33:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"last_seen":"2022-09-27T11:33:56+01:00","linkquality":145}'
error 2022-09-27 11:36:24: Failed to interview '0x00124b00254d1387', device has not successfully been paired
info  2022-09-27 11:36:24: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00254d1387","ieee_address":"0x00124b00254d1387","status":"failed"},"type":"device_interview"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00254d1387"},"type":"pairing"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/binary_sensor/0x00124b00254d1387/contact/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"door","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 contact","payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/binary_sensor/0x00124b00254d1387/battery_low/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"battery","entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 battery low","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/sensor/0x00124b00254d1387/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 battery","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/sensor/0x00124b00254d1387/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"voltage","enabled_by_default":false,"entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_voltage_zigbee2mqtt","unit_of_measurement":"mV","value_template":"{{ value_json.voltage }}"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/sensor/0x00124b00254d1387/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
info  2022-09-27 11:36:24: MQTT publish: topic 'homeassistant/sensor/0x00124b00254d1387/last_seen/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"timestamp","enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:clock","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 last seen","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_last_seen_zigbee2mqtt","value_template":"{{ value_json.last_seen }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/binary_sensor/0x00124b00254d1387/contact/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"door","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 contact","payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/binary_sensor/0x00124b00254d1387/battery_low/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"battery","entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 battery low","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/sensor/0x00124b00254d1387/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 battery","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/sensor/0x00124b00254d1387/voltage/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"voltage","enabled_by_default":false,"entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_voltage_zigbee2mqtt","unit_of_measurement":"mV","value_template":"{{ value_json.voltage }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/sensor/0x00124b00254d1387/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
debug 2022-09-27 11:36:24: Received MQTT message on 'homeassistant/sensor/0x00124b00254d1387/last_seen/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00254d1387/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00254d1387"],"manufacturer":"SONOFF","model":"Contact sensor (SNZB-04)","name":"0x00124b00254d1387"},"device_class":"timestamp","enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:clock","json_attributes_topic":"zigbee2mqtt/0x00124b00254d1387","name":"0x00124b00254d1387 last seen","state_topic":"zigbee2mqtt/0x00124b00254d1387","unique_id":"0x00124b00254d1387_last_seen_zigbee2mqtt","value_template":"{{ value_json.last_seen }}"}'
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:36:31: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
info  2022-09-27 11:36:31: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:36:31+01:00","linkquality":134,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:15: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:15: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:15+01:00","linkquality":142,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:15: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:16: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:16: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":false,"last_seen":"2022-09-27T11:37:16+01:00","linkquality":142,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
debug 2022-09-27 11:37:17: Received Zigbee message from '0x00124b00254d1387', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":0}' from endpoint 1 with groupID 0
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
info  2022-09-27 11:37:17: MQTT publish: topic 'zigbee2mqtt/0x00124b00254d1387', payload '{"battery":null,"battery_low":false,"contact":true,"last_seen":"2022-09-27T11:37:17+01:00","linkquality":160,"tamper":false,"voltage":null}'
debug 2022-09-27 11:37:35: Received MQTT message on 'zigbee2mqtt/bridge/request/device/configure' with data '{"id":"0x00124b00254d1387","transaction":"opbcv-1"}'
info  2022-09-27 11:37:35: Configuring '0x00124b00254d1387'
error 2022-09-27 11:37:45: Failed to configure '0x00124b00254d1387', attempt 1 (Error: Bind 0x00124b00254d1387/1 genPowerCfg from '0x00124b0024c04f51/1' failed (AREQ - ZDO - bindRsp after 10000ms)
info  2022-09-27 11:37:45: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure', payload '{"data":{"id":"0x00124b00254d1387"},"error":"Failed to configure (Bind 0x00124b00254d1387/1 genPowerCfg from '0x00124b0024c04f51/1' failed (AREQ - ZDO - bindRsp after 10000ms))","status":"error","transaction":"opbcv-1"}'

@Koenkk
Copy link
Owner

Koenkk commented Sep 28, 2022

The interview did seem to take a long time and then showed the | triangle warning 'Interview failed'

Can you try to repair the device closer to the coordinator? Could be a temporary hickup.

@blacknell
Copy link
Author

I did and it did pair. Actually I was limiting it to pairing with a specific router not the coordinator

@blacknell
Copy link
Author

After much trial and error and I have found a new reliable way of re-pairing Sonoff SNZB-0x devices including making them live and accepting of reporting update changes

  • Get yourself to the Zigbee dashboard Devices page
  • Make sure you are not Permitting Join
  • Press and hold the reset button (or paperclip switch) for 5s until red light blinks
    • You will see the device disappear and leave the network
  • Click Permit Join
    • You will see the previously unblocked device re-join and various status popups flash to the top right of the screen
  • After waiting for the device to be set up (but not long after) drill into the device and click on Reporting
    • Here you can change the reporting interval (I have settled on 3600s minimum and 7200s maximum).

I found with the default of 62000s max internal and 25 hours default availability window if one broadcast is missed by the router then the device is flagged offline. With 7200s it would mean 13 broadcasts would have to have been missed.

@blacknell
Copy link
Author

After much trial and error and I have found a new reliable way of re-pairing Sonoff SNZB-0x devices including making them live and accepting of reporting update changes

This doesn't seem to work very well for SNZB-03 Motion Detectors but does work reliably for SNZB-02 and SNZB-04

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale Stale issues label Nov 22, 2022
@ncrmnt
Copy link

ncrmnt commented Nov 25, 2022

After much trial and error and I have found a new reliable way of re-pairing Sonoff SNZB-0x devices including making them live and accepting of reporting update changes

This doesn't seem to work very well for SNZB-03 Motion Detectors but does work reliably for SNZB-02 and SNZB-04

I've the same issue. But, unfortunately, I can't change the settings which you wrote about, get errors:
Request 'zigbee2mqtt/bridge/request/device/configure_reporting' failed with error: 'Bind 0x00124b0025177e3d/1 genPowerCfg from '0x0c4314fffe8659f2/1' failed (Route error)'
Bind 0x00124b0025177e3d/1 genPowerCfg from '0x0c4314fffe8659f2/1' failed (Route error)

Maybe I do something wrong? Do you mean this settings?
image

@blacknell
Copy link
Author

I've the same issue. But, unfortunately, I can't change the settings which you wrote about, get errors:

Maybe I do something wrong? Do you mean this settings?

Yes.

But it only worked for me immediately (within a few seconds) of having pressed the device button for 5s, enabling join and then changing as soon as join pop ups started appearing. It is messy.

@github-actions github-actions bot removed the stale Stale issues label Nov 26, 2022
@ncrmnt
Copy link

ncrmnt commented Nov 28, 2022

I've the same issue. But, unfortunately, I can't change the settings which you wrote about, get errors:
Maybe I do something wrong? Do you mean this settings?

Yes.

But it only worked for me immediately (within a few seconds) of having pressed the device button for 5s, enabling join and then changing as soon as join pop ups started appearing. It is messy.

Many thanks! Now it works properly

@iAutom8
Copy link

iAutom8 commented Dec 14, 2022

This solution is working for me. It's been over a week and my button still works (despite now having a failed interview status). I also have a few motion detectors (SNZB-03) also staying on the network. Thanks!

@brindille91
Copy link

@blacknell, thanks for posting this solution.
I have 6x SNZB-04 and was not able to find a stable solution, i was about to send them back all.
With you help and setting max interval to 7200s it has now at least past 48 hours without failing.
You made my start of year 2023 much better :-)

@blacknell
Copy link
Author

blacknell commented Jan 2, 2023 via email

@Koenkk
Copy link
Owner

Koenkk commented Jan 2, 2023

@blacknell whoops, this comment was meant for a different issue. Can someone provide the herdsman debug log when trying to pair this device?

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

@blacknell
Copy link
Author

I did add the hersdman debug log see above 27/9

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 3, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jan 3, 2023

@blacknell I've included your fix now. The 3600/7200 rep interval will now immediately be applied upon pairing. Thanks!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@blacknell
Copy link
Author

I think/suggest this is the same for all the Sonoff SNZB-0x family.

I'm happy raise a PR for this if it helps?

@Koenkk
Copy link
Owner

Koenkk commented Jan 4, 2023

Thanks for the pr, I assume this can be closed now.

Koenkk pushed a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 6, 2023
@Casper-O
Copy link

Mine just dropped again after a few days without issues

Friendly name is "vindue soveværelse"

Zigbee2MQTT:info  2023-01-11 03:42:25: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":96,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 03:42:25: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 05:02:57: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 05:02:57: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":88,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 06:23:28: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":104,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 06:23:28: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":100,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 07:40:21: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":216,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 07:40:23: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":216,"linkquality":196,"power_on_behavior":"on","state":"OFF","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 07:40:26: MQTT publish: topic 'zigbee2mqtt/Loft Lampe Soveværelse', payload '{"brightness":31,"linkquality":136,"power_on_behavior":null,"state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 07:44:43: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 07:44:43: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 09:05:52: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 09:05:52: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 09:32:52: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":false,"linkquality":92,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 10:20:27: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":96,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 10:20:36: MQTT publish: topic 'zigbee2mqtt/Loft Lampe Soveværelse', payload '{"brightness":31,"linkquality":140,"power_on_behavior":null,"state":"OFF","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 10:26:32: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":96,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 10:26:32: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":96,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 11:46:36: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":100,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 11:46:36: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":100,"tamper":false,"voltage":3100}'
Zigbee2MQTT:info  2023-01-11 13:07:08: MQTT publish: topic 'zigbee2mqtt/vindue soveværelse', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":92,"tamper":false,"voltage":3000}'
Zigbee2MQTT:info  2023-01-11 15:48:34: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":216,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:37: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":254,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:42: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":175,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:42: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":149,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:42: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":144,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:43: MQTT publish: topic 'zigbee2mqtt/Loftlampe spisebord', payload '{"brightness":254,"linkquality":196,"power_on_behavior":"on","state":"ON","update":{"installed_version":16782340,"latest_version":16784906,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:45: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":31,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:45: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":31,"linkquality":172,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:47: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":31,"linkquality":236,"power_on_behavior":"on","state":"OFF","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:47: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":31,"linkquality":168,"power_on_behavior":null,"state":"OFF","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:47: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":31,"linkquality":232,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:47: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":31,"linkquality":172,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:49: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":122,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:49: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":122,"linkquality":232,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:50: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":137,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:50: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":137,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:52: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":99,"linkquality":232,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:52: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":99,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:52: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":92,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:52: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":92,"linkquality":172,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:53: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":89,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:53: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":89,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":79,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":79,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":76,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":76,"linkquality":168,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":71,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:54: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":71,"linkquality":172,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:55: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":76,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 15:48:55: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":76,"linkquality":172,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 16:57:38: MQTT publish: topic 'zigbee2mqtt/TV bord 2', payload '{"brightness":76,"linkquality":236,"power_on_behavior":"on","state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-01-11 16:58:40: MQTT publish: topic 'zigbee2mqtt/TV bord 1', payload '{"brightness":76,"linkquality":208,"power_on_behavior":null,"state":"ON","update":{"installed_version":16784906,"latest_version":16784906,"state":"idle"},"update_available":null}'
Zigbee2MQTT:warn  2023-01-11 17:22:39: Device 'vindue soveværelse' left the network
Zigbee2MQTT:info  2023-01-11 17:22:39: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"vindue soveværelse","ieee_address":"0x00124b0029116d6f"},"type":"device_leave"}'

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 16, 2023
@majkers
Copy link

majkers commented Jan 27, 2023

The same for my sonoff-snzb-04.

@efolio
Copy link

efolio commented Feb 15, 2023

I hope this will get fixed and pushed soon… I have 21 sonoff devices (snzb-02 and 04), and they keep disappearing from the network again and again… The only way to get them back online is to pair again, which works for a few hours before dropping out again…
Some of the devices are 2 meters away from the dongle…

@nazgul6
Copy link

nazgul6 commented Jun 4, 2023

I have the same issue with my SNZB-04 too (running latest Z2M from last week). Has anyone come up with any other potential solutions perhaps? Should this issue be-reopened?

(the max 7200s / min 3600s solution, which is the default in Z2M sadly doesn't work for SNZB-04)

@mk01
Copy link

mk01 commented Jun 12, 2023

don't know for the others, but for me the devices (despite the fact that interview is not-finished and tab reports is not showing anything set) ARE working, that means SNZB-04 is providing 'contact' updates and SNZB-03 is providing 'occupancy'. Apart from those, both types are also properly providing 'battery_low'.

out from 10 of those, one SNZB-04 managed to finish interview, no clue what was different.
btw - none of the devices is leaving the network.

maybe it is worth saying that for 1 year I was running version 1.26, there was no issue with those. this behavior started after I upgraded to 1.29 and 1.30 for EZSP adapter support (tubeszb-efr32 POE adapter).
as I see that @blacknell is having sonoff zigbee usb adapter (as well EZSP stack?), maybe the issue is not about z2m directly, but about the EZSP stack. no clue.

but again, I don't care to see the battery % , so (for me) definitely critical.

@xking3
Copy link

xking3 commented Aug 24, 2023

I have the same problem here. Two SNZB-3 and they disconnect after one to two weeks.
Are there any solutions to this problem. Or should I buy other sensors? Any suggestion is welcome.

@nazgul6
Copy link

nazgul6 commented Aug 24, 2023

I got a cheap Zigbee lightbulb, which acts as a router at the same, and is plugged very close to my SNZB-04 to ‘expand/extend’ the network. No more drops. I guess the zigbee sensors in SNZB-04 must be quite weak and need some sort of a repeater/router nearby to ensure they stay in the network.

@xking3
Copy link

xking3 commented Aug 25, 2023

I have a lot of Zigbee devices in the same room, but it still disconnects. If the SNZB-03 & SNZB-04 is as week as you describe it, I will replace them immediately.

@deece
Copy link

deece commented Sep 26, 2023

I have all manner of devices (not just Sonoff) dropping randomly, with both Ti coordinators and EFR ones.

I asked ChatGPT to write an extension to automatically apply the max report interval for all devices as they are interviewed, you can add it in the 'extensions' tab.

class BatteryPercentageReportingExtension {
    constructor(zigbee, mqtt, state, publishEntityState, eventBus, settings, logger) {
        this.zigbee = zigbee;
        this.logger = logger;
        this.eventBus = eventBus;
        this.eventBus.on('deviceInterview', this.onDeviceInterview.bind(this), this.constructor.name);
    }

    async onDeviceInterview(data) {
        const { device, status } = data;
        if (status === 'successful') {
            const endpoint = device.getEndpoint(1);
            if (endpoint && endpoint.supportsInputCluster('genPowerCfg')) {
                try {
                    const cluster = 'genPowerCfg';
                    const attribute = 'batteryPercentageRemaining';
                    const minReportInterval = 0;
                    const maxReportInterval = 3600;
                    const reportableChange = 0;

                    await endpoint.bind(cluster);
                    await endpoint.configureReporting(cluster, [{
                        attribute: { ID: 0x0021, type: 32 }, // batteryPercentageRemaining
                        minimumReportInterval: minReportInterval,
                        maximumReportInterval: maxReportInterval,
                        reportableChange: reportableChange
                    }]);
                    this.logger.info(`Configured reporting for ${device.ieeeAddr} ${cluster} ${attribute}`);
                } catch (e) {
                    this.logger.error(`Failed to configure reporting for ${device.ieeeAddr} genPowerCfg batteryPercentageRemaining`, e);
                }
            }
        }
    }

    async stop() {
        this.eventBus.removeListeners(this.constructor.name);
    }
}

module.exports = BatteryPercentageReportingExtension;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests