Skip to content

Instantly share code, notes, and snippets.

@athena15
Created December 12, 2018 23:01
Show Gist options
  • Save athena15/c945caeef3b0533c1bd2a0ab4d894fb6 to your computer and use it in GitHub Desktop.
Save athena15/c945caeef3b0533c1bd2a0ab4d894fb6 to your computer and use it in GitHub Desktop.
# 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