AalianKhan / mushroom-strategy

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

Greeting is not hidden when disabled in homeView options #82

Closed gottsman closed 6 months ago

gottsman commented 9 months ago

Describe the bug
I have tried to disable the greeting message at the top of the interface. Adding the hidden option seems to have no affect on visibility.

Versions

To Reproduce
Here is my current config:

strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - Greeting
    chips:
      climate_count: false
      cover_count: false
views: []

Expected behavior
Expected to see a simpler interface without the greeting message

Screenshots
minimalist greeting

Additional context
Add any other context about the problem here.

DigiLive commented 9 months ago

The entries are case sensitive. Please try them without any capitals.

gottsman commented 9 months ago

I tried the example from the README.md file located at Aalian's repo: https://github.com/AalianKhan/mushroom-strategy#home-view-options

Even this example is not working for me - direct copy/paste

strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - greeting
        - areasTitle
views: []
DigiLive commented 9 months ago

Ok, thanks. I will look into it.

DigiLive commented 9 months ago

Version 1.0.1 doesn't include this feature.

It seems HACS shows the readme of the latest commit instead of the released one.

If you want to use this feature, you'll have to copy the latest .js file in the dist directory to your Home Assistant instance manually.

(Remember to remove the compressed file and to refresh your client's cache)

I've reported the readme issue to HACS #3330

DigiLive commented 9 months ago

I've reported the problem of the readme to HACS. Also, a new release which includes this and some other features is coming soon.

In the meanwhile you could choose to download main at the HACS integration of your Home Assistant instance. (See https://hacs.xyz/docs/faq/select_version/)

afbeelding

@gottsman Please let me know if downloading the main version works out for you.

gottsman commented 9 months ago

Works as expected. The greeting is now hidden properly. Thanks for your quick response.

gottsman commented 9 months ago

Seems like I have broken something. After trying multiple installs/reinstalls, browsers and cache clearing, I am no longer able to get the example to work. Using the code "main" instead of 1.01.

Using the same example from above:

strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - greeting
        - areasTitle
views: []
DigiLive commented 9 months ago

It seems like HACS doesn't always download the requested version. You can verify the downloaded version in the upper-left corner: afbeelding

You can keep trying to re-download or manually copy the attached file to /homeassistant/www/community/mushroom-strategy of your HASS instance. Also extract its contents to the same directory and clear the cache.

mushroom-strategy.js.gz (6,547 bytes)

I've reported the issue to HACS #3345

gottsman commented 9 months ago

Thanks. Its fixed again with the attached file. I will follow the HACS issue report.

derekpurdy commented 6 months ago

I assume this should be working with 2.0 that was just released? I still cannot get the greeting to hide.

strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - greeting
views: []
clowgg commented 6 months ago

I assume this should be working with 2.0 that was just released? I still cannot get the greeting to hide.

strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - greeting
views: []

Same here. Greeting doesn't hide, and the areas customisations don't work either. (partial yaml file shown)

strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      front_of_home_id:
        name: Front of Home
        icon: mdi:home
        icon_color: green
        order: 1
      entrance_id:
        name: Entrance
        icon: mdi:home-lightbulb
        icon_color: lime
        order: 2
DigiLive commented 6 months ago

The Wiki didn't include the changes of the home view option during development.

It should be home_view instead of homeView:

strategy:
  type: custom:mushroom-strategy
  options:
    home_view:
      hidden:
        - greeting
views: []
DigiLive commented 6 months ago

Same here. Greeting doesn't hide, and the areas customisations don't work either.

To customize areas, you'll need to provide the id which is given to an area by home assistant. Change front_of_home_id to the actual id.

derekpurdy commented 6 months ago
strategy:
  type: custom:mushroom-strategy
  options:
    home_view:
      hidden:
        - greeting
views: []

unfortunately this did not work either.

clowgg commented 6 months ago

Same here. Greeting doesn't hide, and the areas customisations don't work either.

To customize areas, you'll need to provide the id which is given to an area by home assistant. Change front_of_home_id to the actual id.

Is this the Area ID that you mean?

image

DigiLive commented 6 months ago

Is this the Area ID that you mean?

Yes. But this is off-topic for this issue. Please continue in discussions or open another issue.

DigiLive commented 6 months ago

119 Created for v2.0.0