sbidy / pywizlight

A python connector for WiZ devices
MIT License
463 stars 79 forks source link

Implement backoff when bulb is offline #105

Closed bdraco closed 2 years ago

bdraco commented 2 years ago

We try really hard to reach the bulb when it is offline.

Screen Shot 2022-02-07 at 16 17 22

Retry should use a progressive backoff as its using a bit of cpu time if there are many offline bulbs

bdraco commented 2 years ago

This is a minor issue as it won't really get back until you have 30+ bulbs offline which is likely only an issue if you whole network is down and it probably doesn't really matter at that point.

We can make this better though so I'm capturing it

bdraco commented 2 years ago

We likely don't need backoff, just a cleaner pattern here