If I go to Developer Tools and search my entities can I define a custom state? I find unavailable not to my liking and would really prefer Offline, if possible. Unless its staring at me I don’t see the available states or option to add another. Thanks
I am wondering if the example in the link below would work. I want to set all the sensor’s entities to Offline.
This is unforunate because it looks real ugly. I have a NAS’s and I don’t keep them running around the clock. I do like the stats for when they are online and when offline keep them disabled so it doesn’t keep retrying to connect. Then I see this. Hoping it wasn’t so ugly on dashboard. This is just example screenshot, not one from my HA.
I am agreeable to the quickest and simplest approach. Problem is it’s probably above my skill level. I am not sure if I could do like you suggest and use a condition card and check each sensor to see if its state is unknown and if so hide it. Rather not do per individual sensor.
FWIW, I use petro’s second suggestion (Conditional card) to hide certain “seasonal” lights from being displayed on the dashboard when they’re unavailable.
Certainly willing to give that a try (when I am home and over weekend). Thanks @123 . I had hoped for a while there would be a change from unavailable to offline, but something like this may work. I would keep my NAS’s on but where I live I am getting crucified on electricity rates by the provider.
I’m fortunate to live where electricity is inexpensive (and as green as hydro-electric can be). However, a Nanoleaf Canvas light has the bad habit of “phoning home” at a ridiculously high rate. We use it so rarely that its excessive chattiness seems like a needless waste of network resources … so we plug it in only when we’re in the mood for it.
Not sure if there was a typo but I noticed under row there was no - before entity. Other thing I am assuming this can be defined with my NAS off and not turned on.
I feel like I am close and I did use a conditional card with entities. Apologies if my terminology is not spot on. I did use the UI as recommended. This is the code it generated. I thought by trapping on sensor status the card should disappear, but I still the rows
I just realized I could manually type in unavailable in YAML and now it works. The card is not displayed as it should as the NAS is off. Only other question is how often will it check for the state being unavailable. Meaning if I turn on the NAS will it immediately check and then the card should be present?
Many thanks for help @123 . I have other stuff I can now put on my HA dashboard and not have it ugly it up when its offline like my NAS. I think for now I will try to use UI as much as possible and make tweaks to YAML when needed. With how sensitive it is to spacing and indents doesn’t make it easy for a hobbyist like me. Let alone learning how to code it without dealing with its quirks on spacing and indents.
Just wondering is there a way to hide a view (tab) when the card that its on is unavailable? I got several dashboards segregating out stuff I want info on in HA.