Lights¶
hue.lights exposes the [LightNamespace][hueify.light.LightNamespace] and
lets you control individual bulbs by name.
Listing lights¶
On / Off¶
Brightness¶
await hue.lights.set_brightness("Desk", 80) # 80 %
await hue.lights.increase_brightness("Desk", 10) # +10 %
await hue.lights.decrease_brightness("Desk", 10) # -10 %
current = hue.lights.get_brightness("Desk")
Colour temperature¶
Direct light handle¶
For multiple operations on the same light, grab a
[Light][hueify.Light] handle to avoid repeated cache lookups: