Skip to content

Instantly share code, notes, and snippets.

from phue import Bridge
import colorsys, time, re, random
#setup bridge
b = Bridge('192.168.XXX.XXX') #hue bridge IP address.
b.connect()
# I grouped the different set's of fixtures in the office into arrays
# which made sense based on their physical locaiton in the office.
# The numbers in the array are the same number used in the hue app to identify