Created
April 8, 2014 04:12
-
-
Save briancline/10090022 to your computer and use it in GitHub Desktop.
Example Philips Hue dim script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
from heliotron import Bridge | |
# ...and by heliotron I mean https://github.com/briancline/heliotron | |
bridge = Bridge(ip='10.0.0.42', app_name='testscript') | |
lights = bridge.get_lights() | |
print('Good night!') | |
for light in lights: | |
print('- dimming %s' % light.name) | |
light.movie_dim(secs=30, off=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment