Rooms & Zones¶
hue.rooms and hue.zones expose [RoomNamespace][hueify.grouped_lights.RoomNamespace]
and [ZoneNamespace][hueify.grouped_lights.ZoneNamespace] respectively.
Both inherit from [GroupNamespace][hueify.grouped_lights.namespace.GroupNamespace] and
share the same control interface.
The difference: rooms group physical lights together as configured in the Hue app; zones can span multiple rooms and overlap.
Listing groups¶
async with Hueify() as hue:
print(hue.rooms.names) # ['Living Room', 'Kitchen', 'Bedroom']
print(hue.zones.names) # ['Downstairs', 'Upstairs']
On / Off¶
Brightness¶
Scenes¶
await hue.rooms.activate_scene("Living Room", "Relax")
await hue.rooms.activate_scene("Kitchen", "Energize")