I have a group named All Interior Lights.
I also have an automation that brightens the group by 1% every 12 seconds, until full brightness is reached after 20 minutes.
action:
- delay:
seconds: 12
- service: light.turn_on
data:
brightness_step_pct: 1
target:
entity_id:
- light.all_interior_lights
- delay:
seconds: 12
- service: light.turn_on
data:
brightness_step_pct: 1
target:
entity_id: light.all_interior_lights
- delay:
seconds: 12
- service: light.turn_on
---etc---
But how can I set it up so that…
a) any lights that are already off when the automation starts are ignored?
b) any lights that are subsequently turned off are also ignored?
Both conditions would be wonderful but if b) is too complicated I’ll gladly settle for a).