punxaphil / custom-sonos-card

Home Assistant custom lovelace sonos card
172 stars 18 forks source link

queue section #374

Open Vansmak opened 3 months ago

Vansmak commented 3 months ago

Add a section OR add it to media section to show current queue

At least showing what's next, perhaps be able to manage it. I currently use a popup card to show the queue and had to use node-red to get it to work

It's really rudimentary right now Screenshot_20240514_180639_Home Assistant

punxaphil commented 3 months ago

How do you get the queue of songs?

Vansmak commented 3 months ago

Unfortunately I do not think you can with the HA sonos integration. I use Node-red so that wont't work here. But, perhaps you can add a "custom" section. Where a user can define their own card. instead of a popup i could put this iside the card so it looks all in one. Perhaps someone would use spotify card. even plex meet homeassistant. Which brings me to another idea, where if tv is playing on a sonos speaker to display the artwork in player from another media_player thats streaming the content.

type: custom:sonos-card
sections:
  - player
  - volumes
  - groups
  - grouping
  - media browser
  - custom

custom:
 card:
  type: custom_spotify_card
 ...
punxaphil commented 3 months ago

I'd still like to know how you get the queue 🙏

Vansmak commented 3 months ago

node-red https://github.com/hklages/node-red-contrib-sonos-plus

punxaphil commented 3 months ago

Interesting, I'll take a look!

Vansmak commented 3 months ago

stil polishing it but was able to get what i want using stack and conditionals play queue group

punxaphil commented 3 months ago

Nice you got it working, Vansmak. I'm going to keep the issue open though, I want to get something like this integrated into the card.