ha-smartthinq-sensors icon indicating copy to clipboard operation
ha-smartthinq-sensors copied to clipboard

Support for Home Assistant Scripts continue_on_error

Open danielg88 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. In Home Assistant I have an automation that turns on/off the water heater at a certain time. Sometimes the automation fails from what I guess is a timeout when calling LG API, the problem is that after one step in the automation fails the whole execution stops and nothing else will be run.

Describe the solution you'd like Support for Home Assistant script syntax continue_on_error.

I tried adding continue_on_error to the step that turns on/off the water heater, so if it fails the automation can continue but the problem stills persists. Looks like the integration is not compatible with continue_on_erorr

It seems that the integration must raise HomeAssistantError for the automation to continue.

Additional context If it helps the error I'm getting from the smartthinq integration is this one:

custom_components.smartthinq_sensors.wideq.core_exceptions.APIError: 0111 - {'data': ''}

Documentation: Home Assistant Continue On Error

danielg88 avatar Nov 13 '23 10:11 danielg88

Can you provide more details about the services you are using in your script.

ollo69 avatar Nov 19 '23 11:11 ollo69

Yes sure.

I have seem this error pop up using water_heater.set_operation_mode and climate.turn_off services

danielg88 avatar Nov 20 '23 08:11 danielg88

I'm geting the exact same error on climate.turn_off for my LG S24ET Airconditioner.

Tezzlicious avatar Dec 22 '23 22:12 Tezzlicious