Anyway to "on error" skip step in home assistant automation- error handling

Hello all,

If I have 5 or so actions in an automation. I am beginning to notice if one of the items is unavailable, it essentially crashes the whole automation.

Is there anyway to error handle this situation?

I know one answer is “get all of your devices working” but sometimes this seems random with regards to an automation not being able to communicate with a z wave device etc. on my network. I’ve had this happen with a couple of different networks lately (zigbee, zwave) and I’m just curious if there are any ways to move forward.

Now that I am thinking about this more, this happened when one of the entities in a light group was unable to be communicated with but I have also seen it happen in “non grouped” situations.

You can add
continue_on_error: true
to actions. Not sure what would happen with devices in a group, but works well when calling scripts or performing actions on individual entities

1 Like

I second what @vic4news wrote: ‘branch’ out to calling scripts for action on devices that are not 100% reliable. I had to do that for some Tuyas (I know, old sins :cry: ), they broke my whole 10-step bedtime routine.

Looks like you might even want to/have to split up actions for groups into scripts for individual devices :frowning_face:

Not required, at least for zigbee - you can create a native zigbee group (in ZHA or Z2M) and as far as HA is concerned, it’s sending the command to a single entity.
You could probably create a Zwave group in the same manner, but I’m not familiar with Zwave.