Resources in lovelace and hass.io

i have a problem with an hass.io install on armbian on an orangepi zero.

all is running fine but when i change the lovelace config from yaml file to web gui editor the loveloace config losses the resources section.

when i enter my resources section in the raw editor:

resources:
  - type: js
    url: /local/kiosk.js
  - type: module
    url: /local/custom/simple-thermostat.js?v=1
  - type: js
    url: /local/custom-lovelace/compact-custom-header/compact-custom-header.js?v0

and save it the resources section is not saved.
all other text is saved.
when i open the raw editor again the resources section is gone.

can anybody help?

1 Like

There’s a problem in 0.85 with the raw editor.

Same problem here.
Pretty anoying because I can’t use the frontend now.
Are the resources moved? or is there a fix needed?

0.85.1 fixes it

I now have out the resources section directly in the lovelace file und er storage.
Normal gui Edit is ok now

I have updated to 0.85.1 but the raw config editor still won’t save my resources

UPDATE: I actually just figured out the problem so I figured I’d post it here in case anyone else runs into the problem.
I never used Lovelace before this release so I never had a ui-lovelace.yaml file. I was using the auto-generate function and for some reason when I would try to add a resources section to the raw config it would not save no matter how many times I tried.
I got it to work by copying what was in the raw config editor already and then deleting the lovelace file from the .storage directory. then restarted HA but instead of auto-generating a new file I pasted the contents from the original raw config to the new raw config and it finally saved.

Finally I can use custom cards!

I have also update 0.85.1 but the problem is still there.
I did the same procedure that you did. The first time it worked but I needed to change something in the config and then the resources are deleted again.
I removed the lovelace file in the storage folder but when I did the same trick it is not working anymore.

does not work here.
the raw editor is now saving the resources section.
but the following code is not used and my thermostat is not shown:

- type: module
  url: /local/custom/simple-thermostat.js?v=1

Have you tried it with path in the readme?
Some custom cards have hardcoded paths and only work if the js is in the right folder.