Created
December 12, 2018 23:01
-
-
Save athena15/c945caeef3b0533c1bd2a0ab4d894fb6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Philips Hue Settings | |
bridge_ip = '192.168.0.103' | |
b = Bridge(bridge_ip) | |
on_command = {'transitiontime' : 0, 'on' : True, 'bri' : 254} | |
off_command = {'transitiontime' : 0, 'on' : False, 'bri' : 254} | |
# Turn lights on | |
b.set_light(6, on_command) | |
#Turn lights off | |
b.set_light(6, off_command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment