As topic question.
I want to have the boolean be the toggle between ground floor and upper floor.
But can I somehow change the image based on the boolean? It’s a level above the “actual card”.
Or is there any other way you can toggle the actual image so that you can have two floor in a picture elements card and toggle the image and all the entities?
No, the base image can’t be conditional. You could make the whole card for each floor conditional, so you’d only have to apply the conditional part once. Since panel mode is meant for 1 card only, you might have to put both of them in a vertical-stack to be functional.
So what you do is you create a conditional element which will toggle between the views.
In both views you have the floor toggle (a boolean) and a state-image, and here we toggle the actual image.
Example image:
The toggle button is at the top right
Hi everibody,
I found my way using a transparent picture. A first binary sensor has 2 picture one for each state. For a third case I use a second binary sensor, this is off in the previous case having a transparent figure, while when on has a different picture.
Obvious all have same dimension and place and the second is defined after the first in such way is placed over the first.
For the moment appear to work flawless.
Not very elegant but simple.