New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA 2021.4.0 - spotcast failed #174
Comments
Hello, same error here Thanks for the project! |
I've just encountered the same error myself. |
Same issue in 2021.4.0 |
Same issue after 2021.4 upgrade |
Sam issue here |
Quick look through the new code and it looks like they've removed the KNOWN_CHROMECAST_INFO_KEY. The data is no longer stored in an easily accessible way. I don't see an obvious way to obtain this info now, but someone with more experience might be able to figure out a way. |
This issue is a duplicate of #172. There is already a potential patch available. |
Still, it should update automatically if it's fixed. |
i can figuere out what the fix in #172 is. can someone tell me |
Following the issues so I will get update when its fixed |
Thanks i copy All the files to my install. |
Also having this issue, following for a fix |
Following the issues so I will get update when its fixed |
Please do not comment unless you have relevant new information regarding the issue at hand. Every time you comment everyone gets notified. If you wish to follow the issue click the thumbs up button on the first post. Posting non-informative comments is very disruptive. |
I am not sure if this is part of this issue or a different issue. I updated to 2021.4.0 and got the same error about 'KNOWN_CHROMECAST_INFO_KEY'. I then commented out the spotcast lines from the configuration.yml file and now Spotcast doesn't even showup in HACS |
Same issue in 2021.4.1 |
This worked for me. copy all these files over to your spotcast folder reboot your system and it should work again |
i tried it, download complete folder , replaced, all files, then edited the init file, but after a restart , i got the issue thay spotcas integration could not be setup |
if i do replace the complte folder, without this : c6b2953 then seems HA to hangup on restart on a second time |
Hello, like @pergolafabio doesnt work for me... Home Assistant OS 5.13 i tried the spotcast-fix_2021_4, doesnt work. |
nah, it made it verry worse, had extreme issues starting HA, rolled back and now disabled that one |
Integration disabled |
A bit off topic, but the 'Check Home Assistant configuration' addon is really handy for spotting these kind of issues, before updating to a new HA version. I'm always running it before actually updating and for the current update it threw this error right away, keeping me from getting into trouble in the first place. |
I tried removing the addon, but now when I check config I get: |
Are you sure you really removed it from your configuration? I had that as well until I discovered a sensor somewhere using spotcast. |
Do you remember which sensor? I’ve had a similar Invalid Config notification ever since the big update. Had removed spotcast but still have the error. |
You're right, i forgot to remove the config in my yaml file. All gone! |
I'm going to release a new version when home-assistant/core#49045 is merged (should be today or tomorrow) |
yes lets be positive, thanks, i just dont understand : there is already Google Cast and Spotify, why Spotcast can not be an official integration in HA in the futur? |
Spotcast uses an undocumented/unsupported feature of Spotify. While cool, it might cause problems for us, especially since Home Assistant hopes to get a dedicated application account with Spotify in the future. |
ok understand. Sounds good...wait . Thanks for explanations. |
Fixed in https://github.com/fondberg/spotcast/releases/tag/v3.5.2. Help me test that release. |
I might be doing something wrong, but even on v3.5.2 it doesn't work for me.
Script:
Also the Spotify Lovelace Card doesn't load anymore which might be unrelated Edit: looking more closely to my logs I also have a spotipy error Edit 2: After reinstalling spotcast from scratch, reinstalling spotify integration, updating my sp_dc and sp_key credentials. It still wasn't working. |
Working, thank you! |
How did you update? It's working perfectly for me, even the spotify card. I've use the hacs release |
Works for me as well, thanx @fondberg ! Cup of coffee coming your way. |
Replying here on top of edit for visibility, and might help @XalaTheShepard Thanks again for your work there @fondberg! |
Don't forget to give him a coffee for his work! |
I have the exact same problem as you after upgrade of HA and this component 2021-04-11 20:25:28 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object is not iterable |
Update through HACS, restarted Home Assistant....and everything works. Good! |
hope generosity and plenty of coffee cups for his nice and usefull Spotcast and card! |
HA via docker lastest release, updated through HACS, works like a charm! Thank you very much! |
HA virtual box I am newbie with spotcast - never run it successfully installed few days ago tried to run it using mini media player or developer tools > services > using service data: [140685081292080] 'NoneType' object is not iterable |
Thanks everyone, working perfectly again. The spotify integration had to be reinstalled again. A good, well deserved cup of coffee is coming up :) |
It’s working great for me again too! I just updated via HACS and added the spotcast lines back into configuration.yaml and restarted. Everything working normally now (HA 2021.4.3 on HA OS on Raspberry Pi 4). Thanks for all your hard work! |
HA 2021.4.3 in docker , Spotcast 3.5.2 it is not working anymore. 'Logger: homeassistant.components.websocket_api.http.connection [139970235530784] empty range for randrange() (0, 0, 0) |
I had reverted to 2021.3.4 while waiting for this and another as yet to to worked out bug with Xiaomi Miio, However, this morning saw the new HACS update for this and the requirement for 2021.4.x. Being the contrarian I am I went ahead and updated with 2021.3.4 and I'm now typing this listening to spotify:artist:3BqAAo5E60L15TcFgWI8xH @fondberg and other ... many thanks. |
Updated, but i got the same error than a few other "TypeError: 'NoneType' object is not iterable" when i want to start playback on Google-Device. EDIT: After readding Spotify Developer-Application and configuration of the Spotify-Integration evereything`s working. Thank you! :) |
@walkercz ask in the forum. Seems like you haven't gotten the keys correctly |
Do we need to have the Spotify integration also in Home Assistant to get this working? Thought that this component was the only one needed and that is how I used it for a long time. Can´t see any required step in the installation part of this plugin either. |
This is what i`ve found for the custom Spotify-Card: |
Added this Spotify integration now and it start working again, thanks for help |
Hello,
After updating to Home Assistant 2021.4.0
I got the following error for spotcast
Setup failed for spotcast: Unable to import component: cannot import name 'KNOWN_CHROMECAST_INFO_KEY' from 'homeassistant.components.cast.media_player' (/usr/src/homeassistant/homeassistant/components/cast/media_player.py)
Let me know if you need further details?
Thanks for the project!
The text was updated successfully, but these errors were encountered: