Yeah you deffinitivly need to add a few more Zigbee Router devices and place those in strategic places for best coverage. Suggest you start by adding additional Zigbee Router devices closer those that connect directly to the Zigbee Coordinator and wait until they move.
Best practice is that each device should preferably also be placed so that it is within range of a at least two Zigbee Router devices for redundancy so each device can have multiple paths if any one device break.
You should open and issue in Zigbee2MQTT repository on GitHub with logs for that but you should first try power-cycle the Zigbee Router closest to it and then also reset the device itself.
Here is by the way a new video from Linus Tech Tips demonstrating what happens to WiFi connections and data transfers (which are always relativly high-power) when your neighbors WiFi-routers use the same Wi-Fi channel as you (or you yourself have multiple access-points. From that you can use your imagination and draw your own conclusions what will happen to your Zigbee devices and Zigbee Coordinator (which are all always low-power) when they are trying to use the same or a close frequency range as yours or your neibours Wi-Fi channels:
”Wi-Fi’s three non-overlapping channels (1, 6, and 11) use the exact same frequencies as ZigBee channels 11-22.
ZigBee channels 25-26 aren’t immune either, because they can be caught in Wi-Fi channel 11’s sideband lobe (see ”Sideband Lobes” below). ZigBee channel 26 is usually relatively unaffected by Wi-Fi, but many ZigBee devices do not support it.”
Sideband Interference
An 802.11g/n signature in the spectrum has two components: The 20 MHz “square” section that contains the data subcarriers Sideband lobes on each side, which are a normal side effects. Sideband lobes might not carry Wi-Fi data, but they are fully capable of drowning out ZigBee transmissions.
Sideband lobes are usually only visible when you are very close to to the device that is actively transmitting (try doing a speed test or streaming an HD video). This is especially evident when your ZigBee access point and Wi-Fi access point are in very close proximity with each other (like in the same comm closet).
Considering each router supports 6 end devices, if one router breaks, what happens with the end devices that used to connect to it, considering the other close by routers are full?
I mean for sure I can fix this problem by having so many routers to cover for 1 or 2 router losses.
But I am still curious what would happen if you don’t have extra.
[quote]
You should open and issue in Zigbee2MQTT repository on GitHub with logs for that but you should first try power-cycle the Zigbee Router closest to it and then also reset the device itself. [/quote]
No idea how to quote again ;))
But the device works. It is just not connected in the map.
Again, one recommended partial workaround for all those kind of problem scenarios is to simply buy and pair/join a few “known good” or “known great” dedicated Zigbee Router devices to your Zigbee network (meaning purposely made Zigbee repeater/extender products designed for only that use-case and no other purpose. Because if you place a few such dedicated Zigbee Router products in strategic locations/areas as dedicated Zigbee repeaters/extenders then they will kind of act like a network-backbone in your Zigbee network mesh and hopefully make up for the lack of not having loads of Zigbee Router devices everywhere.
Two “known good” dedicated Zigbee Router products are the “IKEA Tradfri Signal Repeater ” and “Aeotec Range Extender Zi ”, as both those are well tested and proven work very good out-of-the-box, (so only need to be paired to your Zigbee network).
Two "known great"dedicated Zigbee Router products are the semi-DIY solution of buying and using Sonoff ZBDongle-E (EFR32MG21-based) or the Sonoff ZBDongle-P (CC2652P-based) after flashing them with correct Zigbee Router firmware and then powering them via USB-chargers (just for power). That flashing process is simpler than you might think and both of those are proven to work as awesome stand-alone Zigbee signal repeaters/extenders.
I can personally recommend buying those above specific devices for that purpose and placed spread out in your home (suggest adding at least three even in a small home):
Please read my while original guide post and try to understand that because Zigbee has such poor radio propagation in an indoor environment (which translate to very short signal range when passing signals point-to-point through building materials in walls/floors/ceiling or furniture as obstacles), as such it will usually not be enough to only have Zigbee Router devices “to cover for 1 or 2 router losses” like you say as your Zigbee Router devices on one side of your home will not be able to cover for losses on the other side of your home.So I believe that if you think more about it then you can figure that out yourself as should be obvious that redundancy and possible fail-over scenarios needs to be considered for each individual Zigbee device.
Anyway, basic calculations are also explained in both in Zigbee2MQTT’s FAQ (and somewhat better in the ZHA documentation), but those calculations do not consider the Zigbee radio propagation:
However no home is the same, so suggest you just try unplugging a few of your Zigbee Router devices (as in power-off multiple Zigbee Routes in the same area) to at least simulate a power outage of a blowned fuse (as that should kill all devices on the same electrical phase/circuit), then wait to test what happens, (personally I would try to test all possible scenarios to at least test killing all fuses/phases). I think it is much more likely scenario that a fuse blows then more than one Zigbee Router dies on its own.
Actually see that it is explained in Zigbee2MQTT’s FAQ here:
"Why are some links missing from my networkmap? : No worry, in case it happens with end devices (battery powered) it most of the times does not mean the devices aren’t connected to the network map anymore. Some end devices (e.g. Xiaomi door sensor) sleep for a too long time which causes the parent (router child ageing) to remove it from it from its child table. This is what causes the missing link. Even while its not in the child table anymore, the end device can still communicate via the router. This does not always happen since not all routers use child ageing (this is a Zigbee 3.0 feature)."
You can do what you like, but please understand and try to respect that this is not the right place to ask Zigbee2MQTT-specific questions, so you should still refer to Zigbee2MQTT’s own community for Zigbee2MQTT-specific questions and answers, see:
PS: Keep in mind that this “Zigbee” subsection in Home Assistant’s community forum is primarly meant to be about Home Assistant’s native ZHA integration (which is Home Assistant’s built-in Zigbee gateway) and Zigbee devices that can be used with it, and not about third-party Zigbee gateways, regardless if those third-party Zigbee gateways are software applikcations like Zigbee2MQTT, deCONZ/Phoscon, and Z-Way, or third-party hardware appliance Zigbee gateways like Philips Hue Bridge, Samsung SmartThings, IKEA Trandfri Gateway, etc.
Hello, new to using HA, just getting started with HA on RP5 with Sonoff Zigbee 3.0 USB dongle. I also plan to have a Broadlink RM4 pro hub for all my RF devices like curtains, fans etc. While I understand from reading this forum that Zigbee dongle is very sensitive to intereference from Wifi and it is preferred to connect it to RP5 via shielded USB cable, what about the RF hubs like Broadlink that has 315 and 433 MHZ signals. Does this hub need to be far away from the dongle too ? Thanks !!
Best practice is to always get the Zigbee Coordinator radio adapter away from all electronic appliances (including their power-supplies and cables/wires to them or anything else with eletricity) which by definition of course also include all smart home hubs/bridges/gateways boxes regardless of which IoT protocol they are actually using.
Getting it farther away will help, however if you have a good Zigbee network mesh with loads of Zigbee Router devices then it is often enough to get the Zigbee Coordinator radio adapter a few feet (preferably at least 1-meter) or more from any electronic appliance, (as well as a little bit distance away from walls/ceiling/floors and other dense building materials that might also kill the signal due to poor radio propagation of Zigbee signals, and as such keeping line-of-sight in mind is best practice).
Zigbee operates at 2.4GHz == 2400MHz radio frequency range which is classified as UHF (Ultra high frequency) and all radio magnetic interference in that same frequency range that is close and have strong/powerful emissions will cause problems for all Zigbee devices (as well as cause problems for other low-power IoT devices including those using Thread/OpenThread and BLE (Bluetooth Low Energy) too, that all do their best to coexist using the same radio frequency range.
While there are some IR devices that might operate at the same frequencies more important is to known there are PIR motion sensors for alarms that also use radar for motion detection where some products/models actually can use 2.4GHz frequency ranges for their radars.
What is more well known for operating in same frequency range is Wi-Fi, and non-WiFi sources like wireless game-controllers, mobile/cell-phones, cordless-phones/intercoms, audio/video-transmitter, wireless speakers/subwoffer, wireless headset, analog audio systems, microwave ovens, radar, power-supplies, wireless keyboard/mouse, and even Bluetooth devices (though Bluetooth is relatively low-power so do normally not cause huge interference unless have a Bluetooth transmitter right next to Zigbee Coordinator or a Zigbee device).
Also USB 3.0 will cause interference if close (so yes all USB 3.x ports/cables/peripherals emit noise that will interfere with IoT devices that use the 2.4GHz frequency range ) which is why you should use a USB 2.0 port or a USB 2.0 hub or a shielded USB 2.0 extension cable then make sure to get your Zigbee Coordinator away from any USB 3.x ports/cables/peripherals.
If there really is only an 1-to-1 either-or choise then always better to go with a few Sonoff ZBDongle-E and Sonoff ZBDongle-P re-flashed with Zigbee Router firmware and used as dedicated Zigbee repeaters/extenders if you for looking for longer range or for some reason do not want to add loads of other Zigbee Router devices, which is otherwise is the best approach to a strong Zigbee network mesh.
That is, always try not to aim to add a few great Zigbee Router devices, instead try to aim to add loads and loads of good Zigbee Router devices. The more Zigbee Router devices you have the better.
If you mean the new SONOFF Micro Zigbee USB Smart Adaptor then it looks to be based on EFR32MG21 so I guess it could be a potentially good Zigbee Router if they using good antenna design, but it probably will never be as great as a Zigbee Router device with external antenna that was practically designed to be a dedicated Zigbee repeater as long as you use the right firmware.
Thank you very much for these tips !!
Indeed, I had read that a larger number of routers would be better than a few.
I’ve reconfigured my Philips Hue bulbs with Zigbee2MQTT to take advantage of their router function, I’ll see if that’s enough (my house isn’t very big ).
My ZHA network has generally been ok with the occasional device drop off and manual re pairing needed. Yesterday a few devices dropped off. Even after pairing again the devices stay offline. Logs show they are still registering state changes though e.g. door sensor opened, closed, door lock opened, locked. It’s not a specific brand or device type either as it impacts Tuya door sensors and also a Lockwood lock.
Any suggestions? I’ve tried Reconfigure without luck alongside re pairing
UPDATE: Ok so my issue was possibly front end related. I killed the Android app and restarted and the correct states are displaying.
You are still thinking “star topology” (with router in the centre and everything around connected to the router) and trying to minimise the number of routers. It looks as though you are extremely lucky to have an unusual situation with many devices in a small area and little interference; and so a minimum number of routers is working for you. That’s fine, and I am envious.
Like a regular wi-fi (also star topology) if a zigbee router dies, all the devices which connect directly to it are unavailable. In time I believe zigbee devices would look for the next best connection - but as you say, you have loaded all the nearby routers to maximum already.
Zigbee tends to be used in battery powered devices which conserve energy by using low power radio signals. Low power means (a) shorter range, (b) being more sensitive to electrical/radio frequency interference from many unseen sources (including electric motors and poor electrical connections which are sparking), and (c) signals struggle to pass through dense materials (like walls).
Naturally this requires devices to be closer to the routers (compared to Wi-fi) so that each is close enough to receive good signal … and reliability is our main goal.
The purpose of a mesh network is to improve reliability by providing multiple paths for a message to take across the network. The more redundancy (ie more routers), the better the mesh can achieve this reliability. A desirable side-effect of having many routers is to reduce the number of end devices connecting to any one router, reducing the impact of a router failure.
It looks as though your focus is on controlling many devices in a relatively small area. Your diagram shows the devices on the right with only 1 step to the coordinator, which will be much faster than those on the far left which may have 4 or 5 steps for any message to get to/from the coordinator.
My suggestions to take best advantage of the mesh topology :
your coordinator (the router connected to your Home Assistant computer) should be at (or close to) the centre of the mesh connecting mainly to the other routers. If all devices are physically close this should get all devices down to 2 or 3 steps from the coordinator and give more consistent response time.
instead of adding 1 or two extra routers, consider adding another 6 or even more.
Of course, in the “real world” we have other considerations, like layout of the building, location of power sources, and the ever-present cost.
Thanks Hedda for this post.
It seems to me that 80% of zigbee issues (and about 50% of Wi-fi issues) come from people not realising that there can be a lot of interference in the 2.4GHz radio frequencies. We can’t see the radio signals or interference, so it is easy for people to assume that their network is the only network
Apologies for the long post - but I tried to describe my situation and question as clearly as possible. Of course, partial answers and tips also help!
My setting:
HA runs as a VM in Synology 218+
Zigbee runs via ZHA and Sonoff dongle (P version)
In my initial rush, I bought a bunch of end devices (Tuya window and temperature sensors). Routers (Tuya plugs, LED lamps and smart switches as well as an Aotec Zi) have already been ordered, but are not here yet
The end devices that are very close to the dongle/coordinator have an OK connection (but less than they should I think, see screenshot), those further out / further away have no connection (logical, there are no repeaters in the network yet)
From what I have read so far, I have understood that the following is important with regard to the stability and range of Zigbee:
Dongle should be kept as far away from “interference” as possible
As many (and “strategically” positioned) Zigbee repeaters as possible ensure a stable network
Some end devices (especially the cheap Aqara / Tuya) are being difficult and don’t want to talk to all the repeaters
I’m not really an IT expert, but I can figure things out. I’m really proud that I got HA in the Syno-VM and then the Sonoff dongle in the Syno-VM to work - it wasn’t that easy. I should have looked into the mesh thing beforehand, but maybe I can fix some things with your help.
My main questions are:
What should I do to improve the positioning of the dongle? The Syno-NAS is in the IT cabinet, a small USB extension leads out of the cabinet and the dongle is stapled to it with duct tape (see photo).
The WiFi router is two large rooms away, but there is another 2.4GHz radio device nearby (Busch-Jaeger Free@Home access point). I haven’t looked at separating the WiFi / Free@Home / Zigbee channels, but will do so. Additional considerations:
Is the proximity to the metal cabinet so harmful that I should move the dongle even further away?
Would it make sense to use the CAT5/6 cabling in my house (patch field as can be seen on photo directly accessible in the cabinet) to place the dongle nicely in the middle of the floor plan or even in the first floor via USB to Ethernet and Ethernet to USB adapters?
What is the most sensible way to reach the sauna house (made of wood, about 30m outside in the garden, in between I only have switched 230V ground lamps)? I have considered:
Socket plug as a repeater outside the main house
Socket plug as a repeater on the sauna house
Both
Sonoff dongle flashed as a repeater in the sauna house
… or is there even the possibility of somehow using the Ethernet cable laid to the sauna house (e.g. for a Zigbee router that is connected to Ethernet)?
Are there special “best practices” for how I can best bring the Zigbee Mesh from the ground floor to the upper floor? My plan (see sketch) would be: to place a “good” router (the Aotec) on the upper floor as vertically as possible above the coordinator on the ground floor and to place additional plugs and smart switches on both floors in order to ultimately reach the remote window contacts
Sketches
Shapes: star indicates Dongle/Coordinator position, squares are - future - router positions, circles are end devices
Colors: green = present and connected (albeit weak see above), red = present and no connection, white = future / planned
I´m finally looking into adding a couple of Sonoff USB Dongles as routers to my Zigbee network since although I´m living in a rather medium sized flat, neighbours recently seem to have discovered 2.4ghz WiFi is a thing
Also, walls are old and thickkk here.
I´m running ZHA with ZBT-1 as coordinator.
So, I wonder whether I should prefer the P or E Dongle as routers?
Also, I´m using 2m USB extension cable to bring distance between the HA Pi5 and a WiFi router that is also very close but those 2 meters are not enough to also get away from the wall. So, can somebody please recommend on like a 4 meter USB extension that is well shielded? I should still be fine with 4 meter without the need for additional power for the ZBT-1, shouldn´t I?
I am using these type of USB 2.0 to RJ45 Ethernet Converter Adapters pair to convert a 10-meter standard CAT6 (or shielded CAT5) cable into very long USB extension cable, (there are many brands/models that do the same and use can use a short or a long cable up to around 25-meter / 100-feet), it is a very flexible solution since you can replace the cable to change the lenght: