Lovelace: Decluttering Card

Does it work w/o decluttering card?

No, you are right!

Not a problem with decluttering card, maybe something with browser_mod…

Good. Now try to simplify you browser-mod code as much as possible for testing.

But I think, it is already simple.
Now probably you should go to the huge browser mod thread with this simplified code & ask there.

p.s. I am not using browser-mod myself, cannot help(

1 Like

Thanks! You are right, and that’s the way.

1 Like

Just to let you know, and although I don’t have an explanation, if I replace all normal button cards with custom:button-card it works:

image

:person_shrugging:

No. This is not good. You need to find out with a standard component. Probably the error is still there.

1 Like

You are right, it surelly is somewhere, but in fact, all my other popup cards, with complex remotes, are done using custom:button-card, that was the only difference that I spotted. Trying to simplify led me to this… If I manage to find the error I will report back.

1 Like

Hi All,
just started looking into decluttering templates, but even after consulting thils whole chain I didn’t manage to get the simplies thing to work:
Resources:
a
configuration.yaml
b
templates.yaml
c
use:

Could you please enlighten me, what I’m doing wrong?

You placed decluttering templates into a file which supposed to have template sensors.
Read Docs in repo.

Thanks.

I created a Test tab with a decluttering button card:

Still getting the following:
image

Any idea?
Thanks

Templates are defined per dashboard, not per view.

okay: moved to the top of dashboard in the raw config. Now I got this:
image

It shows you the exact error. Compare with an actual name of the card.

Thanks Ildar for your time.
Being a beginner, and in 3 days I didn’t find a normal, simple sample/description on the usage, I’ll abandon it, will manage the dashboard without templates.

Never give up, never surrender)
If you are using a storage-mode-dashboard - open “raw yaml configuration” & paste your templates there:
image

thanks Ildar.

I did this:

I wanted to replace the green highlighted card (which is working) with calling the template.
And it says:

where is the mistake?

hyphen -

custom:button-card

tried :frowning:
image

Have you tried what? You still have an error, it’s not custom:button_card but custom:button-card

yep. You are right, my mistake… Unfortunately I took the hypen to be put before type.
Thanks for your kind support!