wip
getting closer to rewriting this script to automatically manage gw and bulb changes.
wip. currently adds new gws found. need to manage lost gws
successfully removes lost gateways and adds new ones. I think.
TODO: ensure bulbs are refreshed if this occurs
fixed log levels
fixed setting of power of light in new gw/light class system
fixed bulk power on/off
fixed managing lights in global objects each time gws are checked
bulk actions largely working.
Next will want ot try to see if we can detect losing a bulb..
successfully removing bulbs we haven't heard from in a while (configurable, but default 100 seconds)
TODO: trying to power off, or otherwise deal with a bulb that has switched a gw before it had time to refresh it's settings. this is rare but can happen