Scripting abort randomly

Hi ,

I recently rewrote my automations, where I center all logic on scripts.
One of the main change is avoid a automation be triggered every minute to a script which begin in loop until certain date/time .

This script monitor and adjust the HVAC configuration, which is a LG connected thru SmartThinQ LG Sensors integration.

Appear, sometime the interaction with this integration just failed and then abort my script and my automation which should run for hours.
That became very annoying and problematic, since my automation just stops.

Is there a way to ignore these errors?

  continue_on_error: true
1 Like

Hi @armedad ,

I tried… but this option has no effect. The scripts keeps aborting on actions with this set.
Not sure if it is a problem with LG integration.

can you post your automation as well as a download of the trace?

I’ve worked around changing the logic to set the temperature only when really needed, comparing the configuration before set it
In the previous version I send the command constantly.

I don’t have anymore any trace.

However, I’m afraid this situation occur anyway.
I will create a second script to try reproduce the problem and then download the trace.
(I never noticed there is this possible to download the trace before, thanks for this tip)