Mushroom template card, click action not working

Hi all,

I have created a mushroom template card to my likings. The thing is it doesn’t respond to any click actions. I would like to have a pop-up with the history of the entity.

My card configuration is as follows:

type: horizontal-stack
cards:
  - type: custom:mushroom-template-card
    primary: |-
      {% if is_state('binary_sensor.kastje_contact', 'on')%}
        Kastje open
      {% else %}
        Kastje dicht
      {% endif %}
    secondary: >-
      Sinds {{relative_time(states.binary_sensor.kastje_contact.last_changed ) 
      | replace("days", "dagen")| replace("day", "dag") | replace("hours",
      "uur") | replace("hour", "uur") | replace("minute", "minuut")|
      replace("minuuts", "minuten") | replace("seconds", "seconden") }}
    icon: mdi:wardrobe-outline
    icon_color: |-
      {% if is_state('binary_sensor.kastje_contact', 'on')%}
        orange
      {% endif %}
    tap_action:
      action: more-info
  - type: custom:mushroom-template-card
    primary: |-
      {% if is_state('binary_sensor.schuifpui_contact', 'on')%}
        Schuifpui open
      {% else %}
        Schuifpui dicht
      {% endif %}
    secondary: >-
      Sinds {{relative_time(states.binary_sensor.schuifpui_contact.last_changed
      ) | replace("days", "dagen")| replace("day", "dag") | replace("hours",
      "uur") | replace("hour", "uur") | replace("minute", "minuut")|
      replace("minuuts", "minuten") | replace("seconds", "seconden") }}
    icon: mdi:door-sliding-open
    icon_color: |-
      {% if is_state('binary_sensor.schuifpui_contact', 'on')%}
        orange
      {% endif %}
    multiline_secondary: false
    tap_action:
      action: more-info

Is there something I am doing wrong? Any help would be highly appreciated.

Thanks in advance

Hi Bart,

Your mushroom-template-cards do not have an entity. So it does not know what to respond to if you tap or click something.
image

Silly me. I completely overlooked that. Thank you so much for pointing it out to me.

And of course now it works :grinning: