custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

No longer works inside Layout-card #71

Closed codeclinic closed 4 years ago

codeclinic commented 4 years ago

I’m running HASSIO and everything was fine until a couple of updates ago. Since then all my bar-cards have stopped being displayed. Now I just get the big red box of doom saying;

Custom element doesn’t exist: bar-card

I’m using the custom:layout-card by Thomas Lovren. Bar cards displayed outside of this appear to work fine.

Any ideas what’s wrong & how to fix it?

Thanks.

Gluwc commented 4 years ago

I'm unable to reproduce this and I'm running the latest version of layout-card and bar-card. Maybe you don't have the resource loaded as a module? Otherwise I don't really have a clue.

codeclinic commented 4 years ago

It would appear that the problem is actually when using the bar-card inside custom:vertical-stack-in-card.

Theres another person on the HA forum confirming the same thing: https://community.home-assistant.io/t/lovelace-bar-card/87503/503

Gluwc commented 4 years ago

This is probably more an issue with vertical-stack-in-card. As far as I know that card is no longer being maintained and has been replaced by stack-in-card.

codeclinic commented 4 years ago

Ok, I'll take a look at that.

Thanks.

Gluwc commented 4 years ago

Could you post your config, I'm still unable to reproduce this.

volpmatt commented 4 years ago

I'm getting the red box error with Custom element doesn’t exist: bar-card wherever I put the card in my config. It doesn't seem to be related to any layout or stack card. Config hasn't changed since updating to 0.109.

codeclinic commented 4 years ago

@volpmatt Have you made sure that both bar-card & card-tools are set as module type rather than js ? I made that change and bar-card now seems to be working.

drthanwho commented 4 years ago

@volpmatt Have you made sure that both bar-card & card-tools are set as module type rather than js ? I made that change and bar-card now seems to be working.

This fixed it for me