#light.turn_on lights in an area having a certain label?

1 messages · Page 1 of 1 (latest)

wispy plaza
#

Just as an example, in my bedroom I have an Inovelli dimmer switch. This switch exposes the dimmer itself as a light entity to Home Assistant, but also the status LED as a light entity. I've assigned a "Primary Lighting" label to the dimmer and a "Status LEDs" dimmer to the LED, but this doesn't seem to be very useful because I can't construct a light.turn_on call that targets only entities in an area having a certain label. I can either target the area, turning on both the dimmer and the LED, or the label, turning on all LEDs in my home or all lights in my home.

(I don't want to just set visible = false on the LEDs so that I can actually utilize that label for actions in the future)

glad mirage
#

You have to write a template to achieve any kind of intersection of multiple types of selection.

wispy plaza
#

that's frustrating. thanks

#

Here's an example for future reference by anybody who comes across this thread:

action: light.turn_on
target:
  entity_id: "{{ set(area_entities('Bedroom 1')).intersection(label_entities('Primary Lighting')) }}"
reef oak