I'm using the input text node as time picker. The time is stored in a Domoticz user variable. The current value is sent to the text node (in the correct format) to prefill this value in the input box.
When I display the dash, it shows an empty field. When I click in the field, and then click on another input node on the same dash page, it does displays the value.
What am I doing wrong?
This is the flow:
[{"id":"621447c6.5c35d8","type":"mqtt out","z":"d4438f0d.e6d41","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"698d3ae2.89ac94","x":1030,"y":640,"wires":[]},{"id":"45b87d98.ea3d74","type":"function","z":"d4438f0d.e6d41","name":"convert for 46","func":"msg.payload = {\"command\":\"setuservariable\",\"idx\":46,\"value\":((msg.payload/60000).toString())};\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":640,"wires":[["621447c6.5c35d8"]]},{"id":"b443d4fc.a45df8","type":"ui_text_input","z":"d4438f0d.e6d41","name":"starttijd achter","label":"starttijd","tooltip":"formaat hh:mm, 24 hr","group":"1e7e61e2.24feee","order":2,"width":"3","height":"1","passthru":true,"mode":"time","delay":"0","topic":"","x":660,"y":640,"wires":[["45b87d98.ea3d74"]]},{"id":"4a6a20f0.caf74","type":"function","z":"d4438f0d.e6d41","name":"select","func":"var var46 = \"\"\nvar var47 = \"\"\nvar var48 = \"\"\nvar var49 = \"\"\nvar var50 = \"\"\nvar var51 = \"\"\nvar var52 = \"\"\nvar var53 = \"\"\nvar var54 = \"\"\nmsg.payload.result.forEach(function (uservar,index) {\n if (msg.payload.result[index].idx == \"46\") {var46 = uservar.Value*60000;}\n if (msg.payload.result[index].idx == \"47\") {var47 = uservar.Value;}\n if (msg.payload.result[index].idx == \"48\") {var48 = uservar.Value;}\n if (msg.payload.result[index].idx == \"49\") {var49 = uservar.Value;}\n if (msg.payload.result[index].idx == \"50\") {var50 = uservar.Value*60000;}\n if (msg.payload.result[index].idx == \"51\") {var51 = uservar.Value;}\n if (msg.payload.result[index].idx == \"52\") {var52 = uservar.Value;}\n if (msg.payload.result[index].idx == \"53\") {var53 = uservar.Value;}\n if (msg.payload.result[index].idx == \"54\") {var54 = uservar.Value;}\n});\nreturn[{payload:var46},\n {payload:var47},\n {payload:var48},\n {payload:var49},\n {payload:var50},\n {payload:var51},\n {payload:var52},\n {payload:var53},\n {payload:var54}];","outputs":9,"noerr":0,"x":490,"y":640,"wires":[["b443d4fc.a45df8"],[],[],[],[],[],[],[],[]]},{"id":"af38569e.7abaf8","type":"http request","z":"d4438f0d.e6d41","name":"HTTP","method":"PUT","ret":"obj","paytoqs":true,"url":"","tls":"","persist":false,"proxy":"","authType":"","x":370,"y":640,"wires":[["4a6a20f0.caf74"]]},{"id":"e8ed3c1b.9584a","type":"function","z":"d4438f0d.e6d41","name":"Prep call","func":"var url = \"http://127.0.0.1:8080\";\nmsg.url = url + \"/json.htm?type=command¶m=getuservariables\";\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":640,"wires":[["af38569e.7abaf8"]]},{"id":"3b67fafa.29ff56","type":"ui_button","z":"d4438f0d.e6d41","name":"","group":"d000ac8b.ffab1","order":6,"width":0,"height":0,"passthru":false,"label":"Refresh data","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":90,"y":640,"wires":[["e8ed3c1b.9584a"]]},{"id":"698d3ae2.89ac94","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"1e7e61e2.24feee","type":"ui_group","z":"","name":"achter","tab":"bcff787c.41b6b8","order":1,"disp":true,"width":"3","collapse":false},{"id":"d000ac8b.ffab1","type":"ui_group","z":"","name":"besturing","tab":"bcff787c.41b6b8","order":3,"disp":true,"width":"3","collapse":false},{"id":"bcff787c.41b6b8","type":"ui_tab","z":"","name":"Sproeisysteem","icon":"dashboard","order":3,"disabled":false,"hidden":false}]
to make things more readable, I removed parts of the flows that are not relevant.