I tried to put the example that appears in “Script Syntax” docs, and .log returns me this error in Scripts.yaml : “[wait_for_trigger] is an invalid option for [script].”
new:
alias: "Wait for MY_EVENT or light on"
wait_for_trigger:
- platform: event
event_type: MY_EVENT
- platform: state
entity_id: light.LIGHT
to: "on"
for: 10
where i am wrong?
my HA: 0.98.5