Anyway the point is that I’m wondering if something has changed with the shutdown event.
My TTS is working, I’ve never experienced any issues with that. As I mentioned in my original post this shutdown event problem started a few months ago, long before the split internal/external URLs. it was sometime around HA 0.98 I believe. Edit: after looking at release dates I don’t know what version it was. It was about 6 months ago !
Just pointing out that the startup TTS works. The shutdown one doesn’t. It’s the same script. Everyone seems to have missed it so I’ve gone back and emboldened that sentence in my original post
I think your media being called at the same time. Which make the 2nd TTS does not working. You should try making the delay into longer which allow your media to finish the 1st one and run the TTS
I think I’ve ruled out issues with the volume_set or the delay being a problem. I use that exact sequence in other situations and the 1 second delay works as expected.
I’ve also tested this automation and it also doesn’t fire when I restart. I use these local mp3s in other situations (e.g. if the internet is down), and they definitely work.
was thinking of that too. And, like before, (and don’t burn me down for this and say it shouldn’t matter or is impossible…) please let me add this syntax, which has solved issues before:
With this setup the TTS script (the same TTS script that works normally at startup) does not work , but the Xiaomi Gateway ringtone, the telegram notification, and the pushover notification all DO work.
It’s strange that the same TTS script stopped working at shutdown but continues to work at startup. But at least I’ve confirmed the shutdown event is still working. I wonder if media players are no longer available during the shutdown process for some reason?
I just want some kind of notification that restart is proceeding normally, I’d prefer a TTS announcement but pushover plus a xiaomi gateway alarm will do Thanks for the assistance!
Just to add to this, I noticed same thing with the shutdown trigger. It appears that scripts won’t run, but other services will. I tried setting an input_text in a script on shutdown and had no luck. The same action done in the automation using the service directly worked however.
How are you shutting down HA? I’ve noticed the only way to get any kind of consistency using the ‘Shutdown’ trigger is when shutting down HA from-within HA.
NOTE: I run HA inside VirtualBox on Windows so YMMV.
I looks like only notify actions are executed when the shutdown event is triggered.
I’ve added some additional automations for testing. All automations has been triggered and I received all notifications. But the input_booleans hasn’t been turned off.
And although the notifications has all been sent the automation overview shows all the automations as never triggered.