These worked fine for months, but at some point a few months back the shutdown one stopped triggering. The startup one continues to work. I’ve been meaning to figure it out for ages but kept procrastinating
It’s not huge deal but it was nice to get an announcement when restart was proceeding normally rather than waiting in suspense keeping an eye out for the dreaded notification badge about a config error. On my RPi3B the shutdown announcement would be maybe 10-20 seconds after I clicked the restart button.
Has anyone got a still-working shutdown automation? Any ideas why mine no longer works?
You probably need to add a base_url to your tts config. This was broken in the update that split the homeassistant base_url into internal_url and external_url.
Interesting. I thought I saw a few posts in the release notes thread that indicated it was required in the ttt setup as well.
I’ve added my internal and external URL as my old base URL but have no way to test if tts is actually working (as I am not home for another year and have no microphone in the place).
first of all since you did not post your script.house_announce_diningroom not sure how you called the TTS since the breaking changes have been evolved this pass months. Also, @tom_l is correct that TTS requires external_url so google home can reach your information. So, I hope my explanations is clear and you can find your fixed.
This thread has gone a bit weird. It seems to contain posts from another thread? I already read Maristhvdb’s comment about ‘5000 miles’ in another thread earlier today.
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.