I started messing around with using visibility criteria to display tiles for entities like high temperatures, unlocked doors, etc. My goal was a dashboard that has a home view that only shows tiles in an “out of range” state, and other views for all entities like doors, lights, temperatures, etc.
This proved to be cumbersome as I found myself creating duplicates of all entities on each view, then setting visibility criteria for the ones I wanted to be based on state. I can’t copy/paste because each entity has different criteria that would put it in this “alert” state.
I had an idea to use a custom attribute or label and an automation to flag each entity I care about as in “alert” status based on it’s respective value range. Then I could use auto-entities to only show the ones with that label or attribute. I was hoping labels would work, because it would be simpler than creating custom attributes for each entity, but I couldn’t find a way to use an automation to set an entity label. I haven’t tried attributes but am not thrilled to have to set up both custom attributes AND automations to flag them when they’re out of range.
Has anyone done anything like this? It seems more elegant to be able to tag each entity as either good or in alert status than messing with visibility criteria in every dashboard that needs to include/exclude them. Curious what ideas you may have.