custom-sonos-card
custom-sonos-card copied to clipboard
Card not available
Checklist:
- [x] I updated to the latest version available
- [x] I cleared the cache of my browser
Release with the issue: Last one
Last working release (if known): N/A
Browser and Operating System: Hassio
Description of problem: I followed the wiki steps without any result. The card doesn't show up as you can see from the screenshot

Here the code inside my resources file:
#Sonos Card
- url: /local/custom-sonos-card.js?v=1.0
type: module
instead here is the minimum code required for the card:
- type: custom:custom-sonos-card
entities:
- media_player.salotto
This is not the first custom component I use and I don't know why it doesn't work
Additional information:
Everything looks correct to me. I cannot reproduce this error. I am afraid I'm gonna have to close it.
Feel free to open a discussion (https://github.com/johanfrick/custom-sonos-card/discussions) or ask in HA community (https://community.home-assistant.io/t/lovelace-sonos-card/393620)
Hey having the same issue, did you manage to get it working?
Same issue here. This is only occuring on an ipad running iOS 12.5
Could you test this beta release and see if the issue remains?
🚀 Features feature: indicate if no supported players are found feature: indicate if no favorites are found feature: show players that does not have grouping support feature: when grouping use apply button to avoid calling server on every selection feature: show volume in grouping feature: keep events internal to single card as much as possible feature: make it possible to only show sonos players feature: make it possible to override fallback artwork image in player section feature: allow to ignore volume level for certain players in the player section feature: allow non-sonos players in the visual editor 🐛 Fixes fix: only use main player to get favorites fix: hide volume control if player is idle fix: "no media selected" not always showing correctly
not sure if this assists in anyway, however when I go into inspect whilst on my front dashboard the Sonos card comes up with "uncaught (in promise)" in the console
Can you share more details of that?
I am not completely sure how to but if you let me know how to gather the information you need I would be happy to get it for you
There should be clickable links in the inspect pane where you see that error. Please take screenshots and click through those links as far as you can.
Did you try the latest beta by the way?
i did try the latest beta, but it was no help
Hmm, this indicates that it doesn't find any supported player/device. Are the sonos players working in the built in media browser in home assistant? Also, can you share your card config?
The sonos players are working with other media browsers just this specific card.
- type: custom:sonos-card sections: - grouping - player - media browser - groups - volumes hideGroupCurrentTrack: false mediaBrowserTitlesToIgnore: - Local Media - Frigate - TV - Radio Browser widthPercentage: 100 shuffleFavorites: false dynamicVolumeSlider: false mediaBrowserItemsPerRow: 4 heightPercentage: 90 showVolumeUpAndDownButtons: false mediaArtworkOverrides: - ifMissing: false mediaBrowserShowTitleForThumbnailIcons: false entityId: media_player.sonos_volume topFavorites: - '' card_mod: style: | ha-card { background: rgba(0,0,0,0) !important; --accent-color: rgba(230,140,63,1); --primary-color: white; --secondary-text-color: white; --box-shadow; red; }
That did not come across nicely, so here is a screen shot that should make it easier to read
I went back into inspect and found this too
Yaml looks fine (although there's a lot of config that is not actually used). Can you try setting entities? One Sonos player at a time to see if it works with any of them
Same result for each entity, Custom element doesn't exist
Quite interesting let's try to get to the root of this with some debugging. Please use the following beta and then share here the output in inspect. do-not-use-this-version_241002
The console has changed dramatically it repeats this multiple times, and keeps repeating it every so often. However the card is still not working on an android device
Sonos_volume, is that a real Sonos device?
yes
Please share much more of the repetitive console logs
On the error you posted earlier, please click here and show a screenshot of where it takes you
clicked on this
also saw this
not sure if this has anything to do with you too
I'm afraid none of what you posted so far helps me understand what the issue is :-(
would it be possible for me to send you out a screen that im using that way you can replicate the issue on your end
Sure, send me a private message on https://community.home-assistant.io/ to PunxsutawneyPhil
is there anything new yet because of the problem with ios 12.5