damianeickhoff / HaCasa

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

Config.Yaml Code doesn´t work! #19

Closed fanqyxl closed 1 month ago

fanqyxl commented 6 months 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 6 months 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 5 months 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 5 months 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 5 months 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"

hAMMERlized commented 4 months ago

Can confirm, issue is still available. Changing to "mini-hass" fixed the problem.

gshel commented 3 months ago
lovelace:
  mode: "storage"
  resources:
    - url: "/hacsfiles/button-card/button-card.js"
      type: "module"
    - url: "/hacsfiles/my-cards/my-cards.js"
      type: "module"
    - url: "/hacsfiles/kiosk-mode/kiosk-mode.js"
      type: module
  dashboards:
    mini-hass: # Change this line from `HaCasa` -> `mini-hass`
      mode: "yaml"
      title: HaCasa
      icon: mdi:script
      show_in_sidebar: true
      filename: "dashboard/HaCasa/main.yaml"
damianeickhoff commented 1 month ago

So I made a small mistake, because mini-hass is wrong. The name works because it has a hyphen which I guess is mandatory since some HA version. So you could change it to hacasa-dashboard but mini-hass will still work. I've updated the docs.