Is it possible to define items for input text or numbers e.g. a code/password?
Unfortunately there is no input widget. To enter numbers there is somewhere a topic how to create a keypad
There is a widget for HabPanel
Universal Keypad for HABPanel
And a alarm panel / password widget and rules in the library too, simply called Keypad
I’m using the following code on a HABPanel widget to show a “Textbox” (empty space taking the text) followed by a button that hands the text to a string item (SayCommand).
<div class="form-group"> <input type="text" class="form-control" no-snap-drag="true" ng-model="myvalue" ng-value="itemValue('SayCommand')"></input> <button type="button" class="btn btn-primary" ng-click="sendCmd('SayCommand', myvalue)">Sag es!</button> </div>
Publish manual added text from openhab UI