CSS file as a Lovelace Resource

I’ve added /config/www/css/my.css as a resource for Lovelace but I cannot get it to load and make changes to the frontend. What am I doing wrong?

1 Like

This is not my area of expertise, but I’ll try to help.

  1. Need a resource.yaml file (or something like it) that points to my.css, with type: css. Note: should use /local instead of /config/www/
  - url: /local/css/my.css
    type: css
  1. Need configuration.yaml to point to this resource file
lovelace:
  mode: yaml
  resources: #starting 0.107 resources go here.
    !include resources.yaml

Reboot HA, and afterwards, refresh the browser.

Hope this helps :slight_smile:

1 Like

Isn’t this basically what the OP did?

Adding resources straight to configuration.yaml vs. including a resource.yaml to configuration.yaml look the same to me

1 Like

did you find any solution?

up, same problem