This component creates entities that track the last time an entity's state has actually been changed. This is meant to make last_changed useful even after a HA restart.
There have been multiple feature requests over the years to make the last changed state persist reboots. 2019 2020 2022 2024
previous_valid_state attributeReal Last Changed is available via HACS.
Use this link to open the repository directly in HACS:
Or: 1. Install HACS if you haven’t already. 2. Open HACS in Home Assistant. 3. Search for “Real Last Changed”. 4. Click Download.

$ claude mcp add ha_real-last-changed \
-- python -m otcore.mcp_server <graph>