piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.33k stars 316 forks source link

[Bug]: button sometime disappearing after 2024.7 update #1462

Open Shiroe93 opened 2 weeks ago

Shiroe93 commented 2 weeks ago

Requirements

Current Behavior

immagine

Expected Behavior

immagine

Steps To Reproduce

no idea it happens randomly and it's fixed by a refresh

Context

YAML state

type: custom:vertical-stack-in-card
cards:
  - type: custom:mushroom-template-card
    primary: Shiroe-PC
    icon: mdi:desktop-tower
    entity: switch.shiroe_pc
    fill_container: true
    layout: vertical
    tap_action:
      action: call-service
      service: switch.turn_on
      target:
        entity_id: switch.shiroe_pc
    icon_color: '{{ ''brown'' if states(entity) == ''on'' else ''disabled''}}'
    double_tap_action:
      action: none
    secondary: ''
    badge_icon: ''
    picture: ''
    hold_action:
      action: navigate
      navigation_path: '#pcremote'
    card_mod:
      style: |
        ha-card {
          --icon-size: 45px;
            }
  - type: custom:mushroom-chips-card
    chips:
      - type: template
        entity: switch.switchbot_pc
        content_info: none
        icon_color: '{{ ''yellow'' if states(''switch.shiroe_pc'') == ''off'' else ''disabled''}}'
        icon: mdi:shield-link-variant
        tap_action:
          action: toggle
    alignment: center

Environment

- Browser: home assistant app 
- HA Version: 2024.7.1
- Mushroom: 3.6.2

Anything else?

No response

piitaya commented 2 weeks ago

Are you able to reproduce it without vertical-stack-in-card card? It looks like it's the same as https://github.com/ofekashery/vertical-stack-in-card/issues/160

Shiroe93 commented 2 weeks ago

i have another almost identical card beside this one that does not have ani issue immagine `type: custom:vertical-stack-in-card cards:

kitprice commented 2 weeks ago

Are you able to reproduce it without vertical-stack-in-card card? It looks like it's the same as ofekashery/vertical-stack-in-card#160

This may be related to view type when set to Vertical. I had the same issue, but changed view type back to Masonry and it resolved the problem.

Shiroe93 commented 2 weeks ago

what do you mean by view type?

kitprice commented 2 weeks ago

what do you mean by view type?

I have layout-card installed, which adds a few new options for Views. I was using the Vertical view for consistency between desktop and mobile, but switched back to Masonry and my chips reappeared on my cards.

NOTE: I am also using vertical-stack-in-card, but switching back to Masonry resolved the problem for me.

Shiroe93 commented 2 weeks ago

I have the one panel option activated in the layout card but even if that's the case it does not explain why only for the pc card and why only on 2024.7 (I'm sure it wasn't a problem before because i look at this dashboard 6-8 hours every single day)

WarC0zes commented 1 week ago

what do you mean by view type?

I have layout-card installed, which adds a few new options for Views. I was using the Vertical view for consistency between desktop and mobile, but switched back to Masonry and my chips reappeared on my cards.

NOTE: I am also using vertical-stack-in-card, but switching back to Masonry resolved the problem for me.

Hi, I was using vertical layout-card for my view and I no longer have the chips showing up. As you say, by changing to mansonry, the chips appear well. Could it be a vertical layout-card problem then?

tempus2016 commented 1 week ago

what do you mean by view type?

I have layout-card installed, which adds a few new options for Views. I was using the Vertical view for consistency between desktop and mobile, but switched back to Masonry and my chips reappeared on my cards.

NOTE: I am also using vertical-stack-in-card, but switching back to Masonry resolved the problem for me.

This fixed my issue too. Thanks.

ShadowFM commented 3 days ago

I've tried all the view types, but unfortunately the cards don't stay there after a refresh. I still have to reload the page several times