A List Item input widget to select and enter a date time to populate a DateTime Item. The date and time can be entered through text or click the calendar icon and open a selector. The date and time will not be sent to the Item until the check icon is clicked. The current state of the Item is shown under the label.
i like your widget very much, but didn’t get it work. I copied the code from the resources block or installed it through the marketplace, but it always stays empty.
Is there everything that have to be done before?
What always stays empty? How are you trying to use it? Have you set it as the Default List Item Widget for a DateTime Item? Does your Item have a state that isn’t NULL or UNDEF? Where are you looking at the widget?
Did you look on the Properties tab of the room’s card? Since this isn’t a member of an Equipment, it’s a property directly on the Room and is shown on a separate tab. This is discussed in the Getting Started Tutorial: Pages - Overview Page | openHAB
Note that what you see on the Item’s page is the Stand Alone Widget, not the List Widget.
I can cofirm this problem, the item only shows an input box with the content mm/dd/yyy …, no calendar and no check icon is displayed.
Inputs in the box are seemingly not forwarded to the item. I set the default List Item Widget of the Item to rkl_datetime_list
I just posted a new version. I didn’t change anything except to use the displayState in the label if it’s defined.
All I can say is that it works for me (except I see that the check button no longer shows up) and there really isn’t anything else I can do about it. If I can’t reproduce the problem I don’t know what to fix.
I installed both the stand alone and list item version of the DateTime widgets.
In the standalone version I can enter the date/time and validate with a click on the check button. (=OK)
As you wrote on the 20th of January, this can not be done in the list item version due to the missing check button.
Can I assist so you can reproduce the problem and fix it?
Even if you can reproduce it, it’s not something I can fix. Ultimately, the problem is going to be in the browser or the F7 framework. I can’t fix those. All I can do is configure what’s made available to me.
The YAML at the top of the page is the complete set of code I have access to. The only part in the above that has anything to do with that date time picker is the line
That’s it. Everything else that happens after that is someone else’s code. If I understand how it works correctly, it’s not even openHAB’s code.