custom-sonos-card icon indicating copy to clipboard operation
custom-sonos-card copied to clipboard

Card not available

Open tamet83 opened this issue 2 years ago • 34 comments

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

Schermata 2022-03-13 alle 23 34 09

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:

tamet83 avatar Mar 13 '22 22:03 tamet83

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)

punxaphil avatar Mar 16 '22 20:03 punxaphil

Hey having the same issue, did you manage to get it working?

Jasonrobot00 avatar Jan 15 '24 20:01 Jasonrobot00

Same issue here. This is only occuring on an ipad running iOS 12.5

assemblystudio avatar Jan 21 '24 22:01 assemblystudio

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

Jasonrobot00 avatar Feb 07 '24 04:02 Jasonrobot00

Can you share more details of that?

punxaphil avatar Feb 07 '24 05:02 punxaphil

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

Jasonrobot00 avatar Feb 07 '24 20:02 Jasonrobot00

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?

punxaphil avatar Feb 07 '24 20:02 punxaphil

i did try the latest beta, but it was no help

Screenshot 2024-02-08 074739 Screenshot 2024-02-08 074817

Jasonrobot00 avatar Feb 07 '24 20:02 Jasonrobot00

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?

punxaphil avatar Feb 07 '24 20:02 punxaphil

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; }

Jasonrobot00 avatar Feb 07 '24 23:02 Jasonrobot00

That did not come across nicely, so here is a screen shot that should make it easier to read

Screenshot 2024-02-08 103447

Jasonrobot00 avatar Feb 07 '24 23:02 Jasonrobot00

I went back into inspect and found this too Screenshot 2024-02-08 105456 Screenshot 2024-02-08 105524

Jasonrobot00 avatar Feb 07 '24 23:02 Jasonrobot00

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

punxaphil avatar Feb 08 '24 06:02 punxaphil

Same result for each entity, Custom element doesn't exist

Jasonrobot00 avatar Feb 08 '24 20:02 Jasonrobot00

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

punxaphil avatar Feb 10 '24 10:02 punxaphil

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

image

Jasonrobot00 avatar Feb 11 '24 19:02 Jasonrobot00

Sonos_volume, is that a real Sonos device?

punxaphil avatar Feb 11 '24 20:02 punxaphil

yes

Jasonrobot00 avatar Feb 11 '24 20:02 Jasonrobot00

Please share much more of the repetitive console logs

punxaphil avatar Feb 11 '24 20:02 punxaphil

image image image image

Jasonrobot00 avatar Feb 11 '24 22:02 Jasonrobot00

image This was in sources too

Jasonrobot00 avatar Feb 11 '24 22:02 Jasonrobot00

On the error you posted earlier, please click here and show a screenshot of where it takes you image

punxaphil avatar Feb 12 '24 06:02 punxaphil

image

Jasonrobot00 avatar Feb 15 '24 00:02 Jasonrobot00

clicked on this image

also saw this

image

Jasonrobot00 avatar Feb 15 '24 00:02 Jasonrobot00

not sure if this has anything to do with you too

image

Jasonrobot00 avatar Feb 15 '24 00:02 Jasonrobot00

I'm afraid none of what you posted so far helps me understand what the issue is :-(

punxaphil avatar Feb 17 '24 14:02 punxaphil

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

Jasonrobot00 avatar Feb 20 '24 03:02 Jasonrobot00

Sure, send me a private message on https://community.home-assistant.io/ to PunxsutawneyPhil

punxaphil avatar Feb 20 '24 05:02 punxaphil

is there anything new yet because of the problem with ios 12.5

frodo777 avatar Mar 04 '24 17:03 frodo777