I opened the .js file and hardcoded the background color of my theme. Sure, I could put a var there, but I cannot find what variable is the background from the theme.yaml file. Adding the color in the format #07090e to span worked for me.
to themes yaml but it does not read it. It shows that variable with a different value. Not a programmer but why tracing back the inheritence using developer tools does not backwards influence the css? What are we missing?
I have a setup which uses the markdown card and lovelace_gen to do the title with divider line and allow the background to be transparent so anything behind shows through. I’m not a code expert so I’m not sure if this is the best way, but it works pretty well for my setup.
I use lovelace_gen so all I have to do is something like:
I am trying to load t he headers.yaml in configuration.yaml and went to two different errors:
view is not found as an intergration (following the docs for the lovelace_gen, in which the author shows that the yaml files should be called in configuration.yaml)
the 36th row content: {{ content }} returns error when I am checking the configuration before restart
Sorry, but I am not able to make it work. !include is still not recognized.
What I did:
followed instructions how to install lovelace_gen
added lovelace_gen to the configuration.yaml
I created headers.yaml in …config/www/template/headers.yaml with your code to use the relative path you have in your card code (please confirm this relative path is correct)
Then I create a card but as I said, !include is unknown.
Lovelace_gen… Guys, I repeat - what do you want to achieve? A transparent background or something? This may be easily done by card-mod. I already proposed it a couple of days ago, nobody reacted, not going to insist.
Cant figure out how to change the background color to the theme background color. Been looking at it for hours. It always defaults back to the card color, but I’m using it as a standalone without a ‘card’, so i want it to be the default theme background color. I tried changing the .js but any changes i make don’t seem to take effect no matter what i reload or restart.
If you make changes directly to .js file, first rename associated.js.gz file to something else. Seems original component is restored during restart from this file. If file name does not match component name changed files used. I’m not sure if this is exact logic, but worked fine for me when I was experimenting with this component.