I am trying to create an Entities Card on my dashboard that shows the connected status of my access points. The value of the entity I want to use is an attribute (“internet_online”) and has a boolean value (true/false).
What I wanted to do is the following:
If “internet_online” = true, show “Connected”. If “internet_online” = false, show “Disconnected”.
If possible, I’d love the icon to change colors based on status (green = connected, red = disconnected) but I won’t push my luck
I’ve tried finding different posts that discuss this, but it’s just not clicking for me at all.
Here’s my code, which is successfully showing the boolean value, not the labels I want:
I looked at that but wasn’t sure - it says to show another card based on states of entities.
I see this post which is for showing the ‘closed shade’ when window is closed, then the ‘weather’ when it’s open. That’s very cool, but don’t think it matches my use case.
I’m looking for conditional logic to show text within a basic entities card. I feel like there’s some yaml syntax I’m just not familiar with that might work. I’ve horsed around with a couple options but couldn’t get anywhere.
Installed that file, but getting some errors - deleted and reinstalled a couple times to make sure I was doing it right. Thought I did - but still getting the “doesn’t exist” error.