Showing date and time

I am doing my first steps in defining openhab2, and I am getting crazy just trying to show the actual date and time.
I tried the following (just showing the one line in those items that regards time):




ntp:ntp:demo [ hostname="", refreshInterval=60, refreshNtp=30 ]


DateTime CurrentDate  "Date [%1$tA, %1$td.%1$tm.%1$tY]" {ntp="Europe/Berlin:de_DE" }


Text item=CurrentDate

It only results in the text icon plus the text “CurrentDate”. It doesn’t interpret this expression. Why not?

You appear to have a mix of OH 2 style Things and OH 1 style Item configs.

When you define a Thing, you link it to the Item using one of that Thing’s channel names. See the example at the bottom of the readme.

1 Like

Thank you very much! Actually I had not seen those pages yet. I have my problems with the structure of that documentation. What is labeled as “Add-ons” contains all bindings and how to use them in the 2.0 environment, while on GitHub it is all 1.x related. As a beginner I wouldn’t check the Add-ons anyway, thinking it is for experts :slight_smile:
After almost getting crazy about all this, I found that my item file was named “item.item”, with an “s” missing… And with your comments above I now got my first results. Thank you again.