Hi,
I’m new to Home Assistant. I have a bunch of window sensors that post their status via MQTT. I’m interested in better ways to display it. I currently just have “binary_sensor” using MQTT. Like this:
I’d much rather have only opened windows and doors show up. I don’t need to know about the closed ones. Is there a way to do that? I don’t necessarily need badges…maybe just a list of Open Contacts like list elements in Grafana?
This isn’t doable with the yaml configuraiton at the moment, but it would be doable with automations. Set the trigger to a change of state for the sensors, then add or remove it from a custom group.
It’s much easier to do in Lovelace (the new UI they’re working on). You can define a card so that it contains all elements of of a specific domain, with a filter to only include items in a specific state. As an example, here’s one of my cards in Lovelace.