Ive been digging since yesterday on yaml and i have a test card that im doing, simple, before doing anything more confusing or even trying.
So, i have card-mod and button-card installed (or so i think, you’ll get why in a sec).
And i pick a manual card so i have total freedom to install my code on the dashboard:
type: custom:button-card
entity: sensor.test_sensor
name: "test"
state: "1234"
show_name: true
show_state: true
styles:
card:
- padding: 2px
- background-color: white
icon:
- color: red
- width: 50px
- height: 50px
name:
- color: blue
state:
- color: green
icon: "mdi:home" # PNG check for later! It should work.......... i think
After which i have this lovely message:
So yeah, i go back and i recheck the plugins, and yaml
Probably in some outdated youtube video… I know its a bad habit to look on YT, but the view part of something working after they do it, its well easy to fool me.
ui-lovelace-card.yaml - where is this? i cant locate it anywhere ? (when i eventually find the above yaml, i assume the “title: Home” is the name of the dashboard whenre i wanna pull the resources into? - so on every new dashboard i would have to write it down as: title: home title: home2 title: xyz Etc ? -------
Also, this one: ui-lovelace.yaml Cant locate it anywhere ??
What is this ‘www / community’: is community a subfolder from www?
Adding a custom button can be done manually by downloading it and putting in the right folder.
Then, you have to reference to it in your resourses in Settings → Dashboards → upper right corner (3 dots) Resources
Whatever way you use - splitted or not - it has to be correct.
Maybe read the doc about splitted configuration.
There are of course advantages to split up.
If the file is in the right place, correctly referenced, it should work.
I also use some custom cards, including this button card.
So i did the reading, plus config reload, creation of non existing files, reload again, same error.
Im removing all lovelace related configs and items, and im willing to start from the begining, can someone guide me please on a step by step? because clearly on my own im not start enough to do it.
Starting point as of now is, i ONLY have mushroom cards active and working, nothing else.
Ok so here we go for another round in the park.
Steps i taken this (4th) time:
Download file “button-card.js” from: Release v4.1.2 · custom-cards/button-card · GitHub ;
Create a folder for the button-card ;
Go to Studio Code Server, and put the previously downloaded file in the folder (including downloaded all scr code files as .gz and left them into the same folder) ;
I tried all the options… all the possible paths (in folder) and out of it - added the rss in the dashboard, restarted HA, cleaned cache also
Always the same error - is there anyway i could put the HA as a single config file? instead of splitted configuration?