V2G-liberty / addon-v2g-liberty

A HomeAssistant-based app to optimize and automate charging of your EV. Optimisation is based on FlexMeasures schedules.
Apache License 2.0
1 stars 2 forks source link

Lovelace resource issues #40

Open johannesdeboer opened 1 week ago

johannesdeboer commented 1 week ago

Loading lovelace: in v2g_liberty_package.yaml disables Dashboard Resources in Home Assistant.

By loading lovelace: here, other HACS (frontend) integrations stop working, since you cannot load resources via UI & Yaml simultaneously in HA.

ArdJonker commented 6 days ago

Hmm, I indeed did not test this. How have you fixed it now? Removed the resources from the package and added them via HACS? What would be your ideal solution?

johannesdeboer commented 6 days ago

I tried removing the resources, but it didn't help. It seems as long as

lovelace:
  mode: yaml

is mentioned somewhere in the configuration, the resources from the Dashboard > Resources pane are skipped completely.

I found a threat in the HA community that helped.

I changed

lovelace:
  mode: yaml

to

lovelace:
  mode: storage

in packages/v2g_liberty/v2g_liberty_package.yaml

It does the trick for now. I'll restart HA a few times to see if it keeps working.