There are a number of cards within Home Assistant and through HACS where tap actions are not inherently part of the card. Does anyone know of a way to give these types of cards the tap action ability?
I replied to another similar post, which had an easier solution by enlarging the container for tap action.
but as your question differs slightly… because you have no tap action.
this way would work. I am sure there’s a simple way but for now you can experiment with this.
type: custom:layout-card
layout_type: custom:grid-layout
cards:
- type: custom:stack-in-card
view_layout:
grid-column-start: 1
grid-row-start: 1
cards:
- type: custom:mushroom-template-card
primary: '{{ states(''switch.bridge_light'')}}'
icon: mdi:home
- type: custom:layout-card
layout_type: custom:grid-layout
- type: button
show_name: false
show_icon: false
tap_action:
action: toggle
entity: switch.bridge_light
view_layout:
grid-column-start: 1
grid-row-start: 1
card_mod:
style: |
ha-card {
background: none;
}
obviously this example is using a mushroom template card which does have a tap action, just replace with the card your using that doesn’t.
it’s using a button over the top which uses tap action.