Themes not loading -fixed-

Hi, I have been riddled for days why my themes weren’t loading that I downloaded from HACS, theme selector was greyed out saying that there were no themes available. I checked everything, there was a themes folder, it was declared in the configuration to !include_dir_merge_named themes. I triple checked the YAML indentation, logs didn’t point me to where my mistake could be. But today I found out what stupid (rookie) mistake I had made and would like to share that with all of you. So for one, ya’ll can get a good laugh and two, perhaps it’ll help someone else running into the same problem.

Apparently I had “frontend” declared twice in my configuration.yaml and then it only loads the latter. I WAS NOT AWARE.

Later on in the config I had loaded a Phillips HUE icon set, which told me to add to my config:

frontend:
  extra_module_url:
    - /hacsfiles/hass-hue-icons/hass-hue-icons.js

Which I did and unknowingly broke my first declaration. So for anyone finding this topic on your search for a (similar) problem. Add anything frontend related under the frontend declaration you already have like so:

frontend:
  themes: !include_dir_merge_named themes
  extra_module_url:
    - /hacsfiles/hass-hue-icons/hass-hue-icons.js

Thank you, have a good day.

2 Likes

Thanks. I’m brand new to HA and was having the greyed out theme button, but I had done what you had done and had 2 frontends. Your fix worked.