Hello guys,
I’m very new to HA.
And I tried to replicate some advanced dashboards that I saw online, on Git and YouTube. Easyyyy I thought
I reached a problem that I have been searching online and in the forum for a resolution, even in the documentation, but I still didn’t find out what is going wrong.
button_card_templates:
... add templates here
light_switch:
...
...
views:
...
Just for testing, I merely added the posted code as a CARD (not a template), i.e. like
type: custom:button-card
entity: light.balcony_ceiling
variables:
... and so on
and it somehow works (no idea how since you posted a huge & complicated code - please next time avoid doing that, always MINIMIZE a code before posting, and also there is a high probability that you will fix the issue by yourself while minimizing).
No error on a screen, no errors in browser console.
Double check it. Templates should be before the “views” option.
I am not asking you to post a large code of your dashboard here, this is up to you to sort out…
Templates should also work on sections. There is something I need to configure or something I’m missing, but I just don’t know what it is. I’m asking here for ideas. I know the code is working for sure; I’ve tested everything. The template code works for me on the button itself:
Sorry if I offended you))) That was not my intention.
Asked you about that since you posted a screenshot w/o the error.
So I am confused what your status is.
Arrrr, I see, you pasted a whole template code - and it works. Now I got it.
So, next question - are you sure that you pasted your templates into SAME dashboard?
Will put everything i’ve done here in case somebody gets the same error in the future.
-Removed all my YAML dashboards
-Removed all commented code from the configuration.yaml (we never know )
-Developer tools → check configuration → restart
-Unninstalled button-card and install again
-Hard Refresh on Chrome
But the reason become unknown((
Usually, when a person creates a thread with a problem, it is supposed to be solved, and a post containing a solution is marked as a “solution”, and here we have nothing to mark as a “solution”…
OK. Consider this as a hard learning curve))) Next time will be easier.