Fixed Typo
This commit is contained in:
parent
93c0e182ed
commit
0e4d2455bb
@ -14,13 +14,13 @@ class Lights_Module():
|
||||
|
||||
def main(self):
|
||||
print("Starting up Lights_Modules....")
|
||||
self.b.connect
|
||||
self.bridge_.connect()
|
||||
|
||||
self.b.get_api()
|
||||
self.bridge_.get_api()
|
||||
|
||||
light_list = self.b.lights
|
||||
light_list = self.bridge_.lights
|
||||
group_list:list = []
|
||||
groups = self.b.get_group()
|
||||
groups = self.bridge_.get_group()
|
||||
groupCount = 0
|
||||
|
||||
print("\n -Listing Lights...")
|
||||
@ -35,17 +35,17 @@ class Lights_Module():
|
||||
for gc in range(groupCount):
|
||||
try:
|
||||
print("group n:" + str(gc))
|
||||
group = self.b.get_group(gc ,'name')
|
||||
group = self.bridge_.get_group(gc ,'name')
|
||||
print(group)
|
||||
#group_list.append(group)
|
||||
print(" --done adding")
|
||||
except:
|
||||
print(" --adding failed")
|
||||
|
||||
#self.b.set_group(18, "bri", 254) #This is max Brightness
|
||||
#self.b.set_group(18, "on", True) #This is will turn ON
|
||||
#self.bridge_.set_group(18, "bri", 254) #This is max Brightness
|
||||
#self.bridge_.set_group(18, "on", True) #This is will turn ON
|
||||
#xy_result = self.rgb_to_xy(0,0,1) #This will take an rgb value and make it xy
|
||||
#self.b.set_group(16, "xy", xy_result) #This will make the lights in the group turn blue
|
||||
#self.bridge_.set_group(16, "xy", xy_result) #This will make the lights in the group turn blue
|
||||
|
||||
# The Following will make a rave
|
||||
#for rave in range(10):
|
||||
@ -53,14 +53,14 @@ class Lights_Module():
|
||||
#rgb_g = random.random()
|
||||
#rgb_b = random.random()
|
||||
#xy_result = self.rgb_to_xy(rgb_r, rgb_g, rgb_b) #This will take an rgb value and make it xy
|
||||
#self.b.set_group(16, "xy", xy_result)
|
||||
#self.bridge_.set_group(16, "xy", xy_result)
|
||||
#sleep(0.1)
|
||||
|
||||
#for stuffz in b.scenes:
|
||||
#for stuffz in .bridge_.scenes:
|
||||
#print(stuffz)
|
||||
|
||||
# This will set the group Downstairs to the Stream scene
|
||||
#self.b.run_scene("Downstairs", "Stream")
|
||||
#self.bridge_.run_scene("Downstairs", "Stream")
|
||||
|
||||
print("\n Setup Complete")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user