Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to turn off with screensaver #43

Open
jamescl opened this issue Dec 28, 2014 · 1 comment
Open

Feature request: Option to turn off with screensaver #43

jamescl opened this issue Dec 28, 2014 · 1 comment

Comments

@jamescl
Copy link

jamescl commented Dec 28, 2014

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:
#19

@cees-elzinga
Copy link
Owner

cool, thanks for the update! I might merge it into the main add-on, I'll leave the issue open for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants