Instead of a USB connected coordinator the use of an Ethernet connected coordinator, like those available from Tubes store. They can get your coordinator even further away from EMI sources and central to your network.
The most important thing is still to understand that in a true mesh network topology like Zigbee uses it will always be much better to get many weaker Zigbee Router devices than it is to get only one or two very powerful/strong Zigbee Router devices. That way you can in practice get a redundant fully connected network (with the exception of the Zigbee Coordinator which in Zigbee 3.0 can only be one per Zigbee network). Otherwise, you will risk that powerful/strong Zigbee Router device becoming a single-point-of-failure so all devices that only connect to it will go down if it does.
https://www.ecstuff4u.com/2018/03/zigbee-topology.html
So for a quick no-effort fix I personally normally just recommend that people new to Zigbee who have big houses and large areas or buildings with dense building materials make it easy for themselves and just buy a bunch of “IKEA Trådfri Signal Repeater” devices from the start to get them a good mesh network backbone as a baseline. This is because while not as strong as these Zigbee USB dongles with an external antenna, the “IKEA Trådfri Signal Repeater” comes with good firmware by default and are very inexpensive, so you can make up for them not having the highest performance by simply buying more of them, (and they are still more powerful than almost all other commercial Zigbee products that are not designed to be a dedicated Zigbee Router device).
https://www.google.com/search?q=IKEA+Tradfri+Signal+Repeater
However, if you want to get the best setup then the best AND most cost-effective Zigbee Router that money can buy today is just to convert a few of ITead’s “Sonoff Zigbee 3.0 USB Dongle Plus V2” (model “ZBDongle-E” based on Silicon Labs EFR32MG21) into dedicated Zigbee signal repeater / Zigbee range extenders by flashing them with Zigbee Router firmware and powering them with a simply USB-chargers. While maybe not the prettiest solution to look at, if you make sure they are permanently powered then joining/pairing three or more to your Zigbee network and spreading them around in your home will create an extremely stable backbone in your Zigbee network.
https://github.com/itead/Sonoff_Zigbee_Dongle_Firmware/tree/master/Dongle-E/Router
Yes that is indeed another way to move your Zigbee Coordinator further away from possible sources of interference and place it in a more ideal location like the very centre of your house, (and I personally recommend TubeZB and ZigStar network-attached Zigbee Coordinator solutions for some situations where simply using a long USB extension cable is not enough to get the adapter in an ideal placement).
However, a network-attached Zigbee Coordinator solution does introduce additional complexity and introduce your LAN as another SPOF (Single-Point-Of-Failure) for your Zigbee network setup, and I therefor personally believe that in most use bases it will be easier to just use either up to 5 meters / 15 feet shielded USB extension cable or if even longer USB extension distance is needed you can achieve up to around 30 meters by using inexpensive “USB Ethernet RJ45 Extender Adapter” converters which easily and practically convert any single CAT5e/CAT6 shielded Ethernet cable with RJ45 connectors into a very long USB extension cable, (note that 30 meters or 100 feet is the recommended maximum length for USB 2.0 data traffic over a passive cable). See for example these USB extension solutions:
https://www.amazon.com/DTECH-Feet-Extension-Cable-Female/dp/B01HEQ1BUU
or
https://www.amazon.com/Male-RJ45-Female-Extension-Adapter/dp/B083W3D65G
One other great use-case for ethernet-based Zigbee adapters is that if you run a virtualized environment (VMware vsphere for example) you could move the HA virtual machine around on different servers during maintenance, set up high availability or replication. Not something that would have a big user base but for people already running virtual environments it’s a big plus.
Another possible more advanced flexible solution to get USB or serial adapters into a virtual machine if you need more virtual machines or different types of USB/serial adapter virtualization can to either use a genetic Serial to TCP/IP network proxy application for example which could be a DIY software-based like “ser2net” on a Raspberry Pi Zero other Serial to Ethernet converter server (such as commercial Serial-Over-IP and USB-Over-IP hardware appliance solutions that do the same, like products from Silex Connectivity Solutions and Digi connectivity solutions such as their AnywhereUSB series as examples). Zigbee2MQTT has a guide for ser2net here that for the server side also works for ZHA:
https://www.zigbee2mqtt.io/how_tos/how_to_connect_to_a_remote_adapter.html
Home Assistant Operating System running in a Virtual Machine on a virtualization hypervisor actually has quite a large userbase according to the current analytics statistics which say 34%+ today, though I suspect that most people do not run Home Assistant in a redundant environment with the option to do live-migration of the virtual machine to other hardware for maintenance (e.i. VMotion in VMware vSphere):
Yeah, but if you consider replication, high availability and so on these are often licenced features (vmware vpshere licence for example). Hence my comment about the not so large user-base
Off-topic as not related to interference, stability or range/coverage but another very important general tip is by the way to be sure to store/copy your Zigbee network backups to another secondary storage location so that you can restore backups in case your Zigbee setup becomes corrupt or primary storage fails completely and you need to reinstall ZHA or Zigbee2MQTT and then want to restore your Zigbee network, (if you are using ZHA then the Zigbee network backups should be part of Home Assistant’s Backup). Zigbee network backups are important since not all Zigbee network data is stored locally on the Zigbee Coordinator adapter (at least not for Zigbee 3.0 networks).
https://www.home-assistant.io/integrations/zha#zigbee-backup-and-restore-in-zha → https://www.home-assistant.io/integrations/backup/
Common tip to achieve off-site backups is to backup Home Assistant’s Backups to Google Drive (cloud):
https://community.home-assistant.io/t/add-on-home-assistant-google-drive-backup/107928
Possibly off topic but:
Does anyone know where, in a home assistant backup, the ZigBee coordinator backup is?
If I needed to restore a ZigBee coordinator backup to a new coordinator then where would I find the backup?
Zigbee database (zigbee.db) is part of the standard Home Assistant core backup but not exactly sure now that you ask if a complete backup is also done automaically of Zigbee network of APS keys or NWK address tables that are stored in NVRAM on the Zigbee Coordinator adapter, but that is anyway probably more on-topic if asked in this other thread instead → https://community.home-assistant.io/t/zha-integration-to-do-nightly-backup-of-both-zigbee-coordinator-adapter-dongle-stick-and-zigbee-network-database/357558
Note that it is at least easy to download latest backup in JASON format via the ZHA GUI (and also option there to migrate to a other adapter which automatically runs a procedure for backup and restore).
Thank you for the guide @Hedda !
I have one question which is not specifically pointed out in the guide.
Is there any problems using a USB 3.0 extension cable when it is connected to a USB 2.0 port?
There is no problem since USB cables are backwards compatible, in fact it is usually better since USB 3.0 cables are normally betted shielded. USB 3.0 cables have the same numbers of wires/pins so in practice the only difference is just that they are better shielded. Shielded cables are better to use for radios and long cable lenghts.
Other than better shielding USB 3.0 cables also have lower resistance and use thicker gage so can therefor be rated to transfer more power and higher data rates but that only matter to USB 3.0 devices and not to USB 2.0 devices.
Thank you,
I know of the backwards compatibility (since it is what I am currently using). It was mostly if a usb 3 cable connected to usb 2 port could create EMF interference similarly to if it was connected to a usb 3 port. But I guess not
My external SSD is connected to usb 3 port though. I have shielded that cable in tinoil to minimize the interference.
Hi, few days ago I’ve tried to ask something similar on reddit, might go off topic here a bit but it’s related.
From what I read here, I should move the dongle few meters away to deal with Zigbee, but what about other devices interfering with each other:
I am about to make a setup with HA running on r4 pi 8gb. I plan to stack two sonoff 4ch pro’s and several mini r3’s (controlling SSR’s located in the fuse box, which in turn control heating and water boiler) alongside router, switch and pi4 in a large in-wall media box, say 500x500mm
Are there EMI issues here with router-sonoff or sonoff-sonoff or sonoff-pi4 and what would you recommend?
Thanks,
Veljko
First of all, are any of those really Zigbee devices? (Sonoff also make WiFi devices and if they are WiFi devices and not Zigbee devices then it is off-topic here in this specific thread).
If they are Zigbee devices then there should be no problem as long as you have a Zigbee Router devices (such for example an IKEA Trådfri Signal Repeater) close enough but not too close to those devices and still got good connection to the Zigbee network mesh as a whole, like in the same room but not right next to all those sources of EMF.
So the general recommendation is to build out your Zigbee network mesh by adding more Zigbee Router devices.
Does anyone have constructive feedback on how to best rewrite this pull request for the ZHA docs?
https://github.com/home-assistant/home-assistant.io/pull/18864
I have already rewritten it many times and now I’m no longer sure how to proceed (or if I even want to).
Home Assistant posted a video to clearly show Zigbee’s symptoms with electromagnetic interference:
That does however not answer the follow-up question of the Home Assistant Skyconnect dongle and the short USB extension cable that it ships with is more susceptible to interference than other dongles and cables, as in do they have good enough shielding or not, nor if it the short length of the included USB extension cable is long enough. That is, the Home Assistant Skyconnect dongle is not EMF shielded and the USB extension cable that it ships is both very short and relatively thin so it could be assumed that it does not have a lot of shielding.
For reference, Home Assistant SkyConnect website and FAQ on webpage where to buy it now contain some of this information:
https://skyconnect.home-assistant.io/connectivity/
https://www.home-assistant.io/skyconnect → FAQs → “Why include a USB extension cable?”
- “USB 3.0 ports (the ones with blue on the inside) are known to cause significant noise and radio interference to any 2.4Ghz wireless devices. This includes Zigbee and Thread. If you do not use the extension cable, it may not work at all, and if it does, it could be flaky at best with intermittent problems (issues with pairing, device dropouts, unreachable devices, timeout errors, etc).”
Issue with USB 3.0 interference for Zigbee was also mentioned in Home Assistant’s latest newsletter for Building the Open Home:
https://building.open-home.io/assisting-the-open-home/
Zigbee interference caused by USB 3.0
A lot of users build their smart home around a Raspberry Pi. It’s quite popular to expand the storage using an external hard drive connected to the Raspberry Pi via USB 3. What most users don’t know is that USB 3 causes enormous interference with any Zigbee device or stick that comes close, to a point that it no longer works.
Gabriela recently joined the Nabu Casa team as a technical documentation writer and has been focusing on documentation to help users avoid common pitfalls like these. She updated the documentation for the Home Assistant SkyConnect including this 30 second video that shows how bad the issue is:
The advice already posted above in a this thread stands as my recommended guidelines for general best practice, and as you can read there my recommendation is that it is better to have many good Zigbee Router devices than a just one or two great Zigbee Router device(s).
So for a small budget I personally suggest buying three of more of the IKEA Trådfri Signal Repeater if the alternative is buying just one or two Zigbee USB dongle(s) to use a dedicated Zigbee Routers for the about the same amount of money instead.
Again, for a stable Zigbee network mesh is much better to have many good Zigbee Router devices which are always on than just a couple of great ones
PS: @bigdogevan posted reply in public thead instead of private message as do not want to offer personal one-to-one support as then no one else have the opertunity to learn and would also have to repeat the same message even more.
Related to this, consider voting on ZHA feature request for adding UI options to change Zigbee channel:
Thank you for this extensive write-up!
Thank you very much for the detailed write-up @Hedda, much appreciated. I have a related question. One of the biggest issues I had initially with my ZigBee network was related to my wifi router. I have set up my ZigBee network to use channel 15. Initially, I had my wifi router set up to choose the 2.4 channel automatically. My ZigBee devices would sometimes work great, but other times would become really unreliable. I couldn’t figure it out so I even bought the new Aqara P1 motion sensors to see if their better ZigBee 3.0 compatibility would solve the problem, but it didn’t. Ultimately, I realized what was happening was my wifi router would sometimes choose channels 1 or 6, which interfered with my ZigBee channel 15. I went ahead and changed the WiFi channel to 11 and the problems stopped immediately.
The only issue now is that from time to time, my wifi devices get poor connection during times when channel 11 is congested in my neighborhood. I’ve looked into buying a wifi 6.0 mesh system like the TP link Deco, Google/Nest wifi, Eero, etc. but I’m afraid that may actually interfere with my ZigBee network again as I’ve read you can’t really specify which 2.4 channel those mesh systems use. Ideally, I’d love to have a wifi router/system that allows me to exclude certain channels, while still being able to use a number of other channels to switch automatically based on traffic.
So my question is, is there a wifi router/mesh system you would recommend that has the best features/specs for coexisting with ZigBee networks? I’d love to figure this out as both my wifi and ZigBee networks continue to grow.