Loosing zigbee devices randomly

Hi all,

I am running a Sonoff ZBbridge with Tasmota 9.3.1.1 since few months, running perfectly with 11 devices (routers and coordinators).
Since few days, random devices becomes unavailable (device offline) and never come back until I do a re-pairing on each of these devices.

I don’t know if the error is coming from the bridge, from zha or from HA…
Hesitating between updating Tasmota (but why it was working since now?), replacing zbbridge with a usb adapter or burning the whole :joy:

I am running HA version core-2021.11.5
I have an error in the logs regarding zha:

Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:428
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 4:19:17 PM (4 occurrences)
Last logged: 4:19:19 PM

[0x0DFF:11:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x0dff:11:0x0006]: Message send failure'), DeliveryError('[0x0dff:11:0x0006]: Message send failure'), DeliveryError('[0x0dff:11:0x0006]: Message send failure'), DeliveryError('[0x0dff:11:0x0006]: Message send failure')]
[0x9EE5:1:0x0b04]: async_initialize: all attempts have failed: [DeliveryError('[0x9ee5:1:0x0b04]: Message send failure'), DeliveryError('[0x9ee5:1:0x0b04]: Message send failure'), DeliveryError('[0x9ee5:1:0x0b04]: Message send failure'), DeliveryError('[0x9ee5:1:0x0b04]: Message send failure')]
[0x9EE5:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x9ee5:1:0x0006]: Message send failure'), DeliveryError('[0x9ee5:1:0x0006]: Message send failure'), DeliveryError('[0x9ee5:1:0x0006]: Message send failure'), DeliveryError('[0x9ee5:1:0x0006]: Message send failure')]
[0x9EE5:1:0x0702]: async_initialize: all attempts have failed: [DeliveryError('[0x9ee5:1:0x0702]: Message send failure'), DeliveryError('[0x9ee5:1:0x0702]: Message send failure'), DeliveryError('[0x9ee5:1:0x0702]: Message send failure'), DeliveryError('[0x9ee5:1:0x0702]: Message send failure')]

I also activated debug logs on zha and I am getting that… Don’t know if it’s relevant though…

2021-12-11 17:07:10 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: ()
2021-12-11 17:07:10 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 241 (readCounters) received: b'7501410066003d000400000000000000400025000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
2021-12-11 17:07:10 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (<EzspValueId.VALUE_FREE_BUFFERS: 3>,)
2021-12-11 17:07:10 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 170 (getValue) received: b'0001f4'
2021-12-11 17:07:10 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 244
2021-12-11 17:07:10 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 1246, MAC_TX_BROADCAST = 261, MAC_RX_UNICAST = 313, MAC_TX_UNICAST_SUCCESS = 232, MAC_TX_UNICAST_RETRY = 50, MAC_TX_UNICAST_FAILED = 3, APS_DATA_RX_BROADCAST = 1, APS_DATA_TX_BROADCAST = 1, APS_DATA_RX_UNICAST = 194, APS_DATA_TX_UNICAST_SUCCESS = 117, APS_DATA_TX_UNICAST_RETRY = 52, APS_DATA_TX_UNICAST_FAILED = 26, ROUTE_DISCOVERY_INITIATED = 18, NEIGHBOR_ADDED = 6, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 4, JOIN_INDICATION = 0, CHILD_REMOVED = 0, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 0, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 244]

Do you know what I can do in order to debug that?

Thanks a lot!!

I had the same problem shortly after I first set up my Sonoff ZB bridge. The two things that have helped me are:

  1. Add zigbee router devices like lightbulbs, switches, smartplugs, or standalone repeaters.
  2. This may not be true for all sensors, but the Sonoff sensors I got all came with crappy batteries. Replace the batteries with good quality ones.
1 Like