AalianKhan / mushroom-strategy

A strategy to automatically generate a dashboard using mushroom cards
MIT License
371 stars 37 forks source link

Which file to edit to change icons here? #30

Closed kmanan closed 1 year ago

kmanan commented 1 year ago

IMG_6333

n00b question: which specific file do I edit to change icons here?

DigiLive commented 1 year ago

This is only possible since version 1.0.0-apha.1.

In the UI of the dashboard, click the 3 dots in the top right corner to edit the dashboard configuration.

strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      family_room_id:
        icon: mdi:sofa
views: []

Make sure family_room_id matches the id of your hass area.

kmanan commented 1 year ago

Interesting. It seems like i'm doing something basic wrong. I have updated the file to this but keep getting this error

 strategy:
   type: custom:mushroom-strategy
   options:
     areas:
       living_room_id:
         name: Living Room
         icon: mdi:sofa
 views: []

image

DigiLive commented 1 year ago

Please place your yaml configuration inside a code block when posting here. You can use the < > button for it. Without a proper format, I can't check for syntax errors in you configuration.

E.g.

strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      living_room_id:
        name: Living Room
        icon: mdi:sofa
views: []
kmanan commented 1 year ago

updated

DigiLive commented 1 year ago

There's still an extra space in front of each line, but I assume it's ok in your configuration.

I strongly doubt you're using version 1.0.0-apha.1. The error indicates, the code expects the "old" configuration format as in the current stable release (0.15)

If you are using the alpha release, I need the output of the browser's console. Usually you can open the console by pressing F12 and reload the page.

Also, make sure you've cleared the cached version.

kmanan commented 1 year ago

Yes, still on the stable build

DigiLive commented 1 year ago

Like I said, currently you'll have to use the pre release to be able to change the icon and such.

See https://github.com/AalianKhan/mushroom-strategy/releases/tag/1.0.0-alpha.1