Hi Guys!
I’m trying to set up my automation to only turn on certain lamps if not already on.
So basically it should turn on 4 lamps, if 2 of them are already on, it should not change its brightness for instance.
I’ve tried to do this with templates using the below configuration but it only works for the first lamp.
Any help would be appreciated, I could split the automation into 4 but want to know if it’s possible to do it in 1 automation.
# # Eetkamer
# - service: light.turn_on
# data_template:
# entity_id: >
# {% if is_state('light.eetkamer', 'off') %}
# light.eetkamer
# {% endif %}
# data:
# brightness: 89
# color_temp: 415
# # Keuken
# - service: light.turn_on
# data_template:
# entity_id: >
# {% if is_state('light.keuken', 'off') %}
# light.keuken
# {% endif %}
# data:
# brightness: 53
# color_temp: 405