I’m probably missing something obvious here but I have the following:
light:
- platform: template
lights:
master_bedroom_night_stand_lamp:
friendly_name: Nightstand lamp
value_template: "{{ is_state('switch.fibaro_nightstand_switch', 'on') }}"
turn_on:
service: switch.turn_on
turn_off:
service: switch.turn_off
- platform: template
lights:
master_bedroom_corner_lamp:
friendly_name: Corner lamp
value_template: "{{ is_state('switch.corner_light_switch', 'on') }}"
turn_on:
service: switch.turn_on
turn_off:
service: switch.turn_off
The value_template seems to work fine, but when I turn on or off the associated light entities both the lights come on/off. I’m assuming there is something wrong with my turn_on and turn_off statements.
Can anyone help me out?