Conditionnal card in pop-up #966
-
Hello, I'm strugguling with a conditionnal card in a pop-up. In this pop-up I've got 2 cards. I can put some conditionnal behavior on the sub-button without issue But I try to mask the separator. 1st. with a conditionnal card : it works in the preview, but not when calling the pop-up |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
Can you show your code? |
Beta Was this translation helpful? Give feedback.
-
With pleasur ! :)
|
Beta Was this translation helpful? Give feedback.
-
the first was with conditionnal card. And now the code with visibility option
I spare you the screen shot, they are identical 😅 |
Beta Was this translation helpful? Give feedback.
-
What I understood from your initial post was that you're trying to hide the separator card, the one which shows the name "Prises". But in your code, you're actually just hiding the "TOTO" default button card. |
Beta Was this translation helpful? Give feedback.
-
If i'm getting this right, you're expecting both the separator and the card below it to disappear. you can do this by creating a conditional card, setting the conditions and then for the card setting, you put a vertical stack and put the cards you want to show or hide depending on if the conditions are met or not inside it, like this:
|
Beta Was this translation helpful? Give feedback.
-
Well, Yeah at first this was my goal, but as it doesn't seems to work I try to hide/show a simple card with TOTO as a name to exclude a trouble from the bubble separator card. So the code is the popup, with the separator with 2 sub buttons and conditional hiding working fine. |
Beta Was this translation helpful? Give feedback.
-
Oh Boy ! I use :
instead of
i've been fooled by the HA GUI ! |
Beta Was this translation helpful? Give feedback.
Oh Boy !
I am so sorry, the fact is that I don't know how conditionnal cars works....
I use :
instead of
i've been fooled by the HA GUI !
it works perflectly with the proper syntax