themoppp
(Themoppp)
June 17, 2023, 2:30am
874
@TheFes I used this configuration and it work for a while. Recently this script won’t work anymore. I am not sure what I need to fix or if I need to set it up from scratch.
This is the script I used
PS. In my configuration.yaml I do not have this
homeassistant:
#include this line
packages: !include_dir_named packages
I assume that I use old version that won’t work anymore. So what is the best way to fix this?
THANKS!
TheFes
(The Fes)
June 17, 2023, 6:20am
875
- alias: Version number
variables:
version: 2.5.0
You are indeed using a quite old version, from May 2022
A lot has changed in the year that passed, both in the script and in Home Assistant itself. I’d suggest you update to the latest version .
themoppp
(Themoppp)
June 20, 2023, 12:03am
876
I have got 4 errors when I pasted content from the link.
Is this normal ? Do I have to change anything?
PS. I do not understand what “radio_data” is and what should I change it to.
Thanks for your help!
themoppp
(Themoppp)
June 20, 2023, 12:26am
877
The automation seems to triggerd (as photo show) but nothing is resume.
When I try to setup in a script like I used to nothing resume either.
Here is my full code
TheFes
(The Fes)
June 20, 2023, 4:18am
878
The errors/warnings VSCode gives are incorrect, the code is valid.
radio_data is used to provide metadata when resuming TuneIn radio streams. This is explained here
TheFes
(The Fes)
June 20, 2023, 4:19am
879
These screenshots don’t tell me anything, please provide traces of the scripts and automation as described here
TheFes
(The Fes)
June 20, 2023, 3:05pm
881
"error": "Could not get spotify token."
Please check your Spotify and Spotcast configuration
themoppp
(Themoppp)
June 21, 2023, 12:07am
882
It turn out that sp_dc and sp key has changed. Now it’s working. Thank you!
1 Like
themoppp
(Themoppp)
June 21, 2023, 12:39am
883
TheFes
(The Fes)
June 22, 2023, 6:39am
884
Sorry, what do you mean with not working
themoppp
(Themoppp)
June 22, 2023, 7:09am
885
Nothing is resume. I played Spotify and run doorbell script.
themoppp
(Themoppp)
June 23, 2023, 1:13am
887
I try to update to 2023.6.0 but I cannot find the package (it’s still 2023.5 in the link). So I try to copy the code and repace it (Thought you might forgot to change version number). Now the automation not working nor script.
Here is the trace
So now I downgrade to 2023.5 and the automation works fine but not the script.
Thanks!
TheFes
(The Fes)
June 23, 2023, 6:53am
888
I indeed forgot to change the version number.
How did you downgrade to 2023.5?
I did not make any changes in the automation for 2023.6, so that one should still work.
Could you try this one?
https://github.com/TheFes/HA-configuration/blob/427a7ce25343db5d1e33765e4df8153fb8bb51fa/include/integrations/packages/google_cast/google_home_resume.yaml
themoppp
(Themoppp)
June 24, 2023, 11:58pm
889
I run home assitant on proxmox so I downgrade by restore proxmox backup.
Now for the 2023.6.1 the script is working but the automation is not
Trace for automation that not working
Trace for the script that now working
THANKS !
TheFes
(The Fes)
June 25, 2023, 5:38am
890
The HA core version is unrelated, I just use the same version numbering system.
I don’t want you to downgrade HA Core
1 Like
themoppp
(Themoppp)
June 26, 2023, 1:56am
891
I did not downgrade HA core. I just roll back my Proxmox VM to the day before (before upgrade to 2023.6). So I can downgrade anything.
THANKS!
Manazer
(Martin Roman)
June 27, 2023, 7:04pm
892
Hi TheFes,
after update to 2023.6 (with version variable “2023.5”) I see this error all the time script should run:
Did not try 2023.6.1
Logger: homeassistant.components.script.google_home_resume
Source: helpers/script.py:410
Integration: Script (documentation, issues)
First occurred: 20:58:44 (1 occurrences)
Last logged: 20:58:44
00 - Google Home Resume: Error executing script. Error rendering template for variables at pos 11: TypeError: can only concatenate str (not "list") to str
Here is the trace:
https://dpaste.org/Qjdu8
TheFes
(The Fes)
June 27, 2023, 8:08pm
893
That should be fixed in 2023.6.1.
I will push it now
1 Like