New Lovelace editor - what about custom cards?

Hi there,

I cannot seem to figure out how to use “custom cards” from 3. parties, with the new Lovelace editor.

A custom card need an “include” on the top of the page, but I cannot figure out how to do this when using the editor only version (earlier i did it via yaml mode and my own lovelace-ui.yaml script)

Any help is much appreciated!

When you enable the editor in Lovelace then you can enable the Raw Config Editor. (It is now in place of the “Config UI”.

Yes, I am aware of that - but the raw editor is for the “card” right ?

Includes needs to be added on the page at the top, at least that is how it was in my yaml file ?

Can you include the support code for a custom card, directly on the card ?

Do you have an example ?

No, the raw editor is the complete Lovelace setup. Place the custom cards at the top of that text file. It is not the button “toggle editor” btw. It is at the right top of the page.

2 Likes

Yeah, had not seen that one - its absolutely perfect and I can now edit as I have done until now.

OMG, this HA just gets better and better for each update.

Thanks alot for the quick help on this one!

2 Likes