room-card: Error: "Custom element doesn't exist" on builtin cards

Describe the bug There seems to be an issue with embedding builtin cards

To Reproduce Steps to reproduce the behavior:

  1. Create a custom:room-card
  2. Add a sub-card using any builtin card (ex: picture-glance)
  3. Click on ‘save’
  4. Reload the page
  5. See error

Example YAML:

type: custom:room-card
title: Kitchen
cards:
  - camera_view: live
    type: picture-glance
    title: Kitchen
    image: https://demo.home-assistant.io/stub_config/kitchen.png
    entities:
      - entity: sensor.uptime

Expected behavior Custom room card should be visible with builtin card

Screenshots image

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox
  • Version: 105.0.1

Additional context Looks like this may be related to #64

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 72 (36 by maintainers)

Most upvoted comments

Note to self : This might be the solution

customElements.whenDefined(cardConfig.type).then(() => { clearTimeout(timer); fireEvent(element, “ll-rebuild”, {}, element); });

After Home Assistant 2023.4 I’m constantly having this issue. Problem is in nested cards, e.g. cards inside room-card. image

Please let me know if any yaml codes from dashboard would help you with debugging the problem. Thanks.

I also tested version 1.08.00 and can not reproduce the problems anymore. Tested with mobile browser, android app and latest chrome browser.

Thanks, now I can finally use my new dashboard.

Works for me across several devices so far

Seem to do the trick, have used it on multiple devices all work in one time now 😃

No errors are shown on the front-end on companion app for Android. Some cards are not shown. Will try to debug in the following days and report as much info as I can get.

V V pet., 30. jun. 2023 ob 08:42 je oseba Marco Kreeft < @.***> napisala:

@elninosi https://github.com/elninosi I’ve made a new release, can you try now?

— Reply to this email directly, view it on GitHub https://github.com/marcokreeft87/room-card/issues/104#issuecomment-1614202040, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACURVVFIEJ54RGCG32W2FV3XNZYNTANCNFSM6AAAAAARLGKLFY . You are receiving this because you were mentioned.Message ID: @.***>

In app, still same problem. If i change webviewer on android to chrome it works

Ah ok. I think this will help. It gives me a direction to search for at least. Thanks for trying multiple configurations

ORLY? I can’t be arsed. 😃