I have multiple relay switches on my new HA install. I am attempting to control a single relay with a script but need some guidance getting it to work. This script seems right to me but does not work. If I remove " - data:
entity id: switch.relay_2_1", all relays turn on/off, which is not what I want.
Ideas?
'1562095453921':
alias: Turn Up Relay 2_1
sequence:
- condition: state
entity_id: switch.relay_4_2
state: 'on'
- data:
entity id: switch.relay_2_1
service: switch.turn_on