thomasloven / hass-lovelace_gen

🔹 Improve the lovelace yaml parser for Home Assistant
MIT License
221 stars 22 forks source link

setup with mixed storage and yaml modes #22

Open dkebler opened 3 years ago

dkebler commented 3 years ago

I've gone from strictly yaml mode to storage mode with additional dashboards (that in in yaml mode). What/where would be the way to set lovelace_gen in this case?

in configuration.yaml

lovelace:
  mode: storage
  dashboards: !include lovelace/dashboards.yaml

in lovelace/dashboards.yaml

lovelace-panel:
  mode: yaml
  title: Manual - Panel
  icon: mdi:script
  show_in_sidebar: false
  filename: lovelace/panel.yaml
lovelace-manual:
  mode: yaml
  title: Manual
  icon: mdi:script
  show_in_sidebar: false
  filename: lovelace/manual.yaml
dvbit commented 3 years ago

did you found out? Same situation here

foxleigh81 commented 2 years ago

I am in the same boat. I resolved it by adding lovelace_gen to configuration.yaml and then in each dashboards yaml file I had to put the # lovelace_gen comment at the top or it wouldn't work.

shbatm commented 2 years ago

lovelace_gen needs to be added to configuration.yaml or an included package file, it sets up just like any other integration.

Working fine for mixed mode for me.