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?
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.
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.
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.