Hi there, I have created a small example dashboard, that shows my problem. I use mytimeout-node as a countdown timer. The duration-time needs to be able to be set via the dashboard, which I accomplished. I then have four different modes, that I can choose from via a dropdown-form. The timer will output a "0", at the end of a cycle. But this message will only be sent, if I am in Timer-mode (dropdown) AND if I set repeat (Wiederholung in German) to ON. Then the incoming message is sent again to mytimeout-node, so that the timer starts all over again with the first time set. It works fine on the dashboard, but I do get error-messages in the debug-window, because the resent message is missing the set time from the start. So it states "NaN", not a number,. Do you have any suggestions, how I can resend the first message (with the set time, until I switch repeat mode off or until I change the timer-time? Any ideas or workaround is greatly appreciated.
Jürgen
[{"id":"25868e2b.5b7f82","type":"tab","label":"Test","disabled":false,"info":""},{"id":"5530710a.20585","type":"ui_text","z":"25868e2b.5b7f82","group":"b2d76931.3fe238","order":11,"width":0,"height":0,"name":"Timer Restzeit","label":"Timer Restzeit / h","format":"{{value | number:0}}","layout":"row-spread","x":1180,"y":480,"wires":[]},{"id":"da02d555.8e2198","type":"ui_form","z":"25868e2b.5b7f82","name":"","label":"Timer/h","group":"b2d76931.3fe238","order":2,"width":0,"height":0,"options":[{"label":"","value":"F2/Timerzeit","type":"text","required":true,"rows":null}],"formValue":{"F2/Timerzeit":""},"payload":"","submit":"Start","cancel":"Löschen","topic":"","topicType":"str","splitLayout":false,"x":200,"y":340,"wires":[["72e153fc.347ebc"]]},{"id":"72e153fc.347ebc","type":"function","z":"25868e2b.5b7f82","name":"Timerzeit","func":"return {payload:msg.payload[\"F2/Timerzeit\"]}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":340,"wires":[["6943d.a2786bc34","6ec65f45.5472d"]]},{"id":"9d24ea6b.f14c68","type":"ui_dropdown","z":"25868e2b.5b7f82","name":"Modus","label":"Betriebsart","tooltip":"","place":"Betriebsart auswählen","group":"b2d76931.3fe238","order":1,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"Vollautomatik","value":"Vollautomatik","type":"str"},{"label":"Sensorautomatik","value":"Sensorautomatik","type":"str"},{"label":"Timerautomatik","value":"Timerautomatik","type":"str"},{"label":"Manuell","value":"Manuell","type":"str"}],"payload":"","topic":"control2","topicType":"str","x":390,"y":280,"wires":[["385e1296.c539ce"]]},{"id":"83734ed9.e98dc","type":"inject","z":"25868e2b.5b7f82","name":"Inject Manuell","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"Manuell","payloadType":"str","x":220,"y":280,"wires":[["9d24ea6b.f14c68"]]},{"id":"6943d.a2786bc34","type":"ui_text","z":"25868e2b.5b7f82","group":"b2d76931.3fe238","order":10,"width":0,"height":0,"name":"","label":"Timer/h","format":"{{value}}","layout":"row-spread","x":1180,"y":340,"wires":[]},{"id":"b81a112.dcf2ef","type":"mytimeout","z":"25868e2b.5b7f82","name":"Timer","outtopic":"","outsafe":"","outwarning":"Zeit fast abgelaufen","outunsafe":"Zeit abgelaufen","warning":"","timer":"","debug":false,"ndebug":true,"ignoreCase":false,"repeat":false,"again":false,"x":670,"y":440,"wires":[[],["19d8ca3b.7bce06","7c6c2f90.2e18e"]]},{"id":"f13ba0a.1a0206","type":"ui_button","z":"25868e2b.5b7f82","name":"","group":"b2d76931.3fe238","order":5,"width":0,"height":0,"passthru":false,"label":"Stop","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"stop\" }","payloadType":"str","topic":"","topicType":"str","x":190,"y":440,"wires":[["b81a112.dcf2ef"]]},{"id":"19d8ca3b.7bce06","type":"function","z":"25868e2b.5b7f82","name":"Sekunden zu Stunden","func":"var minuten = msg.payload /1;\nmsg.payload=minuten;\n\n//msg.ui_control = {\"min\":0,\"max\":10000, \"seg1\":0, \"seg2\":1}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":920,"y":440,"wires":[["d57f6f87.92aa3","5530710a.20585"]]},{"id":"d57f6f87.92aa3","type":"ui_gauge","z":"25868e2b.5b7f82","name":"Countdown Timer","group":"b2d76931.3fe238","order":4,"width":0,"height":0,"gtype":"donut","title":"Countdown","label":"Stunde/n","format":"{{value | number:0}}","min":0,"max":"1","colors":["#ff2600","#e6e600","#00f900"],"seg1":"","seg2":"","x":1190,"y":440,"wires":[]},{"id":"6ec65f45.5472d","type":"function","z":"25868e2b.5b7f82","name":"Stunden zu Sekunden","func":"var stunden = msg.payload*1;\n\n// msg.ui_control = {\"min\":0,\"max\":10000, \"seg1\":0, \"seg2\":1}\n\n\nmsg.payload=\"{\\\"payload\\\": \\\"on\\\", \\\"timeout\\\":\" + stunden + \", \\\"warning\\\": 0}\"\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":580,"y":380,"wires":[["b81a112.dcf2ef","506e2c59.ecdeb4"]]},{"id":"7c6c2f90.2e18e","type":"switch","z":"25868e2b.5b7f82","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":560,"wires":[["7bdae21e.1e0f6c"],[]]},{"id":"97a0238.977d5e","type":"ui_switch","z":"25868e2b.5b7f82","name":"Wiederholung","label":"Wiederholung","tooltip":"","group":"b2d76931.3fe238","order":11,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"control2","topicType":"str","style":"","onvalue":"An","onvalueType":"str","onicon":"","oncolor":"","offvalue":"Aus","offvalueType":"str","officon":"","offcolor":"","animate":true,"x":200,"y":620,"wires":[["2571fcce.c4e914"]]},{"id":"7bdae21e.1e0f6c","type":"gate","z":"25868e2b.5b7f82","name":"Gate-Timerautomatik","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":560,"y":560,"wires":[["2571fcce.c4e914"]]},{"id":"385e1296.c539ce","type":"change","z":"25868e2b.5b7f82","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"Manuell","fromt":"str","to":"Aus","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"Sensorautomatik","fromt":"str","to":"Aus","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"Vollautomatik","fromt":"str","to":"Aus","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"Timerautomatik","fromt":"str","to":"An","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":280,"wires":[["7bdae21e.1e0f6c"]]},{"id":"2571fcce.c4e914","type":"gate","z":"25868e2b.5b7f82","name":"Gate-Wiederholung","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":770,"y":620,"wires":[["5981488a.03cf48"]]},{"id":"5981488a.03cf48","type":"change","z":"25868e2b.5b7f82","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"0","fromt":"num","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1040,"y":620,"wires":[["6ec65f45.5472d"]]},{"id":"506e2c59.ecdeb4","type":"debug","z":"25868e2b.5b7f82","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1020,"y":260,"wires":[]},{"id":"b2d76931.3fe238","type":"ui_group","z":"","name":"Test","tab":"ed83ab6e.82db38","order":1,"disp":true,"width":"6","collapse":false},{"id":"ed83ab6e.82db38","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":8}]