Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

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

Open
curlycraze opened this issue Feb 7, 2022 · 1 comment
Assignees
Labels
Dependency to pywizlight This issue is related to problems in the backend lib. fixed but in review

Comments

@curlycraze
Copy link

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.

@sbidy
Copy link
Owner

sbidy commented Feb 7, 2022

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 sbidy self-assigned this Feb 7, 2022
@sbidy sbidy added Dependency to pywizlight This issue is related to problems in the backend lib. fixed but in review labels Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Dependency to pywizlight This issue is related to problems in the backend lib. fixed but in review
Projects
None yet
Development

No branches or pull requests

2 participants