This may be in the wrong place, I would appreciate it being moved if so.
On 2025.03.02 and wrote a script to do a few things as I leave home. It’s below.
“Continue_on_error” is supposed to default per the documentation. If I omit those lines below, during the light turn-off, there is one light that sleeps a lot and is unavailable. I get this error (first image below) in the trace and the script does not continue.
With the explicit continiue_on_error the script runs, but the trace does not show the error at all, which is a bit of a surprise. I don’t see it in the logs either. I’ve reproduced this several times as there is a small window (when it wakes up) that the light is available, but it is fully consistent. I also don’t know what the “running_script: false” means in the trace’s yaml.
Is continue_on_error not a default of true? Or am I missing something?
I can obviously fix it (and have) by being explicit but trying to understand what is happening, if I misinterpreted the doc, if it’s a bug, etc.
Linwood
leaving_home:
alias: "Leaving Home"
mode: restart
sequence:
- action: light.turn_off
continue_on_error: true
target:
entity_id: all
- action: switch.turn_on
continue_on_error: true
target:
entity_id: switch.alerts_quiet
- action: cover.open_cover
continue_on_error: true
target:
entity_id: cover.small_garage_door
- delay: '00:15'
- action: switch.turn_on
continue_on_error: true
target:
entity_id: switch.alerts_active