I was wondering, whether there was a possibility to retrieve the “lastChange” timestamp from an item History using (e.g. rrdj4 persistence) service.
I understand that
item["This_item"].history.lastUpdate()
will provide the timestamp of the previously persisted state, including those, where the state is unchanged (but updated). If you have the persistence policy set to something like :
Strategies {
everyMinute : "0 */1 * * * ?"
default = everyChange
}
Items {
* : strategy = everyMinute, everyChange
}
I understand I could scrap the everyMinute strategy, but for some reason I don’t dare doing that, since my persistence now works well for frequently and rarely changing items.
So is there a possibility to retrieve the timestamp from an item’s history, when it was last changed, as opposed to updated?
Many thanks