ZHA and devices not reliable issues

Yes I also have two hubs too Id rather use one but they never seem to work I started off with just smartlife but that kept losing connections with a BENEXMART Tuya Zigbee Hub PIR Sensor Door Sensor Temperature and Humidity Sensor so I went to get a SONOFF to try to improve the network.

But it still kept losing connections so I got a different hub to see if that would improve it and its clearly made things even worce not better that hub is a Tuya Multi Mode ZigBee Bluetooth Gateway Hub Wireless Smart Home Appliances Remote Controller Bridge Support Alexa Google Home Which I’m connecting the usb lead to a atolla Powered USB 3.0 Hub 20W , 7 Multi USB Data Ports Hub splitter

Plugs used are Smart Plug Alexa Plugs, Aoycocr Smart Socket WiFi Plug Works with Amazon Alexa

And bulbs used are Boxlood GU10 Smart WiFi Light Bulb 4 Pack, Dimmable Spotlight Bulb RGB Cool, which are really nice bulbs if they worked correctly!

I get funny things happing all of the time all over the house including bulbs not all coming on e.g 5 bulbs in the kitchen 1 or 2 of them go off. so I turn the switch on and off and they are all back on for a day or so.

I don’t mind trying a different method if its going to greeatly improve this but as it is now I feel its not worth my time and easier to just pressing a switch on! :smile:

Yes I think ZHA is the coordinator but most devices using the ZHA are Aqara sensors

I Download the flashing software to flash with from (Download – VanDyke Software Secure Clients and Servers - VShell SSH Server, SecureCRT SSH client, SecureFX secure file transfer client)

I never installed an init file as it seem to work without it so this part I skipped!
been using it 6 months now!


I’m sure you know most of this already as you’ve obviously been grappling with it for a while, but a few general points (assuming all the devices you’re talking about are Zigbee)…

  • You can run ZHA alongside a proprietary hub that also uses Zigbee, but a device can’t be on more than one network.

  • By spreading your devices over more than one network you may be weakening all of them. A Zigbee network needs as many mains-powered devices as possible to create a strong mesh.

  • If you do need to spread your devices over more than one network, make sure you have a good mix of mains-powered and battery powered devices on each one. The mains powered devices are the ones that form the network.

  • If you’re going to have more than one network, you need to make sure that they are on widely spaced channels. The Zigbee signal is very low powered and vulnerable to interference.

  • For the same reason, all your Zigbee networks need to be well clear of the channels your wi-fi is using. Your wi-fi (or your neighbour’s wi-fi) will swamp them all.

  • For ZHA, your dongle needs to be on the end of a long USB extension lead so that it can be kept well clear of other devices, and the lead needs to be plugged into a USB 2 socket (not USB 3).

Lots of good advice here:

Also, if you pull a routing device from one hub and move it to another, the devices that used to route through it need to find another path. Some devices, such as Aqara, do not do this, so they will need to be paired again. All with less routers to pick from.

Thank you fo rall this information!

No I did not know all of this until now but I have kept them away from one another with a USB extentions cable, will make sure its in a USB 2.0 but when PC is off line it come from main power source to keep the hubs running!

The plugs are also right next to the Hub, why it should not really be DC at all but they are.

What I’m noticing is that the plugs seem better in smartlife. I cannot just install them in HA as they will not detect so I have to do it in the APPS to get into HA not sure if this is th ecorrect aproach or not?

Not fully sure what you mean on the same network? At a guess they are all on my home network at moment but in the process now at trying to setup Proxmox but I want to see the devices more stable before I attemp to more frrom Yellow to a Ikoolcore R2

I’m also setup in Modem mode from router to a Asus RT AX82U router in a Mesh setup to another RT AX82U

Hope this help give you a better picture of my issues.
I’m also not sure if its the devices them self that are at fault here too or the USB cable extention, do you know of any tried and tested and good for me to experiment on? Thanks!

This is not your lan we’re talking about, and also not your wifi mesh. Each zigbee hub creates its own zigbee mesh network, and devices only talk to other devices in the same mesh, using router devices as gobetween. The more routers (most mains powered zigbee devices) are in a mesh, the more stable the communication. By dividing the routers over three hubs, you are weakening each mesh network because they all have less routers to work with. And besides that, if the different hubs are on the same frequency they may hinder the communication on the other mesh. So the best advice is one zigbee hub to rule them all.

You’ll have to detele the plugs from Smartlife before they can join ZHA. Try it with one and see how you get on.

There’s quite a lot of information in the Community Guides:

Yes I know Aqara need to be re paired I have done this many times! Also the devices are not far from the hubs to lose connections! So I see no drop in strenth being any issues in my setup at all!.

If it was downstairs Id would be then thinking like you are! But they are more or less with in the same room.

The drops out are like the day after happening.

I also have router to turn on and off at midnight

so not sure if this can be causing it?

But how can a network strenth effect my going into Tuya app me seeing its off line, but me come back oout of that device and its connected again except its not fullly back connected.

I have to forget devices and reset again this is daily!

Hubs are no where near Routers or any interference unless you class a Plant interference I don’t know but I woudl guess not :smile:

Yes I do forget device in Tuya App then add into smartlife! but then it get it happening n smatlife too!

Thanks for the links will have a look through though I see way too many devices to get any good standards here! Which someone like myself needs good standards for medical reasons! :smile: though many will not like this.

I was also thinking with the bulbs that is might be that I need a switch putting in like a did on my stairs to help it keep a better connection, as it needed a Capitor installing in the wireing so not sure to do this too to make sure and try to prevent the Bulbs from Disconnting.

This may be too drastic, but in your position I would consider removing all the hubs and putting all the Zigbee devices in a single network on the Sonoff dongle.

I would consider using the Zigbee2MQTT integration rather than ZHA. You seem to have a lot of Aqara devices and I believe some of these work better with Z2M.

Pair the mains-powered devices first, starting with those closest to the Sonoff and working outwards. Mains-powered devices have to be powered on all the time to avoid breaking the network.

Wait for a couple of days to make sure they are stable and working, and appearing properly in HA before you add the battery-powered devices.

Don’t buy any more stuff! :laughing:


But which hub to rule them all ? :slight_smile: I dont want any rings! :rofl: :rofl:

Turning your wifi router off should not be a problem, unless hubs depend on it to connect to HA. Do you also turn off hubs or cut off the power to mains powered zigbee devices? Because you should not. The zigbe mesh is supposed to run 24/7.

1 Like

Perhaps I missed something, but from the description these are WiFi devices, not Zigbee.

1 Like

i have never said they are zigbee or wifi Im sayign they keep disconnecting on the network withing such a short distance too! they are all conneced in Tuya and smartlife and withing Home Assistance. what they say on the box is a different matter! Nothing is on seperate networks. The hubs are setup seperate too

I’m tryign to get rid of the problems not cause more problems! :slight_smile:

No I do not turn off hubs at power supply was thinking too though, as that is the only way the devices will work again!

Hehee :money_mouth_face: :money_mouth_face: Ill try not too until I somehow get it Sorted out thank you! I will give Royal Mail a Holiday :rofl: :rofl:

Not fully sure how I will get over to a Zigbee2MQTT integration? with my setup.

I do have a spare Sonoff in my cupboard to re flash if needed? And a Conbee II not touched or tried yet!

I did only have one hub but even with one hub still kept losing connections!

You start a topic about ZHA and are talking about Sonoff-E and a Tuya zigbee hub. We’re not talking about zigbee reliability, then all above advice is meaningless. Wifi plugs are an entirely different matter. If wifi plugs are disconnecting too, chances are you have massive radio interference affecting both Zigbee and Wifi. In that case, if trying different channels does not help, you need to look for outside causes.
Every zigbee hub, thread border router and every wifi access points are fighting for the same frequency space, along with bluetooth, dect and god knows what else.

The Aqara ones don’t seem to be dropping out anyway its the plugs ones and the bulbs that are and I cannot find any Zigbee bulbs to get! I have found better plugs so Im slowly changign them over to the zigbee plugs they have not dropped connections yet!

If there any better hubs I could try not to buy :rofl: :rofl: :man_shrugging: :man_facepalming:

Is it possible to have ZHA setup as Im and add the Zigbee2MQTT add on?


wHEN YOU SAY TRY A DIFFERENT CHANNEL are you refering to on the router or a hub? If the router I have already tried this.

Has for starting this topic I had no clue where to add it too as its related to it all!

If all your bulbs and sockets are wifi, then chances are the Zigbee problems are a lack of routers and/or interference. It has nothing to do with bad wifi reception. Zigbee communication is too weak to affect wifi.

The wifi problems are a different thing altogether. The wifi plugs and sockets cannot help Zigbee, and they all rely on proper wifi. They do not form a mesh either, they all need an individual good access point. So if those bulbs and plugs do not work then you should first solve your wifi instability.

How many wifi devices on 2.4G are we talking a out, and now close are they to the main router? Do you have multiple wifi access point, if so are those range extenders or mesh wifi, how are they connected? How many neighbors do you have that take up all the available wifi bands?

If the wifi is overloaded with failing communication, that might affect zigbee, especially if Zigbee has no mains powered zigbee routers to create a good mesh. To reiterate: wifi bulbs and sockets are not zigbee routers. If all your zigbee is battery powered, then that is your zigbee problem.