Trying to create a simple automation to start a script, the script runs fine, but I can’t seem to get the automation to trigger it
alias: my automation
description: ''
trigger:
- platform: state
entity_id: input_boolean.boolean
to: 'on'
from: 'off'
condition: []
action:
- service: script.turn_on
data: {}
entity_id: script.my_script
mode: single
petro
(Petro)
2
that spacing is off. If that’s just a copy/paste error, then you should look towards your logs to see if there is any errors.
There’s also potentially a spelling mistake in the entity_id for my trigger, as I would expect it to be my_input_boolean
my mistake in the copy over, fixed that. I know the issue is with the trigger but I still can’t figure it out.
solved it, I had to take the “from: off” out of the automation
alias: my automation
description: ''
trigger:
- platform: state
entity_id: input_boolean.boolean
to: 'on'
condition: []
action:
- service: script.turn_on
data: {}
entity_id: script.my_script
mode: single