Every 32-35 seconds, all of my devices become unavailable, unknown, then available again after about 8 seconds. The only thing I have changed recently is adding ESPHome and adding about 6 devices that were doing BT Room Presence. However, I turned off the integration and unplugged the devices and it continues to happen. There is nothing irregular in the Zigbee2MQTT logs other than described below nor in Home Assistant’s. I am not sure what to try and it’s weird how cyclical the problem is.
I have 8 radar presence sensors, about 8 Sengled bulbs, and some Aqara contact sensors connected in my Zigbee network.
There is one warning that appears In the Zigbee2MQTT logs but not every 32-35 seconds in line with the problem.
warning 2024-09-16 19:47:57zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
However, if I got to that Github, it mentions the firmware for the SLZB07 but I have a SLZB-06M. I am very ignorant on the Ember transition and if, when, & how I am supposed to do it. Right now, it is EZSP.
Any ideas on what may be happening every 32-35 seconds to cause problem? Could it be related to Ember vs EZSP?
If you just added a bunch of esp32 devices with BT turned on for BT proxy, btle tracking and presence detection, there’s a good chance the Wi-Fi + BT is interfering with ZigBee comms.
I just went through this myself. I added a bunch of esp32 devices for Bermuda trilateration. Any esp32 with BT that was near a ZigBee device, drowned the ZigBee device out. After turning BT off, the ZigBee device had no issues staying connected. You can test by taking the esp32 devices offline / turn off BT (you may be able to move the esp32 devices as well).
ZigBee, Wi-Fi and BT all use the 2.4 GHz band, so it gets pretty noisy.
I have already deleted all of the ESPHome devices from Home Assistant and unplugged them. No change. Just disabled BT with no change as well. Everything is still going unavailable, unknown…
There are a couple of plugs that I didn’t mention but the only thing on my Zigbee network not hardwired are a couple of contact sensors and the Aqara Cube. The radar sensors are plugged into the wall. I am only using HA for things that Hubitat can’t handle. Practically all of my zigbee devices are on HE. The radar sensors are extremely chatty so I moved them to a Zigbee network on the HA. That has been running great for almost a year; it’s only recently that I have had this issue.
I can’t think of anything that would be causing the failure at such a regular, cyclical nature every 32-25 seconds. Very strange!
After some more digging, it seems that the Home Assistant connection to my MQTT broker is connecting and disconnecting every 32-25 seconds. I had noticed that some non-Zigbee devices were going offline as well.
I use Mosquitto on a different Raspberry Pi from one running Home Assistant. So, now the question has changed to what could be causing the MQTT disconnect every 32-35 seconds???
I cheated. Instead of figuring out what was wrong, I went ahead and switched my MQTT Broker to HA Add-On. It makes more sense to keep the MQTT messages on the Raspberry Pi hosting HA. I only had a couple of other things using MQTT that weren’t HA so easy transition. I wouldn’t call this a solution but it avoided the problem.