Could you please share that chunck of code please?
the first node is my flic Button (injection)ā¦then turn on bathroom lights, and first function select my device (iphone):
msg.params = [
['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], /* DeviceIds Array (but it can only handle one device id) */
{ play: true }, /* Options Object */
]
return msg;
then Transfer
and function play with this code
msg.params =
[{ context_uri: "spotify:playlist:0mnzWKMowbO9iLJTQ2oHkf"}],
{ play: true };
return msg;
for select my playlist.
the only problem is my Iphone, if is in standby, or without Spotify app open, doesnāt work
dutch_guy Thank you very much the select URL and hit enter worked. Iāve been battling with this for days. Kind regards, Jason
Hi all,
long long long time ago I used this. And since there is a bug in the HA spotify integration for me I am ending up here again.
I had no success anymore with the node red nodes for spotify. i got:
But nothing happens in my spotify.
then I deleted the Oauth2 node:
And I struggled about 1 hour to get it back againā¦ url decoding, forwarding ports, reverse proxiesā¦ what a hell and a mess. But it in the end successfully authenticated again.
But now it still does not workā¦ I get:
but nothing happens anymore in Spotify.
Is anyone of you still using above successfully?
Awesome! Thanks - that did the trick
Not sure if this helps you guys or not, but thought I would mention it.
The SpotifyPlus Integration custom component adds extended support for Home Assistant and Spotify premium account users.
Features
- Provides 97 custom services to support 99% of the Spotify Web API functionality.
- Provides additional services beyond Spotify Web API - e.g. PlayerMediaPlayTrackFavorites, etc.
- Search Spotify catalog for all media types (tracks, playlists, albums, artists, shows, audiobooks, episodes, categories, etc).
- Supports the Spotify Connect Protocol, including Sonos support.
- Supports SpotifyConnect AddOn, spotifyd service, and librespot devices.
Requirements
- A Spotify Premium account is required.
- Home Assistant 2024.10+ release.
Limitations
- Limited control of Google Chromecast devices. Chromecast devices are currently not fully supported by the SpotifyPlus integration. You can perform player functions (e.g. pause, resume, next track, etc) if the device is the currently active player, but you canāt wake up a device or initiate play of tracks / context.
More Information
- Wiki Home
- Configuration
- Installation Instructions
- Custom Services Provided
- Media Player Service Enhancements
- UI Dashboard Examples
- SpotifyPlus Community Forum
Hope it helps!