Background
This package started somewhere in 2020 as a simple script to resume a Google Cast device after it was interrupted by a TTS message. During the years more functionality was added, the Cast devices can also be resumed after playing an audio file, or casting a Home Assistant Dasboard.
In the past years I also created others scripts using the Google Home Resume script. There is a script to determine on which device a question was asked and send a TTS or play a file on that specific device. Another script stores the state of the cast devices in a template sensor, so it can be resumed in later (for example store it when you leave home, and restore it when you arrive home again).
All these scripts are now combined in one package
USAGE OF THE AUTOMATION
The automation to start the resume is intended to be used as a backup. If you already know you are going to send (like a TTS or mp3) and know you want to resume what was playing afterwards, I strongly advice to start the script yourself, and not rely on the automation, as it is a bit flaky.
See here for instructions how to do that.
Latest version
2024.8
IMPROVEMENTS
- As HA 2034.8 changed
service
toaction
adjustements in the script had to be made so these actions would be recognized and performed. The script itself still usesservice
to make sure it still works on older HA versions - The
tts.speak
action can now be used without the need to additionally provide thetarget
. This is now taken from the action data provided in thetts.speak
action - A new setting
stop_before_action
is added. Before the script would stop cast devices which were playing before starting to perform the provided actions. However, since some time this stop action could not be performed for some users. Whenstop_before_action
is set tofalse
(which is the default in case the parameter is not set) the stop action will not be performed. The downside of this is that the volume which should be applied to the TTS announcement will sometimes already be applied to the playing media.
BUG FIXES
- removed a check in the helper script which was sometimes blocking resume and keeping both scripts in a waiting state
DOCUMENTATION
service
has been changed toaction
in the examples from the documentation.
Full Changelog: Comparing 2023.8.0...2024.8.0 · TheFes/Google-Home-Resume · GitHub
How to install and use the package
See the readme on the GHR GitHub repository.
Buy me a coffee
If you like this script, please feel free to buy me a coffee (I might spend it on another beverage though).
In case you decide to do so, thanks a lot!