Hi,
I am trying to turn on/off an automation using a switch, I’ve searched and tryed everything but I can’t make it work.
This is what I have:
- id: '1565367536676'
initial_state: False
alias: PIR1 turn on light 1
trigger:
- entity_id: sensor.pir1
from: '0'
platform: state
to: '1'
condition: []
action:
- service: light.turn_on
entity_id: light.light_1
- id: '1565367745758'
alias: Switch_1_auto turn_off automation.light_1
trigger:
- entity_id: switch.switch_1_auto
from: 'OFF'
platform: state
to: 'ON'
condition: []
action:
- service: automation.tun_on
entity_id: automation.pir1_turn_off_light_1
I believe it was supposed to turn on “automation.pir1_turn_off_light_1” when “switch.switch_1_auto” is switched but I guess I am just dumb.