Never ever )))
But a possibility of using a “config” object is mentioned in Docs - and “config.entity” is just a LITTLE example. Moreover, you can add OWN vars.
@sebbaT Thank you so much. I succeeded to make it work! It took me a while because I have no experience with styles and I saw that “style:” and “style: |” are different. In addition I use custom button card with templates… This is my final code, just in case anybody would like to use it… The code disables a cover slider-entity-row if the current_position is outside the limits, because it hasn’t been calibrated:
Could someone here help me figure out why the below (trying to use a background photo) doesn’t seem to be working?
Below is my lovelace code and below that is a screenshot. It just seems to be changing the background to black- I imagine because ha can’t find the image.
I have placed the image inside of ha by uploading on the media page under my media and images.
I don’t really understand how to find the true image path when I have uploaded an image in this manner. But I assumed it was this:
I have had issues with photo related things in the past (when a file path was involved). It could be duckdns related. The only time I have gotten photo related things with path to work was by using smb and connecting to pi file system from windows and placing files that way. – I was on home network when doing this also.
I will see if I have the same issue when on home network tonight.
Thank you for the ideas of things to look at.
I did not have a folder within www called “images” based on looking at the explorer inside of studio code server. But I created it.
I am now using the url below:
'/local/images/goodnight-moon.jpg'
Is this the same as config/www/images/goodnight-moon.jpg? or do I need to change my css to reference that location?
Thanks Marius. That has worked around the entities themselves. I’ve tried a few options (.title .heading .ha-card etc) to reduce the spacing and margins around the heading but they haven’t worked. There is a lot of white space around the heading.