question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would it be possible to have a sensor similar to the device sensor for playlists?

The use case for this is I have several media presets for various things (wake media, sleep media, arrive home media etc.) which are used to launch spotify using the spotcast service. Currently I have to manually get the URI and put the playlist name and playlist URI in a template to populate an input select entity and play the associated playlist.

A sensor with a dictionary of the playlists retrieved by spotcast would facilitate the automation of this process and automatically keep the playlist list up to date in HA when they are changed in Spotify.

I see the API info in the readme, but I’m not sure what to do with that. Perhaps an example for using the API would make this request redundant?

Example playlist template.

>
  {% if playlist == 'Shower Songs' %} spotify:playlist:37i9dQZF1DWSqmBTGDYngZ
  {% elif playlist == 'All Out 60s' %} spotify:playlist:37i9dQZF1DXaKIA8E7WcJj
  {% elif playlist == 'All Out 80s' %} spotify:playlist:37i9dQZF1DX4UtSsGT1Sbe
  {% endif %}

Thank you for taking the time to consider this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
fondbergcommented, Jan 26, 2021

It turns out I need to refactor spotcast quite a lot to implement this so I can’t promise when this can happen but I will look into it.

1reaction
fondbergcommented, May 30, 2021

is anyone interested in this? I’ve refactored the code so I cab make this happen now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spotify Playlist Sensor for Home Assistant - GitHub
This is a Home Assistant Component that pulls playlist data from your Spotify accounts. To integrate with Spotify Playlist Card. Requires a Spotify...
Read more >
Controllable Music Playlist Generation Based on Knowledge ...
The playlist generation is one of the most important multimedia techniques, which aims to recommend music tracks by sensing the vast amount of...
Read more >
Sensor - SoundCloud
Play Sensor on SoundCloud and discover followers on SoundCloud | Stream tracks, albums, playlists on desktop and mobile.
Read more >
Sensor Radio | Spotify Playlist
Sensor Radio. With Voltage, Voltz, Realz and more. Spotify. 3 hr 36 min. 1. TranquilizeSensor. 2. Hustle HardVoltage, Voltz, Realz, Sensor.
Read more >
SICK Sensor Intelligence. - YouTube
@SICKSensors. @SICKSensors 17K subscribers 1.1K videos. Subscribe. www.sick.com. Home. Videos. Playlists. Community. Channels. About. Search. All playlists.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found