Hello,
I started building my UI from scratch in Lovelace. What I want is to show a picture on the dashboard if a device’s state is ‘home’, and a different picture if that same device is ‘not_home’.
I have the following code so far which shows a 2 picture with labels, each for a device (phone). Instead of the label to change (home/not home) I’d like the picture itself to change.
The pictures represent me and my partner, both in a home and not home state:
J_ON.jpg
J_OFF.jpg
L_ON.jpg
L_OFF.jpg
please format your code properly by following the directions in the blue stripe at the top of every page. Your code blocks aren’t working because you are doing something wrong. Either use 3 ``` at the start of your code block or highlight your text and press the correct button. Whatever you do, don’t copy the code from your post and try to add codeblocks because the format is lost.
SOOOOOOOOOOO, now that I read your post. You should use 2 conditional cards. One that shows card A when the state is home, and the other that shows card b when the state is not home.
thx for the replies. Managed to get it to work with the picture-entities card, combined in a vertical stack card I don’t get the conditional card though, yet…