I have all of my alarm zones (binary sensors) in a group. Each door, window, and motion sensor is a separate zone, so there are a lot to scroll through to see if anything is open. Is there a way of hiding all zones that are closed so I can easily see if something’s open?
I find a way to hide/show binary_sensor but it’s not easy.
Depending of value from MQTT i use NodeRED to call the API to set the hiddent attribute:
To hide I send POST to http://127.0.0.1:8123/api/states/myEJPsensor
With payload :
{ "state": "off", "attributes": { "friendly_name": "EJP", "sensor_class": "power", "hidden":true } }
To show I send POST to http://127.0.0.1:8123/api/states/myEJPsensor
With payload :
{ "state": "on", "attributes": { "friendly_name": "EJP", "sensor_class": "power", "hidden":false } }
But it’s need external system.
I search a way to set this “hidden” attribute from automation. If someone have the solution, I take it.