Add timestamp for when a state was updated without changes #997
Replies: 1 comment
-
This now exists, last_reported. ../Frenck |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposed Change
When a state receives an update with unchanged values, the update is dropped.
Instead of dropping the update entirely, store an additional timestamp (e.g.
last_refreshed
).In order not to cause event spam the change event could also be dropped, but that is secondary.
Rationale
Capturing the time this last happened would provide information about sensor availability and downtime detection.
It would also allow separate decisions for each use case without destroying existing automations, like changing sensor availability would do.
There is a basic implementation draft as a pull request in core, it does not seem to be a very invasive change.
My personal use case is availability checking of various battery powered devices as well as connection status of the companion app.
Some more arguments are in the original post and the pull request.
Related
core
Beta Was this translation helpful? Give feedback.
All reactions