Show times of last Item updates / changes on Sitemap and Habpanel

i want to show the last 5 changes of an item (for example of a windows/door sensor) on sitemap and habpanel. Persistance is running. For the moment I am only able to show the time of the last update.

How this can be realized?
Thanks for your help!

With persistence
you can only get
the timestamp of the lastUpdate
and the historicState for a given time

So I would define 5 items or time und 5 for value and a rule to rotate at update.

If you don’t need persistence for this informations, you can also use globale variables and arrange the infos in a string for display.