Spotify Connect Binding

I got the same issue as @Curtis

I am using the latest stable openHAB Version (2.5.1) in a Docker Container and do my configuration solely textual.

The link to the README.md file in the first post gives me a 404 page. Does the link need to be updated?

Regarding waking up devices (which I understand is not possible in a simple way), I can see that it can be done in HomeAssistant. Is it possible for someone brighter than myself to understand how they do it and then replicate it for openhab? Link to github below

At least for me this is a deal breaker to have in place in order to use it in automations. If there already exists a way please let me know :grinning:
https://github.com/fondberg/spotcast/blob/master/custom_components/spotcast/init.py

2 Likes

@hilbrand - where is the best place to add a feature request?
I’d simply like the property ‘explicit’ for the currently playing track to be reported in my data.

I have small kids in the house and I want to be able to force a tracl skip any time that explicit lyrics are played during the hours when my kids are typically awake.

A quick look at the API ref docs show that this should already be getting reported along with the duration_ms property each time that we currently poll the playing track.

Thanks

Does anyone else have a problem with track progress starting at 30:00 and the duration as as well? My millisecond versions are also 1970-01-01 all the time as well but show +930 which is my Timezone so I don’t think it’s system date based?

@hilbrand
There are a few devices for me which I don’t want to add (my phone, tablet, etc
). Because of this, these are showing up in the inbox as it should. However these devices will not show up only once in the Inbox, but from time to time it will get a new ID, so it will show up as a new device in the Inbox. Right now I have 20 duplicates of one device in the Inbox. Can this somehow be prevented? Like checking the device name if it is currently in the Inbox (remove the old one from the Inbox and add the new with new ID)?

this should be possible via the rest api. check for „inbox“ apis. but you need to add a rule or cronjob to do the stuff you like.

The binding calls a method to remove older discovery results every time the discovery is done. For some reason this doesn’t remove older results. So this needs to be checked. But in theory it should remove the previous found results. Maybe you can open a GitHub issue so I can track this.

Can you open a github issue https://github.com/openhab/openhab-addons with this feature request. I think this will become a switch explicit lyrics, which will pass on the state. With a rule you can then check for this state and give a play next command when the state is explicit.

Thanks, will do

Im also seeing this and it seems to get to the point that things go sluggish across the system - once cleared out seems to come good again

Done:

Wow - already done! Thanks

Please excuse my ignorance here,

I am running openHAB 2.5.0.M1 Milestone Build. Currently, my Spotify Binding is the marketplace one.
From my understanding above, the binding should be available in OH naively, but the only one I can find is the marketplace version?
How do I roll to the localized version (which appears to be the one that is now being maintained properly?)

1 Like

Hi,
I use the binding and it works very well. Thank you so much.
But how to show an spotifyAlbumImage with an img tag?

Got it:

<img ng-src=“{{itemValue(‘spotifyAlbumImage’)}} src=”{{itemValue(‘spotifyAlbumImage’)}} />

But with no refresh :frowning:
Trying the image-widget

<div ng-init="Spotify={'url':'{{itemValue('spotifyAlbumImage')}}', 'refresh': 3 }">  <widget-image ng-model="Spotify"></widget-image>    </div>

But that doesn’t work

Item:

Image  spotifyAlbumImage    "Album Art"        <spotify>       {channel="spotify:player:0fe2a655:albumImage"}

Sitemap:

Image item=spotifyAlbumImage icon=none

That is how i use it and its working for months now.

Im still getting duplicate spotify devices - seems a new one every time I play spotify on a different device

Hi,

I have finlly upgraded and am now running 2.5.5 of the binding.
The docs at: https://www.openhab.org/addons/bindings/spotify/ show that I should now see a channel:
trackExplicit

This does not appear in PaperUI at all.
I have also tried adding it manually as an item as follows:

Switch spotify_current_playing_explicit "Explicit" {channel="spotify:player:acbd1234:trackExplicit"}

I have then changed tracks, using the spotify binding and found that the channel is not updated.
Does anyone have this working?

thanks