PiotrMachowski / Home-Assistant-Lovelace-Local-Conditional-card

This card can show and hide a specific card on current device while not affecting other windows. It does not require any integration to run.
MIT License
61 stars 6 forks source link

know what conditional card is active in jinja templates? #26

Closed agoberg2 closed 6 months ago

agoberg2 commented 6 months ago

I use buttons to show/hide conditional cards. Kind of like tabs. Is there a way to know, using jinja templates, what conditional card is active? So I could highlight the related button.

PiotrMachowski commented 6 months ago

No, it's not possible. You can create several buttons, put them inside conditional card with matching ids and just show/hide appropriate ones