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:
- Create a
custom:room-card - Add a sub-card using any builtin card (ex: picture-glance)
- Click on ‘save’
- Reload the page
- 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

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)
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.
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:
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. 😃