Closed danpowell88 closed 5 years ago
What types of lights you are using because this support lot of types. Are you aware that in the header of the HueEmulator3.py script there is line:
update_lights_on_startup = False # if set to true all lights will be updated with last know state on startup.
If set tot True, after a power outage the lights will be set to last know state.
If the lights had power but were set to off and then they receive power, the default action is to power on the lights, so I'm not sure if that would work here
Also where is that script?
Im thinking perhaps in Controller.prototype.endDeviceAnnceHdlr
when the device is already registered to still raise some event (not sure which one) to say the device is now available again.
Whats the best way to determine a powered devices status after a power outage and then power resumes.
Specifically for hue light bulbs.
It would seem that if I do a checkOnline of any devices that I think should be online and let that fire the event if they don't respond then handle the event that is emitted?
The other issue is that when they come back online I don't always see a devIncoming request, it would seem it only is emitted the first time the device comes online after zigbee-shepherd has started.
Any ideas?