I am new to HA and just starting out with some baby steps into scripting. Need some help with the following:
I have 2 lights, light.spot_1 and light.spot_2 and I want them to dim to 25% based on their current state. I have managed it for one of them, but this script of course stops if the condition is false. How can I get a script that checks spot_1 and then continue with spot_2 regardless of the state of spot_1?
Bonus question: is it possible to use brightness_pct as condition? Something like ‘if brightness_pct < 50 then execute something’?
dimlights:
sequence:
- condition: state
entity_id: light.spot_1
state: 'off'
- service: light.turn_on
data:
entity_id: light.spot_1
brightness_pct: 25