Sure, thanks for your help:
Here’s the YAML of the script:
service: script.google_home_resume
data:
action:
- service: tts.cloud_say
data:
cache: false
entity_id: media_player.nest_schlafzimmer
message: "Test, 1 2 3"
I am not sure how to share traces. Do you need the “changed variables”?
Because I don’t know what else I can send you. According to the graph, it gets to the end. (See at the end)
But after removing everything again, reloading the YAMLs rebooting Home Assistant and re-adding your script it seems to be working now. I don’t understand what exactly i did differently this time, but it seems to work. The only two “problems” that are still there, are following:
Everytime It resumes (even it actually does resume), it gives me an error:
[139648940610112] http status: 404, code:-1 - https://api.spotify.com/v1/me/player/repeat?state=off&device_id=bbf7c3f86fXXXXXXXXXXXXXXXXX: Not found., reason: None
(The Xs are from me)
And the other thing that got me into reinstalling everything in the first place, is the TTS that aren’t sent directly via your script, are always at 100% volume. Deactivating the automation helps with the volume, but makes issues with resuming spotify after the TTS.
Here’s what I thought I could send you from the Script. Not sure tho, if this is what you need:
settings:
speaker_groups:
media_player.ganze_wohnung:
- media_player.nest_schlafzimmer
- media_player.nest_kuche
- media_player.nest_flur
- media_player.nest_wohnzimmer
- media_player.chromecast
default_volume_level: 0.25
dummy_player: media_player.vlc_telnet
default_resume_delay:
seconds: 20
max_runtime:
minutes: 10
enable_automation: true
dashboard_cast: true
announce_volume_automation: 0.75
this:
entity_id: script.google_home_resume
state: 'off'
attributes:
last_triggered: '2023-10-06T09:34:19.653250+00:00'
mode: parallel
current: 0
max: 10
icon: mdi:cast-audio
friendly_name: 00 - Google Home Resume
settings:
speaker_groups:
media_player.ganze_wohnung:
- media_player.nest_schlafzimmer
- media_player.nest_kuche
- media_player.nest_flur
- media_player.nest_wohnzimmer
- media_player.chromecast
default_volume_level: 0.25
dummy_player: media_player.vlc_telnet
default_resume_delay:
seconds: 20
max_runtime:
minutes: 10
enable_automation: true
dashboard_cast: true
announce_volume_automation: 0.75
voice_settings:
check_for_title: Witte ruis
use_resume: true
last_changed: '2023-10-06T09:34:27.596445+00:00'
last_updated: '2023-10-06T09:34:27.596445+00:00'
context:
id: 01HC25D7RC72TRC5CSD700D26R
parent_id: null
user_id: null
action:
- service: tts.cloud_say
data:
cache: false
entity_id: media_player.nest_schlafzimmer
message: Test, 1 2 3
context:
id: 01HC25K3K6QQ3HP73CY68C6HBX
parent_id: null
user_id: 4514bb2f70c2450bb9f040ed6b64d488
I hope this is, what you need.