Dear community:
I have spent some hours to migrate my main dashboard from storage mode to YAML mode, and after migration all custom cards installed via HACS stops working. Reading the manual I have added them to configuration like below and now everything works again:
frontend:
themes: !include_dir_merge_named themes
extra_module_url:
- /hacsfiles/lovelace-card-mod/card-mod.js?hacstag=190927524345
lovelace:
mode: yaml
resources:
- url: /hacsfiles/apexcharts-card/apexcharts-card.js
type: module
- url: /hacsfiles/Bubble-Card/bubble-card.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/charger-card/charger-card.js
type: module
- url: /hacsfiles/config-template-card/config-template-card.js
type: module
- url: /hacsfiles/lovelace-hui-element/hui-element.js
type: module
- url: /hacsfiles/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js
type: module
I have 2 naive questions hope somebody can help me:
- Notice some js can be either added to frontend/extra_module_url or as module under lovelace/resources, what are the differences between the two methods and which one is preferred approach?
- When I update custom card via HACS, do I need to make changes to path manually afterwards?
Many thanks for your input!