Diagnose zigbee network issue

Hi folks!
I have a Sonoff with a flashed Tasmota firmware 9.2.0.2 and Home Assistant version 2020.12.1.
I’ve configured some automations for automatically turning on lights thanks to some motion sensor, but sometimes they don’t turn off after some seconds.
In the beginning I thought that my automations were wrong but I’ve seen that suggested blueprints do the same thing. Although sometimes using the app I can turn off the lights, some others it doesn’t work. I’ve to wait a minute or reload the integration.

How I can diagnose if I have a zigbee network issue? In the log I found the warning:

Logger: bellows.zigbee.application
Source: /usr/local/lib/python3.8/site-packages/bellows/zigbee/application.py:644
First occurred: December 29, 2020, 3:48:33 PM (258 occurrences)
Last logged: 3:30:17 PM

Watchdog heartbeat timeout:

The Sonoff is always reachable through HTTP and devices are pretty close (2/3 meters).

Thank you

I have been experimenting with one of the Sonoff Tasmota Zigbee devices for about 3 days now, none of the issues you are seeing in the HA log. My config below:

HA version 2020.12.1
Sonoff info:
Program Version	9.2.0.1(zbbridge)
Build Date & Time	2020-12-23T17:57:10
Core/SDK Version	2_7_4_9/2.2.2-dev(38a443e)
Uptime	2T00:20:33
AP1 SSId (RSSI)	aaa (100%, -45 dBm)

You might have a look at this tool, I think it is a pretty good start, but I am not sure if the error you are seeing is a Zigbee related one or something around HA ZHA communicating via TCP to the Sonoff…

This tool is one of the best I have found so far for monitoring the near real time state of ZHA zigbee network. The gold standard is a Zigbee Sniffer with TI software or Wireshark.

Hi,
thank you for reply. I’ve installed the network card and signal strength for two devices looks good, better than the philips. Despite they are far they always work.

I’ve also enabled log for zigbee and found some errors, for example

2021-01-03 19:53:17 INFO (MainThread) [bellows.zigbee.application] ZDO Device announce: 0x83f5, 00:17:88:01:08:63:a4:10
2021-01-03 19:53:17 INFO (MainThread) [zigpy.application] Device 0x83f5 (00:17:88:01:08:63:a4:10) joined the network
2021-01-03 19:53:17 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device 00:17:88:01:08:63:a4:10
2021-01-03 19:53:17 DEBUG (MainThread) [zigpy.zdo] [0x83f5:zdo] ZDO request ZDOCmd.Device_annce: [0x83F5, 00:17:88:01:08:63:a4:10, 128]
2021-01-03 19:53:17 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x55CA:1:0x0006]: command failed: 'on' args: '()' kwargs '{}' exception: ''
2021-01-03 19:53:17 DEBUG (MainThread) [homeassistant.components.zha.entity] light.luce_cucina: turned on: {'on_off': TimeoutError()}
2021-01-03 19:53:17 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xE305, EmberApsFrame(profileId=260, clusterId=1024, sourceEndpoint=2, destinationEndpoint=2, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=244), 61, b'\x18\xf4\x0b\n\x00')
2021-01-03 19:53:18 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: ()
2021-01-03 19:53:22 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for 60:a4:23:ff:fe:9c:07:92/0x55ca
2021-01-03 19:53:22 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (60:a4:23:ff:fe:9c:07:92, True)
2021-01-03 19:53:23 DEBUG (MainThread) [homeassistant.core] Service did not complete before timeout: <ServiceCall light.turn_on (c:05fdff8a17b7ae355297cd2e7e436728): entity_id=['light.luce_cucina'], params=>
2021-01-03 19:53:23 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout: 
2021-01-03 19:53:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x55CA:1:0x0006]: command failed: 'on' args: '()' kwargs '{}' exception: ''
2021-01-03 19:53:27 DEBUG (MainThread) [homeassistant.components.zha.entity] light.luce_cucina: turned on: {'on_off': TimeoutError()}
2021-01-03 19:53:27 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x83F5, EmberApsFrame(profileId=260, clusterId=1030, sourceEndpoint=2, destinationEndpoint=2, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=170), 64, b'\x18\xaa\x0b\n\x00')

Any idea for the timeout?

Did u got any solutions for this.
I’m also facing the same issue … check your channels, u will get a solution over there.
Zigbee -> Tasmota default channel is 11 … so check your wifi channel, change it to some other.
Reference :
https://www.metageek.com/training/resources/zigbee-wifi-coexistence.html#:~:text=ZigBee%20and%20WiFi%20channels%20both,the%20exact%20same%20frequency%20space.&text=Operating%20a%20ZigBee%20network%20and,network%20will%20take%20the%20hit.

if u got any other solution means share me

I’ve already tried to change wifi channel, but even it was too instable. I moved to ConBee and now it works perfectly.

1 Like