Guest User

Untitled

a guest
Dec 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Philips Hue Settings
  2. bridge_ip = '192.168.0.103'
  3. b = Bridge(bridge_ip)
  4.  
  5. on_command = {'transitiontime' : 0, 'on' : True, 'bri' : 254}
  6. off_command = {'transitiontime' : 0, 'on' : False, 'bri' : 254}
  7.  
  8. # Turn lights on
  9. b.set_light(6, on_command)
  10.  
  11. #Turn lights off
  12. b.set_light(6, off_command)
Add Comment
Please, Sign In to add comment