He is unable to find songs
c3bcf6d9-99dc-4abb-8391-c727a7ed9427
He is unable to find songs
c3bcf6d9-99dc-4abb-8391-c727a7ed9427
I published another fix - it was now talking about data missing. Which is weird since it works with me - but AI suggested something that was worth a try! You can try again after updating.
Thanks for trying! Unfortunately without the result i was hoping for. Can it be because i have spotify directly playing on my reciever?
851d4abc-bcea-4809-a938-bf75b2afcb8d
Not sure - the error is still about the request to the search API. That should be an easy fix usually.
Iām gonna need to validate that it works on my end first. If that works or not hopefully gives a bit more context I can work with. I canāt tell you when I find the time to do so.
No problem!
Thanks for looking into it!
Hi @pendojoshua ,
I just received this mail from Spotify. Currently iām using your App , especially your widget to quickly play music on my Spotify Connect device. Recently the widget is not working anymore, I see continously āsearch failedā
Today I received an email from Spotify. Do you think this will have impact on the app? And for me specifically the widget area?
Iāve thought about that too. Itās possible, but looking at the changelog there isnāt anything that can interfere with the app. But who knows. āLuckilyā, I get the error on my device too. So I can debug without any help. Iāll look into it asap.
/Edit:
There indeed have been updates to the search API. At first sight just a minor thing that feels like just bugging people: the search limit was decreased to max. 10 results per page. Iām currently changing the code to reflect that limit and hopefully that works.
/Edit 2:
Decreasing the limit worked - Iāve released a new version. Iām going to look into adding pagination to the results, since a limit on 10 results will prevent users from finding the song theyāre after from time to time.
Awesome! Iām having something to play with tonight ![]()
Thank you Joshua!
Thanks for the update! Itās working perfect ![]()
Would it be possible to somehow make support for Sonos speakers? I mean they already have 2 Sonos apps, but this feature where you can search for songs is really needed.
Spotify is a music library with Spotify Connect (speaker) support, but doensāt support Sonos. While Sonos is a wireless speaker without itās own music library. One way or another it would involve writing something that can control a music library and then connect a Sonos speaker. And the information we have is that the first wonāt work and the second seems to be a pain in the butt to built (if even possible).
So I canāt tell for sure if it is possible or not, but Iām definitely not going to try and find out. Iād be open to any information regarding options, but sounds like a waste of my time for myself.
Found a few minutes to poke around and it turns out to be totally doable (in theory).
Instead of fighting with Spotifyās Web API for playback (which doesnāt support Sonos), I can:
Keep my existing Spotify search widget
Send Spotify URIs directly to Sonos via UPnP
Sonos handles the streaming using the userās linked Spotify account
The Spotify URIs from the Web API (spotify:track:xyz) work directly with Sonos UPnP commands - no translation needed. Just need the node-sonos library and the user to have Spotify linked in their Sonos app. Pretty elegant solution that bypasses the whole Spotify Connect limitation.
Iām just nog sure if this fits inside this app or that itās better of in itās own. There is a lot of shared code so Iām leaning towards adding it here.
Alright thanks! I hope this could be a feature. There is really no apps with flows that can search up songs to play on Sonos speakers, in the official Sonos app it only supports playing favorite songs. So would be better having this feature.
Trying to get an MVP working as we speak.
Thank you!!
Iāve had some success already!
I was able to add my Sonos speaker as device (using the IP adress, I canāt get network discovery working for some reason) and even start playback from the search widget. Itās even more foolproof than the Spotify playback API since the over-the-network commands wake the Sonos device up. Thatās something I couldnāt get working with my Spotify devices yet.
Iām going to spend some more time on this in the next week(s). But so far so good!
Looks like Iāve found my reason on why to go for a full Sonos home after all. Iāve been seaching for alternatives that support Spotify but had the Homey automation options I was after. Maybe this is the missing part in all of this ![]()
Thank you so much for doing this! Iāve been wanting to make the Sonos play something specific without needing to favorite every single song in Spotify. If this will work, then this app will definetly be the most used app in my Homey!
Iāve been using the Alexa app for that, but doing it straight to Spotify instead of Alexa needing to handle it aswell would be much better.
Here you can see, i use Spotify Connect to use my phoneās Spotify. I have a Siri shortcut so i use my JBL headset to say āSwitch to Beamā then it plays the same music and skips to exactly 5 sec before where i was in the song. Right now i use Alexa and Spotify Connect for this, is it possible to get a skip flow card aswell? Skip X⦠seconds? Then everything would be possible with Spotify Connect without Alexa.