I cannot seem to find any documentation as to why I seem to be hard limited to 250 devices. I am not having any major lag or problems for my application. Why is there a hard 250 device limit?
I find there’s a 150 device limits with deconz by the way, but did not try much to figure out why.
Is it ZHA or the drive itself that is imposing this limit? Is there a way to agree that i’ve been warned and ignore the limit?
Otherwise I use deconz and zha? I dont have any issue with the latency currently in my system, it is not an issue for my appliation.
Server is i7 with 32GB of RAM and is not in any way overloaded.
Thanks in advance for anyone who an shine some light on my roadblock.
The Zigbee devices limit is not hardcoded in software but instead is limited by the amount of RAM-memory on the Zigbee Coordinator MCU (microcontroller unit) as well as exactly how many of what different type of Zigbee devices you have connected (i.e. Zigbee Router devices or Zigbee End Devices) as well a combination of what exact Zigbee SoC + firmware configuration your Zigbee Coordinator and connected Zigbee devices have (most importantly if connected loads of Zigbee 3.0 devices devices as their security protocol have a larger overhear on the RAM-memory on the Zigbee Coordinator microcontroller).
Summery; newer Zigbee Coordinator SoC will allow you to add more Zigbee devices because it has more memory but you will also be able to add more Zigbee devices if you use Zigbee Router devices which have newer SoCs as a Zigbee Coordinator can add less “direct children” than devices that are connected via Zigbee Router devices instead of being connected directly to the Zigbee Coordinaor.
Came here looking to see how far people have pushed the number of Zigbee devices controlled by HA. I currently have about 80 Aqara devices but I’m building an addition to my house and will probably add another 60+ devices. I have a Sonoff usb dongle with upgraded firmware that’s supposed to support ~128 and I’m happy to buy whatever is needed. Considered building a second HA system and controlling the two spaces separately but would like a single system if possible. Would love to hear how far people have gone and what you’ve used.
Not sure how many devices are recommended, as it to a large extend depends on the devices, how often they report. So, total zigbee network usage.
My comment here to mention a easy way to create a second zigbee network. Buy one more coordinator, install Zigbee2MQTT on your HA box. Works perfectly, both ZHA and Z2M at the same time.
You can have multiple Z2M installs on one HA install, if you need to go beyond 2 networks.
Read both the quote below and my updated reply to understand that you can kind of solve the problem for now by throwing newer hardware at it, meaning that you can already today simply buy and migrate to a newer Zigbee Coordinator adapter that is based on a microcontroller more RAM-memory when you a starting to reach around 200 connected devices to more than double the amount of devices you can add.
As explained in above quote, we can not really give you a hard number however if you want a number than know several people have reported that they only topped out when reaching around 200 connected Zigbee 3.0 devices when using modern community firmware on a Zigbee Coordinator based on the popular Silicon Labs EFR32MG21 microcontroller unit with 96 kB RAM (which is using in example the existing Home Assistant SkyConnect / Home Assistant ZBT-1, Home Assistant Yellow, Sonoff ZBDongle-E, Smlight SLZB-07, Aeotec Zi-Stick, easyiot zb-gw04, and more), as well as also topping out at around 200 connected Zigbee 3.0 devices when using Zigbee Coordinator based the in the same generation directly competing CC2652P microcontroller unit from Texas Instruments which has 88 kB RAM but runs a slight more efficient Zigbee stack so also been reported to top out at around 200 connected Zigbee 3.0 devices.
Therefore all you need to do if you ever reach that many Zigbee 3.0 devices is to upgrade to a newer Zigbee Coordinator based on later generation of microcontroller units that has more RAM-memory, like the EFR32MG24 (up to 256 kB RAM) and EFR32MG26 (up to 512 kB RAM) from Silicon Labs, or the CC2674P (up to 296 kB RAM) and CC1354P (up to 296 kB RAM) from Texas Instruments.
Hence the newer EFR32MG24 microcontroller as an example has more than twice the amount of RAM-memory compared to the older EFR32MG21 so in theory using a EFR32MG24 based Zigbee Coordinator should allow you to connect more than twice the amount of Zigbee 3.0 devices.
While there are not that many choices of available Zigbee Coordinator adapters using those newer microcontroller units yet, there are at least a few products based on EFR32MG24 that I have seen in the wild, so surely there will be more Zigbee Coordinator adapters using it released in the future. Just as both Silicon Labs and Texas Instruments will continue to release newer and newer microcontroller units in the future with more and more RAM-ram.
Again note that you will only run into these if connecting mostly Zigbee 3.0 devices as those use higher security standard (better encryption) that have more overhead on the for the Zigbee Coordinator MCU (microcontroller unit). So if you are instead only connecting older Zigbee devices you are unlikley to hit any limits as those use the old Zigbee Home Automation 1.x or Zigbee Light Link protocols then those use old security (encryption) with very little overhead so there is no problems adding thousands of such Zigbee 1. devices
PS: Note that manufacturers like Sonoff/ITead ship their Zigbee Coordinator adapters with the same old firmware as their initial batch and have not by themselves released any newer firmware, so you will need to update to a newer community firmware if you want the peak performance possible from it. Check out for example these community firmware builds: