wiz_light icon indicating copy to clipboard operation
wiz_light copied to clipboard

15 sec polling is causing high channel utilization and an unusable wifi network

Open curlycraze opened this issue 2 years ago • 1 comments

I have 53 wiz bulbs configured using pywizlight 0.4.15 and Home Assistant Core 2021.12.10 on a Windows machine using VirtualBox. When the last 6 bulbs were added, I started noticing that many bulbs would be intermittently 'unavailable' for periods of time (30-120 minutes). During those times, I noticed that the 2.4 GHz channel utilization on my wifi access points would shoot from their usual 25-33% up to 96-97%. Other wifi devices on the network would lose their wifi connection during that period of high channel utilization. Eventually, the high channel utilization would drop and the network would be stable for some period of time (maybe 2-7 hrs) before it would happen again.

Here is a graph showing the times of trouble (when there is a column of grey, that means that the bulbs were unavailable during that time and the channel utilization was extremely high): Image

I made one change in light.py to make it poll the bulbs less often: SCAN_INTERVAL = timedelta(seconds=30) After restarting HA and letting it run for 8 hours, the graph looks significantly better (although still not perfect): Image

Can something be done to improve this situation? I see work done at https://github.com/jarpatus/wiz_light that sounds like it might be aimed at this type of situation, to do asynchronous calls. I plan on having 100+ Wiz bulbs installed, but this is a hold up because my wifi network becomes unusable.

curlycraze avatar Feb 07 '22 18:02 curlycraze

The issue should be address with the latest changes in the library behind. The WiZ integration will also be fully integrated as native integration in the next HASS release. This will replace the wiz_light custom component. Please stay tuned and look for the upcoming releases of HASS.

If you are familiar with containers (Docker) you can have a look into the latest development for https://github.com/home-assistant/core there you can find the latest version of the WiZ integration with several updates and fixes.

If the issue still exists after the update to the upcoming latest version, we should have a look deeper into that.

Thank you for your feedback! 🚀

sbidy avatar Feb 07 '22 20:02 sbidy