Showing timestamp of item value update in a mainUI card?

Create a secondary item like JustinG said:

image

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:
image

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

Then in the main UI card the code to display the formatted date for example is:
=items.Doorgarage_Doorgaragelastupdate.displayState

image

image

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

Hope that helps.

1 Like