Hello all,
I’ve done extensive research before posting here, I know there are already similar topics, but nothing seems to work for me.
The Theme selector is greyed out in Profile. I enabled frontend in configuration.yaml.
The themes folder is there in the Home Assistant directory and contains the yaml files for each theme.
I installed a couple of themes using Hacs, but when I check the Home Assistant logs I find the following: WARNING (MainThread) [homeassistant.components.frontend] Theme Dark & Green is not defined.
A while ago it all used to be working, I can’t really remember when it just stopped, I noticed it a few days ago.
I tried removing and re-adding the frontend component, deleting the themes folder and recreating it, uninstalling the themes from Hacs and reinstalling them, I’ve watched every video I found available and read all similar forum posts, just cannot get it to enable again.
I would appreciate any idea any of you might have that could help me regain the ability to set themes.
Sean, thanks for the input. The / after themes was added after seeing it on another thread, I had it without before. Anyway, I changed it back and checked that the indentation was correct on the second line (two spaces).
I restarted home assistant and called the frontend.reload_themes service. Nothing happened, and in Profile it is still showing greyed out.
It is really weird, as I said, I tried completely removing the configuration, the folder, everything related to themes and then adding it back one by one. Still cannot select themes.
OK, my own stupidity here, was just too blind to see it. I’ve been fighting this for the last couple of days.
After checking configuration.yaml again I discovered that I had the frontend component declared twice, once for themes and further down for the floorplan. This must have somehow disabled the themes although the configuration check did not flag it out. Once I got rid of one and added the remaining configuration to the other one and restarted HA, my themes appeared again.
Thanks for your responses guys.