damianeickhoff / HaCasa

Custom theme and cards for Home Assistant
https://damianeickhoff.github.io/HaCasa/
MIT License
56 stars 6 forks source link

Config.Yaml Code doesn´t work! #19

Open fanqyxl opened 1 month ago

fanqyxl commented 1 month ago

So I am going through the config.yaml documentation and I am pasting this:

`lovelace: mode: "storage" resources:

But I get this error:

Configuration errors Invalid config for 'lovelace' at configuration.yaml, line 26: Url path needs to contain a hyphen (-) for dictionary value 'lovelace->dashboards', got {'HaCasa': {'mode': 'yaml', 'title': 'HaCasa', 'icon': 'mdi:script', 'show_in_sidebar': True, 'filename': 'dashboard/HaCasa/main.yaml'}}

I am pasting as is with no changes.

Help?

damianeickhoff commented 1 month ago

Make sure it looks like this:

lovelace:
  mode: "storage"
  resources:
    - url: "/hacsfiles/button-card/button-card.js"
      type: "module"
    - url: "/hacsfiles/my-cards/my-cards.js"
      type: "module"
    - url: "/hacsfiles/Bubble-Card/bubble-card.js"
      type: "module"
    - url:  "/hacsfiles/mini-graph-card/mini-graph-card-bundle.js"
      type: "module"
    - url:  "/hacsfiles/lovelace-mushroom/mushroom.js"
      type: "module"
    - url: "/hacsfiles/kiosk-mode/kiosk-mode.js"
      type: module
    - url: "/hacsfiles/decluttering-card/decluttering-card.js"
      type: module
    - url: "https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900"
      type: css
  dashboards:
    mini-hass:
      mode: "yaml"
      title: HaCasa
      icon: fapro:house
      show_in_sidebar: true
      filename: "dashboard/HaCasa/main.yaml"
mariosemes commented 6 days ago

I can confirm the same issue but this fixed it: Changing the original dashboard name frome HaCasa: to mini-hass:

Now configuration is checked successfully

damianeickhoff commented 3 days ago

@mariosemes that is weird! I was almost certain I changed it all to HaCasa. Can you tell me where you changed this exactly?

BerrisNO commented 1 day ago

I had the same issue, but changed the name in configuration.yaml:

dashboards: mini-hass: mode: "yaml" title: HaCasa icon: fapro:house show_in_sidebar: true filename: "dashboard/HaCasa/main.yaml"