def _set_group_bri_hue_sat_trans(bridge, group_id, bri, hue, sat, trans):
    g = Group(bridge, group_id)
    g.transitiontime = trans
    g.on = True
    g.brightness = bri
    g.hue = hue
    g.saturation = sat
def _set_group_bri(bridge, group_id, bri):
    g = Group(bridge, group_id)
    g.transitiontime = default_transitiontime
    g.on = True
    g.brightness = bri
Beispiel #3
0
# sleep(2)
print(b.groups)

nb_group = b.groups
#print(len(nb_group))

print(b.get_group_id_by_name('control_group'))

#print(b.lights)

#b.create_group('control_group', [3, 4, 5])
b.set_group(group_id='control_group', parameter='lights', value=[5])

gr0 = Group(b, 'control_group')
gr0.on = True
gr0.brightness = 254
gr0.colortemp_k = 3500
sleep(3)
gr0.on = False
b.set_group(group_id='control_group', parameter='lights', value=[3, 4])

gr0 = Group(b, 'control_group')
gr0.on = True
gr0.brightness = 254
gr0.colortemp_k = 3500
sleep(3)
gr0.on = False
# print(b.get_group_id_by_name('control_group'))

print(b.groups)