MCPcopy Index your code
hub / github.com/HamletDuFromage/ha_real-last-changed

github.com/HamletDuFromage/ha_real-last-changed @v0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.0 ↗ · + Follow
27 symbols 78 edges 4 files 5 documented · 19% updated 47d agov0.6.0 · 2026-03-15★ 385 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Real last changed

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

Features

  • Logs the last time an entity went from one valid state to another
  • Stores the last valid state in previous_valid_state attribute

Installation

HACS

Real Last Changed is available via HACS.

Use this link to open the repository directly in HACS:

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Or: 1. Install HACS if you haven’t already. 2. Open HACS in Home Assistant. 3. Search for “Real Last Changed”. 4. Click Download.

Manually

  1. Download this repository;
  2. Copy the directory custom_components/ha_real-last-changed on your Home Assistant config/custom_components/ha_real-last-changed;
  3. Restart HomeAssistant;
  4. Add this integration from the Home Assistant integrations.

config

Like the Integration?

  • Liberapay : Donate using Liberapay
  • BTC: 1CoFc1bY5AHLP6Noe1zmqnJnp7ZWBxyo79
  • ETH: 0xf68f568e21a15934e0e9a6949288c3ca009140ba
  • Monero (XMR): 88wjCuhHX3oNhVpEdYeUx3LvrkdTvcTHx7v7L5fQpjCg7QiAReJUVR4LPase5Byj2UhdVdLtvysJaXTFKq2EnuvuLjvQMGL

Core symbols most depended-on inside this repo

_is_rlc_entity
called by 2
custom_components/real_last_changed/config_flow.py
_get_device_entry
called by 2
custom_components/real_last_changed/config_flow.py
_entry_matches_states
called by 2
custom_components/real_last_changed/config_flow.py
_get_entities_from_entry
called by 2
custom_components/real_last_changed/config_flow.py
_get_device_name
called by 2
custom_components/real_last_changed/config_flow.py
_is_duplicated
called by 2
custom_components/real_last_changed/config_flow.py
_update_entry
called by 2
custom_components/real_last_changed/config_flow.py
async_step_confirm
called by 1
custom_components/real_last_changed/config_flow.py

Shape

Method 22
Function 3
Class 2

Languages

Python100%

Modules by API surface

custom_components/real_last_changed/config_flow.py18 symbols
custom_components/real_last_changed/sensor.py7 symbols
custom_components/real_last_changed/__init__.py2 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page