The entire home assistant crashes with the new script.
this is the error message : Error loading /config/configuration.yaml: found undefined alias ‘voice_settings’
in “/config/packages/google_home_resume.yaml”, line 1069, column 16
Did you actually read what was changed in this 2022.12? These two scripts were added to the package. They won’t be used for resume, they can be used for other purposes. If you are interested in what they can do, please have a look at the links.
The trace of the main script is cut off after line 72
The helper script looks fine, according to it is has set the volume back to 0.3 and used spotcast to reume the milena_dacheva account on media_player.ufficio_milena
Both scripts are stopped and finished
If there were more speakers playing, I need a complete trace for the main script, and the other traces of the helper scripts.
Did you make the changes to spotcast on this HA server as well?
Anyway, there is nothing I can do here, this has to be solved by either Google, Spotify or Spotcast.
The script does what it should do, use the spocast.start service to restart Spotify. This is out of my span of control.
Yes, I checked now, and I found the changes I made.
Anyway, sometimes ago I told you that it worked after you made some changed. Is it possible if you give me that old code? I am not sure, but After I update with the new versions and it stopped to work.
That was the change I was referring to in my previous post. Did you do that on both HA servers? Do note that if you update spotcast from HACS, these manual changes will be overwritten.
(2022.12.1) New setting: max_runtime has been added. Here you can define a time period after which the scripts should be stopped, to avoid them waiting for ages. Take into account that this has to be longer than the interruption, so if you play a song of 10 minutes, the max_runtime has to be set longer than that
(2022.12.1) The spotcast.start service call is now issued twice, this should help in resuming Spotify
I tried two times. The first time after executing the script it turned off directly the device after, the second time, it goes in idle.
The strange thing that I noticed it was that I try to start a music using Milena’s Spotify account, but when it started to play, it used my account. I do not know, if this “wrong” way of working could be the cause to do not work the resume.
If in you case it works, I cannot understand why in my case it should not work.
And I have two separate home assistant servers, so at least at one it should work.
The other thing that I would like to try later, if all the tests will fail, to let me know which is the part of the code of the script which is responsible for resuming and to try to execute it from the developer mode after executing the script…I will try to call it as a service separately and after executing the google resume script to see if it will work.