Hi all. I’m trying to add a static jpg to all dashboards, but I’m coming up empty-handed. I’ve googled and youtube’d, but none of the suggestions I’ve come across seem to work. Most of the posts tell you to add this to configuration.yaml:
background: center / cover no-repeat url("/local/images/pic.jpg") fixed
I created a /www/images folder and dropped the file there. In reading directions, the www folder redirects to /local. So in my case, it’s /local/images/pic.jpg. But, no matter how I code it (with both single and double quotes), HA complains that ‘background’ isn’t valid and it prevents be from rebooting. There has to be an easy way to do this, I just can’t figure it out.
Thanks for this. I got the code corrected in configuration.yaml, and after a restart, I see the theme name.
However, I lost the Metrology Purple theme I had previously and I don’t see the background image (bg is solid white). It also complained about the !include_dir_merge_named themes line I had. Is it possible to have the Metrology theme and add the jpg independently?
Thought that might be the case. I’ll do some sleuthing here then. Seems like this would be a good use case for separating theme and background image at the code level, possibly in a future release.
After reload/restart I can select the theme both, in person settings on a device or directly in one of the dashboards, but the background is not showing neither in web nor on my phone.
The url is correct as I tested it in a markdown card and the image is shown.
I was able to get this to work, but i think i have to sacrifice using my current theme that has a dark mode and also card shapings just to use my own preferred background. Thanks to all of the above into for providing somewhat of a pathway that i could stitch together and eventually get something to work… I agree that this is kind of BS. Applying your own background and still getting to use a theme should be a much easier thing to do…
What i was driving at was, why isn’t there just simply a place in the user settings that says ‘upload your background here’ and a user uploads a picture and that’s the background for all screens in HA…imo that would be a simpler thing to do for everyone…js
I agree, there is a push to make the GUI more user friendly. Just a heads up, you can always open a Feature Request. I didn’t check to see if there is already one open on this topic.
If you are the original requester don’t forget to vote for your own idea.