piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.56k stars 331 forks source link

[Feature]: Mushroom Card Icon Tap Action #1453

Open smithey253 opened 3 months ago

smithey253 commented 3 months ago

Requirements

Is your feature request related to a problem?

I have searched for an option to allow a tap of the icon of a mushroom card to enact an action i.e turn on a lamp whilst tapping the main body of the card to open up the room or tab that it links to. From what I have found, this is currently not possible.

Describe the solution you'd like

I would like to have the option on an mushroom card for a different tap action for the icon and the rest of the card in question. One may toggle a device whilst the other option may open a view or a tab on the dashboard. Thank you.

Describe alternatives you've considered

No response

Additional context

No response

piitaya commented 3 months ago

It's not supported yet. If you really need this feature for now, you can use the tile card that looks like Mushroom card and have this option.

smithey253 commented 3 months ago

Ah thank you. Tile cards just don't support the same amazing features like adjustable secondary info and icon colours, but it will work for a few of my buttons. I look forward to seeing it in a future update. Thanks for all your amazing work!

tanishqmanuja commented 1 month ago

Tile card feels like a visual degradation over mushroom card, will happily wait for mushroom card 😁

image

mogim0gi commented 1 month ago

This is definatelly needed, please include :)

SashaBusinaro commented 4 weeks ago

+1

Coremac commented 3 weeks ago

This is one of the best features of the official Tile Card, the ability to differentiate between Tap on Icon and Tap on Card. But the official card is otherwise far too unflexible compared to Mushroom.

Would save me tons of code and workarounds.

Coremac commented 3 weeks ago

Currently I combine two cards in a horizontal stack per room using CSS to connect them seamlessly to mimic the functionality. Image