queimadus / last-changed-element

Display when entity was last changed in home assistant picture element
MIT License
9 stars 2 forks source link

Last changed after restart ? #4

Closed camui-alexandru closed 2 years ago

camui-alexandru commented 2 years ago

After I restart HA, the door sensors shows the restart time. How can I resolve this ? I searched alot on google but i dont understand how can I do that.

queimadus commented 2 years ago

This is a current limitation of Home Assistant. The last_changed gets updated when there is a restart. There is a feature request to change this behavior you can track if you'd like to follow its progress: https://community.home-assistant.io/t/retain-last-state-change-data-of-a-sensor-after-reboot/125148