I get unexpected notifications from an automation, after I update Home Assistent Core during the restart.
In that automation, I am monitoring the state of my 230V plugs. If they get turned off (manually or by another automation), I receive a Telegram message.
I get Telegram messages for each of the plugs one by one, after I have updated HA during the restart. From that point of view it seems, that the plugs get turned off and back on again, which would be absolutely unwanted.
Is that an expected behaviour?
I watched one sample plug during that update process and it looked, that the state wasn’t switched at any time.
I also noticed, that I do get a notification for especially one plug intermittedly, but I wasn’t able to trace down the causing event. I’d be more than happy, if one could help me on to find the triggering event for future troubleshooting.
Show your automation. My guess is, during a restart they are shortly ‘unknown’ or ‘unavailable’ whee the integration reloads, and your automation does not count for that.
Hm, @francisp, first thanks a lot for your idea. I copy/pasted the new lines into my yaml. Saved and restarted HA. The notifications didn’t show up.
To cross-check, I removed the additional lines and restarted the same way. Now the notifications don’t show up either anymore.
Does that make any sense?
Really interesting, I just tested again with a restart of HA, with the automation mentioned above without the “not_from” lines and the notifications do not show up again.
I have another automation, where the very last message is always fired, after restarting HA.
I hope I found the solution. I tried to put the “not_from” part under the “triggers” section. I tested by restarting HA and the unwanted notification did not appear again.