WTH Classics: last state change retain

Four years later, still being biggest WTH ever existing in any HA installation.

“When was this light last changed?
last HA restart ago” (even if it happened last year on Christmas eve)

I’m aware this will be locked & closed as not-small-change-of-architecture - just wanted to put it here as “still alive” and yet it still disappoints everytime anyone asks something that’s not retained after HA restart.

attribute of .last_reported_change is missing a lot.

As per time title, please implement a system where the last changed/seen is retained after system/HA restart/update.

Currently, it resets after every time which breaks automations, and device tracking logs.

It’s one of the most upvoted feature requests to date. Please consider fixing this bug.

Many thanks

We’ve missed each other by few minutes :wink:

Merged.

And as explained in previous WTH months this would require a new attribute. Last changed/updated updates because all entities have an unknown state when Home Assistant starts. When they are restored the value changes.

Closing as won’t implement.

Feel free to open a new WTH that asks for an additional attribute that is preserved through restarts, not the last_changed / last_updated attributes.