Hello:
I created an automation that run in sequence over list of alarm sensors and changes the state of each sensor to off. Due to occasionally time-outs, I added a delay of 2 sec between each turn off command. Still time-out occur.
The problem, every time a time-out occur, the error causes the automation to abort.
In order to overcome that, I added “continue_on_error: true” at the beginning of each service command.
It does not seem to be working, when a time-out occur, even though there is a preceding continue_on_error: true, the automation stop right there.
Any clue why the continue_on_error does not work?
Here is the scrip (that repeats itself for each sensor):
action:
- continue_on_error: true
service: switch.turn_on
data: {}
target:
entity_id: switch.pynt_vkl_bypassed - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
Here is the time-out that is received and stop the automation:
Stopped because an error was encountered at January 22, 2023 at 4:58:49 PM (runtime: 24.98 seconds)
Timeout in command: ZBYPAS=15