#Turn off/on lights in entire area

1 messages · Page 1 of 1 (latest)

ripe knoll
#

So I have a blueprint of my entire basemen with a picture element card. And I have placed state icons for all the lamps (each lamp is a lamp group because it usually concists of 1 or more smart bulbs).

I want 1 extra toggle to turn on/off all lights on the entire floor but don't know how to add that. Floor is not an entity?

I can add "perform action button" but that toggle action is ... not good since I want all lights to go to the same state (like if 1 light is on, turn all off. If all is off, turn all on)

balmy rose
#

IMO, the groups method is the way to go. I would recommend try to use a light service on an area (if it can even be done.) You may not have any now, but you could end up with other light entities in the area that don't necessarily need to be controlled by this card. For example, I have tablet screens, PC monitors, and light inside 3d printer that are all light entities.

#

Groups can be members of other groups.
So, a multi-bulb lamp could have light.lamp_bulb1, light.lamp_bulb2, and light.lamp_bulb3 all be a member of the light.lamp group.
Light.lamp can be a member of light.living_room_lights which can contain other lights in the room.
Light.living_room_lights can be a member of light.all_lights which can also contain groups for other rooms. (I like to name my light groups for rooms as <room>_lights for simplicity.)