Skip to content

Instantly share code, notes, and snippets.

@briancline
Created April 8, 2014 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briancline/10090022 to your computer and use it in GitHub Desktop.
Save briancline/10090022 to your computer and use it in GitHub Desktop.
Example Philips Hue dim script
#!/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