Erm…no : to be honest I dont have a theme yet. I just want to have the background loaded. I also can’t find a file or folder which is suggesting it contain themes
First, create a themes.yaml file in your config directory and put your theme code in there. You can do a search in the forum for many different themes.
I don’t use a background yet but I think you can just use a background in lovelace by explicitly defining a path to the image. What you did in your first post was define a background image by referencing a variable which you would normally define in a theme.
since you don’t use themes then you need to tell it where the file is. try using @petro’s config but use your own file name/location
title: Home
views:
- background: center / cover no-repeat url("/local/images/background.jpg") fixed
Hmmm… no success. I have a www folder in my config folder. On it an image called dark.jpg. I put this into the Lovelace editor (screenshot because c’n’p is not working on iOS)
If you want it on all views. PLace it outside all the views:
In the example blow, I placed my file in this dirctory /config/www/images/ with the filename background.jpg. Making a full directory path /config/www/images/background.jpg. When referencing the file inside lovelace.yaml or the GUI lovelace, you will use /local/images/background.jpg.
background: center / cover no-repeat url("/local/images/background.jpg") fixed
views:
etc..
… a just in case type of suggestion ( I apologize if it seems super obvious but you never know…). Are you refreshing the page after you make the changes? Lovelace seems to get “stuck” until you force a refresh.
Under HA I originally added a background and got an error message about permissions. Set the permission on the background file to homeassistant and it worked.