script.xbmc.hue.ambilight
script.xbmc.hue.ambilight copied to clipboard
Feature request: Option to turn off with screensaver
As I've got my htpc always on, but don't want to manually turn off my hue lights - I wanted to have the lights turn off with my screensaver.
I took a crack at it - not really familiar with all this so may be more efficient way to do - but thought it would be useful to post:
Added to default.py line 44: def onScreensaverActivated(self): state_changed("saveron",5)
def onScreensaverDeactivated(self): state_changed("stopped",5)
then line 442: if state == "saveron": logger.debuglog("dimming lights for screensaver") hue.dim_lights()
Obviously would need option to turn off/on this feature.
Slightly related is having the lights turn on/off when Kodi starts/stops, so whenever Kodi is active the lights are on, and when it's not they're off - issue already exists here: https://github.com/cees-elzinga/script.xbmc.hue.ambilight/issues/19
cool, thanks for the update! I might merge it into the main add-on, I'll leave the issue open for now