I think this might be the wrong section of the forum for this kind of question, but itâs up to the mods to decide.
You can create your lovelace yaml files in your config folder, where your configuration.yaml file is. From here, have a look at the doc and use the default examples to begin with.
Two things :
Using lovelace in yaml mode is fine, but Iâd suggest starting with storage in order to retain UIâs editability within HAâs web interface. This could help you better understand whatâs going on.
You seem to have added your button card manually. have a look at HACS, itâll make your life easier.
It looks like those installation docs are pretty poorly written.
I assume you are using ui mode for lovelace (since you donât already have a ui-lovelace.yaml file).
So, once you add the file above to the âconfig/www/â folder then go to the âconfiguration->lovelace dashboardsâ section of HA from the left side menu.
Then select âresourcesâ tab.
Then click âadd resourceâ in the bottom left.
then add the file local where you put the js file above.
if you put it in âconfig/wwwâ then you will write that as â/local/â
so you should end up with something like:
/local/button-card.js
But the advice to install and run HACS is highly recommended since it will do all of the installation stuff for you.