Hi everybody.
I use a text input configured as time picker to read and set a time value. From time to time it happens that text field is empty.
Here is the flow: Using a S7 in & output node
[{"id":"e0a821f9.b71ec","type":"s7 in","z":"184fb595.10a8ea","endpoint":"c4e5cbad.c33498","mode":"single","variable":"startTime1Minute","diff":true,"name":"","x":120,"y":180,"wires":[["5c992791.fb3908"]]},{"id":"b2954541.147ca8","type":"function","z":"184fb595.10a8ea","name":"inputConversion","func":"var hour = msg.payload.startTime1Hour;\nvar minute = msg.payload.startTime1Minute;\n\nif (hour < 10) {\n hour = \"0\" + hour.toString(); \n}\n\nif (minute < 10) {\n minute = \"0\" + minute.toString(); \n}\n\n//Return message \nmsg.payload = \"2021-06-13T\" + hour + \":\" + minute + \":00.00Z\";\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":120,"wires":[["ac2d9a8.f979e68"]]},{"id":"5c992791.fb3908","type":"join","z":"184fb595.10a8ea","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"1","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":330,"y":120,"wires":[["b2954541.147ca8"]]},{"id":"ac2d9a8.f979e68","type":"ui_text_input","z":"184fb595.10a8ea","name":"Startzeit1","label":"<h2>Startzeit 1:</h2>","tooltip":"","group":"ffde934b.ea919","order":1,"width":6,"height":2,"passthru":true,"mode":"time","delay":300,"topic":"startTime1","x":740,"y":120,"wires":[["405d6b54.aee584"]]},{"id":"a65b018a.74533","type":"s7 in","z":"184fb595.10a8ea","endpoint":"c4e5cbad.c33498","mode":"single","variable":"startTime1Hour","diff":true,"name":"","x":120,"y":120,"wires":[["5c992791.fb3908"]]},{"id":"405d6b54.aee584","type":"function","z":"184fb595.10a8ea","name":"convertTime","func":"var timeValue = msg.payload;\n\nvar hour = { payload: Math.floor((timeValue / 3600000 ) % 24)};\nvar minute = { payload: (timeValue / 60000) % 60};\n\nreturn [hour, minute];","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":120,"wires":[["c553cace.791a68"],["e067b80b.9cb198"]]},{"id":"c553cace.791a68","type":"s7 out","z":"184fb595.10a8ea","endpoint":"c4e5cbad.c33498","variable":"startTime1Hour","name":"","x":1100,"y":100,"wires":[]},{"id":"e067b80b.9cb198","type":"s7 out","z":"184fb595.10a8ea","endpoint":"c4e5cbad.c33498","variable":"startTime1Minute","name":"","x":1110,"y":160,"wires":[]},{"id":"c4e5cbad.c33498","type":"s7 endpoint","transport":"iso-on-tcp","address":"192.168.2.20","port":"102","rack":"0","slot":"1","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"01","remotetsaplo":"00","connmode":"rack-slot","adapterauto":true,"adapterport":"","busaddr":"2","adapteraddr":"0","cycletime":"500","timeout":"1500","verbose":"default","name":"","vartable":[{"addr":"DB2,B2585","name":"startTime1Hour"},{"addr":"DB2,B2586","name":"startTime1Minute"},{"addr":"DB2,B2587","name":"startTime2Hour"},{"addr":"DB2,B2588","name":"startTime2Minute"},{"addr":"DB2,X2584.0","name":"autoEnableAll"},{"addr":"DB2,X2584.1","name":"pauseAll"},{"addr":"DB2,X0.0","name":"zone1ManStart"},{"addr":"DB2,X0.1","name":"zone1ManStop"},{"addr":"DB2,X0.2","name":"zone1ManPause"},{"addr":"DB2,X0.3","name":"zone1AutoEnable"},{"addr":"DB2,B1","name":"zone1DurationMan"},{"addr":"DB2,B2","name":"zone1DurationAutoTime"},{"addr":"DB2,B3","name":"zone1Frequency"},{"addr":"DB2,S4.10*","name":"zone1TimeAct"},{"addr":"DB2,S260.10*","name":"zone1TimeMax"},{"addr":"DB2,X516.0","name":"zone2ManStart"},{"addr":"DB2,X516.1","name":"zone2ManStop"},{"addr":"DB2,X516.2","name":"zone2ManPause"},{"addr":"DB2,X516.3","name":"zone2AutoEnable"},{"addr":"DB2,B517","name":"zone2DurationMan"},{"addr":"DB2,B518","name":"zone2DurationAutoTime"},{"addr":"DB2,B519","name":"zone2Frequency"},{"addr":"DB2,S520.20*","name":"zone2TimeAct"},{"addr":"DB2,S776.20*","name":"zone2TimeMax"},{"addr":"DB2,X1032.0","name":"zone3ManStart"},{"addr":"DB2,X1032.1","name":"zone3ManStop"},{"addr":"DB2,X1032.2","name":"zone3ManPause"},{"addr":"DB2,X1032.3","name":"zone3AutoEnable"},{"addr":"DB2,B1033","name":"zone3DurationMan"},{"addr":"DB2,B1034","name":"zone3DurationAutoTime"},{"addr":"DB2,B1035","name":"zone3Frequency"},{"addr":"DB2,S1036.10*","name":"zone3TimeAct"},{"addr":"DB2,S1292.10*","name":"zone3TimeMax"},{"addr":"DB2,X1548.0","name":"zone4ManStart"},{"addr":"DB2,X1548.1","name":"zone4ManStop"},{"addr":"DB2,X1548.2","name":"zone4ManPause"},{"addr":"DB2,X1548.3","name":"zone4AutoEnable"},{"addr":"DB2,B1549","name":"zone4DurationMan"},{"addr":"DB2,B1550","name":"zone4DurationAutoTime"},{"addr":"DB2,B1551","name":"zone4Frequency"},{"addr":"DB2,S1552.10*","name":"zone4TimeAct"},{"addr":"DB2,S1808.10*","name":"zone4TimeMax"},{"addr":"DB2,X2064.0","name":"zone5ManStart"},{"addr":"DB2,X2064.1","name":"zone5ManStop"},{"addr":"DB2,X2064.2","name":"zone5ManPause"},{"addr":"DB2,X2064.3","name":"zone5AutoEnable"},{"addr":"DB2,B2065","name":"zone5DurationMan"},{"addr":"DB2,B2066","name":"zone5DurationAutoTime"},{"addr":"DB2,B2067","name":"zone5Frequency"},{"addr":"DB2,S2068.10*","name":"zone5TimeAct"},{"addr":"DB2,S2324.10*","name":"zone5TimeMax"},{"addr":"Q0.5","name":"Valve1"},{"addr":"Q0.6","name":"Valve2"},{"addr":"Q0.7","name":"Valve3"},{"addr":"Q1.0","name":"Valve4"},{"addr":"Q1.1","name":"Valve5"},{"addr":"DB1,X0.0","name":"LifeBit"}]},{"id":"ffde934b.ea919","type":"ui_group","name":"Allgemeine Einstellungen","tab":"7177a187.eb528","order":1,"disp":true,"width":6,"collapse":false},{"id":"7177a187.eb528","type":"ui_tab","name":"Regner","icon":"fa-pagelines","order":2,"disabled":false,"hidden":false}]
I know that ui_control refreshs the page. I use it to hide and show groups on that tab.:
[{"id":"36b51c76.1ac914","type":"ui_ui_control","z":"184fb595.10a8ea","name":"","events":"all","x":2040,"y":480,"wires":[[]]},{"id":"2158a77e.82f208","type":"ui_button","z":"184fb595.10a8ea","name":"Settings Zone1","group":"61fc321e.59b89c","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"settings","payload":"{\"group\":{\"hide\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"show\":[\"Regner_Zone_1_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1760,"y":300,"wires":[["36b51c76.1ac914"]]},{"id":"953fd460.978618","type":"ui_button","z":"184fb595.10a8ea","name":"Save Settings Zone1","group":"58a43eba.c01e4","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"save","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_1_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1740,"y":340,"wires":[["36b51c76.1ac914"]]},{"id":"4028021.003dbfc","type":"inject","z":"184fb595.10a8ea","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_1_Einstellungen\",\"Regner_Zone_2_Einstellungen\",\"Regner_Zone_3_Einstellungen\",\"Regner_Zone_4_Einstellungen\",\"Regner_Zone_5_Einstellungen\"],\"focus\":true}}","payloadType":"json","x":1790,"y":260,"wires":[["36b51c76.1ac914"]]},{"id":"4e557d66.61a044","type":"ui_button","z":"184fb595.10a8ea","name":"Settings Zone2","group":"b454f1c.52f921","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"settings","payload":"{\"group\":{\"hide\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"show\":[\"Regner_Zone_2_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1760,"y":400,"wires":[["36b51c76.1ac914"]]},{"id":"d087bd60.3e76f","type":"ui_button","z":"184fb595.10a8ea","name":"Save Settings Zone2","group":"f3ea7881.e884e8","order":1,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"save","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_2_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1740,"y":440,"wires":[["36b51c76.1ac914"]]},{"id":"7307918e.f23a9","type":"ui_button","z":"184fb595.10a8ea","name":"Settings Zone3","group":"2765a72a.88eb98","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"settings","payload":"{\"group\":{\"hide\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"show\":[\"Regner_Zone_3_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1760,"y":500,"wires":[["36b51c76.1ac914"]]},{"id":"5c0e45a4.df77ac","type":"ui_button","z":"184fb595.10a8ea","name":"Save Settings Zone3","group":"1b5591f6.a9645e","order":1,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"save","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_3_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1740,"y":540,"wires":[["36b51c76.1ac914"]]},{"id":"6afac68c.7b0f98","type":"ui_button","z":"184fb595.10a8ea","name":"Settings Zone4","group":"7ad9b6a2.a57168","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"settings","payload":"{\"group\":{\"hide\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"show\":[\"Regner_Zone_4_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1760,"y":600,"wires":[["36b51c76.1ac914"]]},{"id":"7b7b149b.a39e8c","type":"ui_button","z":"184fb595.10a8ea","name":"Save Settings Zone4","group":"6523cf1b.d3809","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"save","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_4_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1740,"y":640,"wires":[["36b51c76.1ac914"]]},{"id":"1536020a.5a7b7e","type":"ui_button","z":"184fb595.10a8ea","name":"Settings Zone5","group":"a0eb819a.cb0d2","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"settings","payload":"{\"group\":{\"hide\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"show\":[\"Regner_Zone_5_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1760,"y":700,"wires":[["36b51c76.1ac914"]]},{"id":"aa799988.bef6d8","type":"ui_button","z":"184fb595.10a8ea","name":"Save Settings Zone5","group":"9fc265c3.c845a8","order":2,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"RGB(252, 144, 3)","bgcolor":"transparent","icon":"save","payload":"{\"group\":{\"show\":[\"Regner_Allgemeine_Einstellungen\",\"Regner_Zone_1\",\"Regner_Zone_2\",\"Regner_Zone_3\",\"Regner_Zone_4\",\"Regner_Zone_5\"],\"hide\":[\"Regner_Zone_5_Einstellungen\"],\"focus\":true}}","payloadType":"json","topic":"","x":1740,"y":740,"wires":[["36b51c76.1ac914"]]},{"id":"61fc321e.59b89c","type":"ui_group","name":"Zone 1","tab":"7177a187.eb528","order":2,"disp":true,"width":5,"collapse":false},{"id":"58a43eba.c01e4","type":"ui_group","name":"Zone 1 Einstellungen","tab":"7177a187.eb528","order":7,"disp":true,"width":"6","collapse":false},{"id":"b454f1c.52f921","type":"ui_group","name":"Zone 2","tab":"7177a187.eb528","order":3,"disp":true,"width":5,"collapse":false},{"id":"f3ea7881.e884e8","type":"ui_group","name":"Zone 2 Einstellungen","tab":"7177a187.eb528","order":8,"disp":true,"width":"6","collapse":false},{"id":"2765a72a.88eb98","type":"ui_group","name":"Zone 3","tab":"7177a187.eb528","order":4,"disp":true,"width":5,"collapse":false},{"id":"1b5591f6.a9645e","type":"ui_group","name":"Zone 3 Einstellungen","tab":"7177a187.eb528","order":9,"disp":true,"width":"6","collapse":false},{"id":"7ad9b6a2.a57168","type":"ui_group","name":"Zone 4","tab":"7177a187.eb528","order":5,"disp":true,"width":5,"collapse":false},{"id":"6523cf1b.d3809","type":"ui_group","name":"Zone 4 Einstellungen","tab":"7177a187.eb528","order":10,"disp":true,"width":"6","collapse":false},{"id":"a0eb819a.cb0d2","type":"ui_group","name":"Zone 5","tab":"7177a187.eb528","order":6,"disp":true,"width":5,"collapse":false},{"id":"9fc265c3.c845a8","type":"ui_group","name":"Zone 5 Einstellungen","tab":"7177a187.eb528","order":11,"disp":true,"width":"6","collapse":false},{"id":"7177a187.eb528","type":"ui_tab","name":"Regner","icon":"fa-pagelines","order":2,"disabled":false,"hidden":false}]
How can i configure the flow to update/refresh also the text inputs?
Many thanks in advance