Home Assistant component to feed Upcoming Media Card with your Sonos Queue.
This component displays your Sonos Queue, not the queue of media that may be playing through your Sonos. As an example, if you are airplaying to your sonos or steaming to it from outside the Sonos app, those queues will not be displayed in this component.
This component does not require, nor conflict with, the default Sonos component.
Read through these two resources before posting issues to GitHub or the forums.
- Install this component by copying these files to
/custom_components/sonos_upcoming_media/
. - Install the card: Upcoming Media Card
- Add the code to your
configuration.yaml
using the config options below. - Add the code for the card to your
ui-lovelace.yaml
. - You will need to restart after installation for the component to start working.
key | default | required | description |
---|---|---|---|
ip | yes | Your Sonos IP | |
max | 3 | no | Max number of items in sensor. |
sensor:
- platform: sonos_upcoming_media
ip: 192.168.1.200
max: 4
- type: custom:upcoming-media-card
entity: sensor.sonos_upcoming_media
title: Sonos Queue
key | default | example |
---|---|---|
title | $title | "You Can Call Me Al" |
line1 | $genres | "Paul Simon" |
line2 | $episode | "Graceland" |
line3 | $empty | |
line4 | $empty | |
icon | mdi:speaker | https://materialdesignicons.com/icon/speaker |