Hi all
is there a way to call a card from a button?
eg
I have this custom button
and I when I press it I would like to open a card ) located in another tab eg
I think I have read that it is doable, but I can’t find anything
Hi all
is there a way to call a card from a button?
eg
I have this custom button
and I when I press it I would like to open a card ) located in another tab eg
I think I have read that it is doable, but I can’t find anything
You may have an input_boolean on whether that other card is visible or not and make your original card toggle this input_boolean and make that other card conditional in this view (you can of course display it unconditionally in a different view).
I am a bit lost. Can you explain it a little more please?
Should be doable with browser-mod
It allows to redefine/create a more-info
dialog, that you can call from a tap on the button.
So you have an input_boolean.card1_visible (default state off).
In Lovelace you make the card1 conditional [1] dependent of the state of this input_boolean.
Your original card simply toggles the input_boolean.
Check out the fan icon for PanasonicA in the attached example.
I am experiment with browser mode right now. I have manage to call a card with entities but I can not find a way to call a card.
I have to make some tests. I never used a conditional card.The second card (which opens), is it located in another tab?
You wouldn’t “call a card”. Redefine the more-info
of an entity, the “balcony” one I guess, or a random one really, then in the balcony button specify that entity and define the tap to call more-info
EDIT: Ah, yeah, as Petro said below, you have to duplicate the card in the popup_cards
section of browser-mod. See GitHub - thomasloven/hass-browser_mod: 🔹 A Home Assistant integration to turn your browser into a controllable entity and media player
You can’t call an existing card in another view, you have to duplicate the code and call that using browser mod with what @koying is saying.
No, in’t not in another tab, it’s on the same view/tab, but hidden if the input_boolean is false.
I see… to much coding is necessary and I like to be simple. I think I will duplicate my card (alone) in another tab and navigate there with the button press.