Shelly H&T Sensor make lastUpdate Date&Time good readable

Hello I am new at OpenHAB.

My problem was the Output was not good readable for Human.

Output: 2021-04-09T18:14:27.000+0200

I did not find a list of variables to format the date and time. Only this part in a (%1$tH:%1$tM) = 16:39 in very advanced Topic. Now I started try&error and made my own list.

Does anyone know a complete list of modifiers?

Path to configure:
Settings ==> items ==> (your item) ==> Metadata ==> stateDescription ==> Pattern:

My Example: %1$tH:%1$tM:%1$tS - %1$td.%1$tm.%1$tY
Output: 18:14:27 - 09.04.2021

My list:

%1$tB April
%1$th Apr
%1$tA Friday
%1$ta Fri

%1$tH hour HH
%1$tM minute MM
%1$tS second SS
%1$td Day of Month dd
%1$te Day of Month d
%1$tm Month of year mm
%1$tY Year complete yyyy
%1$ty Year short yy

very advanced Topic: Design Pattern: Time Of Day

1 Like