The github user jsmath postet here a statement that he has a working skript with a pause and restart function. Does anyone has this script from him?
I’m working on a solution with xmpp bot who can add bookmarks then play tts file and resume playing in kodi. When setup is finished I’ll post it of course if anyone is interested in
For Squezzeboxes this script is working: https://community.home-assistant.io/t/squeezebox-audio-alert-script/11774
Hi guys, listen I just want to say good work on that scrip. i just tried it in my environment myself, but for some reason it doesn’t really fully worked for me. My first issue is, on my squeezebox I can only see a display text or an mp3 file and my second issue is that my previous playlist did not get restored. I’m using HA 0.41 and my squeezebox is 7.9.0
Same here.
Latest version of HA 0.45.1 and LMS 7.9.0. After playing the MP3 file, my original playlist doesn’t get restored.
Any ideas?
I had to do this in node-red. My only issue is that the call to play TTS resumes music even when it wasn’t playing. I am using Volumio and it’s REST API is limited. However, the issue seems to be that when it plays a TTS, it removes what was previously playing so resume can only start from the beginning of a number from a queue rather than the point in the song. This is ok for web radio, but not ideal for media songs. I can live with this, I can’t however live with music starting to play after TTS if it wasn’t before.
I have exactly the same issue iwth the resume music after tts. I´m using the original setup
It is a bit wierd and it seems not to be all the time?
I was able to fix most of my issues with a lot of node-red and some bash scripting on the Volumio server including dealing with my amp being in standby.
I guess this is all outside of HA now, however HA now has a generic mqtt tts endpoint on node-red to send anything that requires speech to be played.
What I did was buy a cheap speaker and hooked up a chromecast audio too it, then hid the speaker so you can’t see it. When ever I need TTS I have it sent to that speaker instead of my main Google Home.
Does anyone have a solution for google home?
interested in a solution for chromecast to resume after tts
i’m here as well (resuming previous playlist on Google Home/Chromecast). Complaint from the S.O. on my new “Yes, the dog has been fed” automation. She’s frequently running music through the house, but when I fire the TTS through an automation she loses the playlist.
Help would be appreciated.
I’m having the same issue. I wonder if it’s possible to use the variables component to keep track of volume level and media being played.
And then use automations to check when a media player stops for TTS and then resume the last played media source.
Looks like this might provide a solution. I’ve not had chance to test it though.
Good Evening,
I’ve been working on a custom TTS script and linked entities card for a few days, and this evening noticed the same issue, whereby if music is playing during TTS submission, I can state that and pause playback, but was unable to resume.
I just thought I’d share my resolution as this page pointed me in the right direction, the answer was to pause playback first as part of the TTS script, then once done, submit a custom command to the device as if speaking to it, simply saying “resume”, which carries on playback from wherever it was.
I’ve incorporated this into my existing script which opens with variable setting for current device (so the card can have multiple device drop-down select), current device volume and desired volume to set (again from card input)
So the ultimate ending of the script with all variables incorporated looks like the below - thanks for the pointers!
Edit to add: I always set the target device volume to 0 immediately before setting the desired volume on echo devices, as that ‘mutes’ the annoying ‘BONK’ sound when setting a new volume level.
Additional edit to add: Wow, only just noticed this post is 6 years old!! Ah well, hopefully this info helps someone else stumbling upon this post! ![]()
- action: media_player.volume_set
data:
volume_level: 0
target:
entity_id: media_player.{{echo_device}}_echo
- action: media_player.volume_set
data:
volume_level: "{{echo_vol_now}}"
target:
entity_id: media_player.{{echo_device}}_echo
- if:
- condition: template
value_template: "{{ echo_state == 'playing' }}"
then:
- action: media_player.play_media
data:
media_content_id: resume
media_content_type: custom
target:
entity_id: media_player.{{echo_device}}_echo
Um… Did you not notice that this thread is six years old? ![]()
