I’d like to request if possible to change the logic of secondary_info: last-changed functions.
The issue that makes it almost unusable for me is the fact that unavoidable I’ll restart HA and this state will get pulled again and change the time of last changed.
Let’s say we have a light that changed from ON to OFF 1 day ago, if you restart HA this value will change to last time you restarted instead of last time it changed from OFF to ON.
This happens because on restart this entity is getting pulled again and changes state from OFF to OFF again and is reported as changed state, even tho state did not change at all.
this is described here too: Link