Skip to content

Instantly share code, notes, and snippets.

@briancline
Created April 8, 2014 04:12
Embed
What would you like to do?
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