Replies: 2 comments 3 replies
-
Answered all my questions and finished my custom "critical entities" implementation. See lower section of original post. Maybe this can act as a blueprint/proof of concept for enhancing this project from an "unavailable entities sensor" to a "critical entities sensor" (which is the way I use this sensor right from the beginning with a friendly_name "Problematic entities"). So: add some custom monitoring -> check ✔ |
Beta Was this translation helpful? Give feedback.
-
Temperature sensors had -100 degrees two times (only for a second). The unavailable entities sensor did not trigger. Error found: values are float, therefore instead of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What would it need to monitor a few entities based on their value (which is a number)?
Real life example:
5 temperature sensor entities shall be monitored. If the temperature value drops to -100 ° (or sth. like "lower than -50 °") I want the unavailable entities sensor to react (as it normally does).
I think this could easily added with a selectattr similiar to the current one, right?
Of course I need to specify those 5 entities somehow.
I think this way we could enhance or convert one unavailable entities sensor to an also powerful "critical" entities sensor.
Update: I managed to create a filter template to get those affected entities. How to integrate that into the unavailable sensor definition?
2nd update: (slowly working to a solution... ;-))
This should work, right?
So to summarize the remaining questions:
|rejectattr('last_changed','ge',ignore_ts)
part (the sensor values exist only for a few seconds so lower than the ignore_seconds variable)?Update #345.391 😄
To my original section
I added the additional entities to be monitored (based on number values) and summed both blocks up so the final sensor output (list of unavailable and critical entities) is the same. This way I can leave the original sensor definition untouched and at the same time bypass the ignore_seconds parameter for my critical entities section 🎉:
Hope there will be no side effects, will test this for a while.
Beta Was this translation helpful? Give feedback.
All reactions