If your notify service fails, would it stop the rest of the automation from running?

Last night I had internet issues and did not get any of my push notifications when my automation were running. When my backdoor locks, it sends out a notification, etc.

All automatons otherwise ran fine with 1 exception:
My garage door did not close at 11 like it should. The only difference I can find is with that 1 specific automation, the notification goes out before it actually shuts the door.

If the notification comes first but fails, will the rest of the automation run? I have since reversed the code so the door shuts before the notification, but wondering if this could have been an issue? Have any of you run into this before?

Thanks.

I don’t think so.

I believe that was changed in one of the more recent updates (3 months or so…?) so that if a service in an automation fails it won’t continue the automation.

you should be able to check the home-assistant.log and see if there are any error messages.

Yes it is a problem I have experienced. If the notify service fails the following actions are not executed.

I have put my all notifications at the end of my action lists because of this exact issue.

I wasn’t aware if this though:

So maybe it’s fixed now?

I read what @finity said as it started this 3 months ago…

In any case, I don’t send out notifications unless the other actions have worked. I actually check if the state of an entity changed in the last few seconds and only then send a notification… I’d definitely make sure the notification is last action in any case.

I need to pay more attention.

Thanks guys-
Ran into the same network issue tonight…no notifications but all automatons ran otherwise fine.
So rearranging my code so I am closing the door before sending out the notification seemed to have fixed it.

Or you could separate your notification out into a separate script.

How do you call them within the main script?

- service: script.some_script

Is that what you meant?

Yes I think that is what I need. i need to experiment to make sure I understand.

Something like

- service: script.door_closed_notify 

would do it?

That would keep things neater…

Thanks.