Showing timestamp of item value update in a mainUI card?


i would like to show the timestamp of the last change/update of an item in a label card at main ui.
Can i somehow get access to the timestamp?

Thanks for your help,

The timestamp is not inherently stored anywhere the UI has easy access to; the simple solution to this is a secondary item and the timestamp profile:

Create a secondary item like JustinG said:

Select Timestamp on update or Timestamp on change.

Also if you want the time to be displayed for example like this:
2021-05-31 08:17:45
Go to the item and then add metadata:

Add the state description:
and put this in for example: %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1tS

Then in the main UI card the code to display the formatted date for example is:



It will show up in the properties in OH3 if you assign the properties:

Hope that helps.