In general I do not see any difference concerning the “setup” of the two items.
BUT:
The value of the item in the GUI item can be set to a value that appears in the widget, e.g. 23:30 (see screepshot).
The value of the file based item cannot be set. It remains to be NULL.
Maybe a remark: The item is so far not used in any rule or so.
Okay, thanks for that hint.
In the meantime I found out (due to the “dark color scheme” after sunset; changed/set values change from grey-white to white color) that it is possible in the admin page when one sets all values, meaning date & time to a value and hits the checkmark. The it works…
Maybe I did that in my gut item without knowing that the admin page is not the best way to set values…
I see no reason why you can not and should not set the Item state from the Item’s page. The “default stand alone” widget of the Item is presented right there at the top of the page and it’s interactive.
Another convenient way to update the Item is to use the -Scratchpad- Script (if you don’t have one create it from the Developer Sidebar, third tab).
If the widgets shown to you on the Item page are not editable, you can override what OH chose as the default and set an editable “default stand-alone widget” metadata on that Item that does let you edit the value.
So long as it is configured, either intentionally or through the default (which is based on item type, semantic tags, and state description metadata), to have a default standalone widget that lets you interact with the Item, you can send a command to that Item from all the places I listed.
All these settings, including the default standalone widget, can be defined in. items files. Item metadata can be defined through the UI even for. items files defined Items since metadata is stored separately from the items.