-
-
Save jazzyisj/45fce29d825b8f9b29c5974444299d90 to your computer and use it in GitHub Desktop.
I have a similar issue as some others: I have a few devices that expose multiple sensors. I thought I could extend the sensor in a way that it would allow excluding sensors using regular expression. However, it seems that there is no elegant way to do that with HA and Jinja:
This feature is now available via the search test. The README in the new repository explains how to utilize it. I remembered your comment because it was the basis for my first failed attempt at accomplishing it with custom attributes so I thought I'd point it out to you.
| rejectattr('entity_id','match',...)
YES! Home Assistant finally supports this! I finally got around to implementing it on this sensor (well, more like documenting it).
Is there anyway to modify it to only show if an entity has been unavailable for XX seconds/minutes?
I've updated the sensor and this is now accomplished with a much more elegant method. I recommend updating to the new method.
@Bytelink5616 My pleasure! I'm just paying forward all the help I've received along the way :-)
Can you visit the new repository for the sensor and check out the READ.ME? I've added quite a bit of documentation there.
If you still have a question then feel free to open an issue there so others can benefit.
https://github.com/jazzyisj/unavailable-entities-sensor
The Unavailable Entities Sensor has been moved to it's own package.
Please ask any further questions or report issues here.
https://github.com/jazzyisj/unavailable-entities-sensor