Repeating incoming message for mytimeout-node

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}]

As a start you could work with context variables. Does the form element have a "on change" event?

[{"id":"df72e7a0142158f7","type":"tab","label":"Test","disabled":false,"info":""},{"id":"fc6f967e79833ffa","type":"ui_text","z":"df72e7a0142158f7","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":"450aeef1f5fc9ceb","type":"ui_form","z":"df72e7a0142158f7","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":[["cb5e184a674d4a0d"]]},{"id":"cb5e184a674d4a0d","type":"function","z":"df72e7a0142158f7","name":"Timerzeit","func":"flow.set(\"timeout\", msg.payload[\"F2/Timerzeit\"] );\nreturn {payload:msg.payload[\"F2/Timerzeit\"]}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":340,"wires":[["d75be82399d381e9","ef3f78e50c710e2f"]]},{"id":"02c27b281dbb5187","type":"ui_dropdown","z":"df72e7a0142158f7","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":[["6ecf791dfa4129b9"]]},{"id":"6d277888a067e8e0","type":"inject","z":"df72e7a0142158f7","name":"Inject Manuell","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"Manuell","payloadType":"str","x":220,"y":280,"wires":[["02c27b281dbb5187"]]},{"id":"d75be82399d381e9","type":"ui_text","z":"df72e7a0142158f7","group":"b2d76931.3fe238","order":10,"width":0,"height":0,"name":"","label":"Timer/h","format":"{{value}}","layout":"row-spread","x":1180,"y":340,"wires":[]},{"id":"b814d45922db3a0d","type":"mytimeout","z":"df72e7a0142158f7","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":[[],["af223dc5d3bdd35f","10013716e2d6c839"]]},{"id":"a688a0fc7db7cbb9","type":"ui_button","z":"df72e7a0142158f7","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":[["b814d45922db3a0d"]]},{"id":"af223dc5d3bdd35f","type":"function","z":"df72e7a0142158f7","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":[["0d08d1f73c88a52c","fc6f967e79833ffa"]]},{"id":"0d08d1f73c88a52c","type":"ui_gauge","z":"df72e7a0142158f7","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":"ef3f78e50c710e2f","type":"function","z":"df72e7a0142158f7","name":"Stunden zu Sekunden","func":"//var stunden = msg.payload*1;\nlet stunden = flow.get(\"timeout\");\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":"","libs":[],"x":580,"y":380,"wires":[["b814d45922db3a0d","be992d7e3d7b7dd2"]]},{"id":"10013716e2d6c839","type":"switch","z":"df72e7a0142158f7","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":[["ea72db1fd126e6f3"],[]]},{"id":"0271f2d08172ffc1","type":"ui_switch","z":"df72e7a0142158f7","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":[["58e8246420372303"]]},{"id":"ea72db1fd126e6f3","type":"gate","z":"df72e7a0142158f7","name":"Gate-Timerautomatik","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":560,"y":560,"wires":[["58e8246420372303"]]},{"id":"6ecf791dfa4129b9","type":"change","z":"df72e7a0142158f7","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":[["ea72db1fd126e6f3"]]},{"id":"58e8246420372303","type":"gate","z":"df72e7a0142158f7","name":"Gate-Wiederholung","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":770,"y":620,"wires":[["277b0da1071d8187"]]},{"id":"277b0da1071d8187","type":"change","z":"df72e7a0142158f7","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":[["ef3f78e50c710e2f"]]},{"id":"be992d7e3d7b7dd2","type":"debug","z":"df72e7a0142158f7","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","name":"Test","tab":"ed83ab6e.82db38","order":1,"disp":true,"width":"6","collapse":false},{"id":"ed83ab6e.82db38","type":"ui_tab","name":"Home","icon":"dashboard","order":8}]

Hello Remo,

this is working just as I want it to do! I will have to learn more about context-variables. To answer your question: I don´t even know, how to add "on-change events".

But this helped me a lot already, since I only needed to get rid of the error-messages.

Have a great day and thank you again for the quick help,

Jürgen

Here is something I wrote back in 2018 about persistent context that might help you.
A guide to understanding 'Persistent Context'

1 Like

You're welcome Jürgen. Have a look at the slightly improved flow. I am using the first output of the mytimeout node to trigger a restart (that msg object contains the timeout variable and technically you would not need the context variable anymore). I also played a bit with the gauge (apologies if I got the calculation wrong). The gauge uses flow.get("timeout") as max value :wink:

Have fun!

[{"id":"df72e7a0142158f7","type":"tab","label":"Test","disabled":false,"info":""},{"id":"fc6f967e79833ffa","type":"ui_text","z":"df72e7a0142158f7","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":"450aeef1f5fc9ceb","type":"ui_form","z":"df72e7a0142158f7","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":[["cb5e184a674d4a0d"]]},{"id":"cb5e184a674d4a0d","type":"function","z":"df72e7a0142158f7","name":"Timerzeit","func":"flow.set(\"timeout\", msg.payload[\"F2/Timerzeit\"] );\nreturn {payload:msg.payload[\"F2/Timerzeit\"]}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":340,"wires":[["d75be82399d381e9","ef3f78e50c710e2f"]]},{"id":"02c27b281dbb5187","type":"ui_dropdown","z":"df72e7a0142158f7","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":[["6ecf791dfa4129b9"]]},{"id":"6d277888a067e8e0","type":"inject","z":"df72e7a0142158f7","name":"Inject Manuell","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"Manuell","payloadType":"str","x":220,"y":280,"wires":[["02c27b281dbb5187"]]},{"id":"d75be82399d381e9","type":"ui_text","z":"df72e7a0142158f7","group":"b2d76931.3fe238","order":10,"width":0,"height":0,"name":"","label":"Timer/h","format":"{{value}}","layout":"row-spread","x":1180,"y":340,"wires":[]},{"id":"b814d45922db3a0d","type":"mytimeout","z":"df72e7a0142158f7","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":[["ea645495ee0a2b24","be992d7e3d7b7dd2"],["af223dc5d3bdd35f"]]},{"id":"a688a0fc7db7cbb9","type":"ui_button","z":"df72e7a0142158f7","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":[["b814d45922db3a0d"]]},{"id":"af223dc5d3bdd35f","type":"function","z":"df72e7a0142158f7","name":"Sekunden zu Stunden","func":"// handle stop case\nif(msg.payload == -1){\n    msg.payload = 0;\n}\nvar minuten = msg.payload /1;\nmsg.payload=minuten;\n\nmsg.ui_control = {\"min\":0,\"max\":flow.get(\"timeout\")/*, \"seg1\":0, \"seg2\":1*/}\n\n\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":920,"y":440,"wires":[["0d08d1f73c88a52c","fc6f967e79833ffa"]]},{"id":"0d08d1f73c88a52c","type":"ui_gauge","z":"df72e7a0142158f7","name":"Countdown Timer","group":"b2d76931.3fe238","order":4,"width":0,"height":0,"gtype":"donut","title":"Countdown","label":"Stunden/h","format":"{{value | number:0}}","min":0,"max":"100","colors":["#ff2600","#e6e600","#00f900"],"seg1":"","seg2":"","x":1190,"y":440,"wires":[]},{"id":"ef3f78e50c710e2f","type":"function","z":"df72e7a0142158f7","name":"Stunden zu Sekunden","func":"//var stunden = msg.payload*1;\nlet stunden = flow.get(\"timeout\");\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":"","libs":[],"x":580,"y":380,"wires":[["b814d45922db3a0d"]]},{"id":"0271f2d08172ffc1","type":"ui_switch","z":"df72e7a0142158f7","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":[["58e8246420372303"]]},{"id":"ea72db1fd126e6f3","type":"gate","z":"df72e7a0142158f7","name":"Gate-Timerautomatik","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":560,"y":560,"wires":[["58e8246420372303"]]},{"id":"6ecf791dfa4129b9","type":"change","z":"df72e7a0142158f7","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":[["ea72db1fd126e6f3"]]},{"id":"58e8246420372303","type":"gate","z":"df72e7a0142158f7","name":"Gate-Wiederholung","controlTopic":"control2","defaultState":"open","openCmd":"An","closeCmd":"Aus","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"","persist":false,"x":770,"y":620,"wires":[["277b0da1071d8187"]]},{"id":"277b0da1071d8187","type":"change","z":"df72e7a0142158f7","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":[["ef3f78e50c710e2f"]]},{"id":"be992d7e3d7b7dd2","type":"debug","z":"df72e7a0142158f7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1000,"y":260,"wires":[]},{"id":"ea645495ee0a2b24","type":"switch","z":"df72e7a0142158f7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"stop","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":330,"y":560,"wires":[["ea72db1fd126e6f3"]]},{"id":"b2d76931.3fe238","type":"ui_group","name":"Test","tab":"ed83ab6e.82db38","order":1,"disp":true,"width":"6","collapse":false},{"id":"ed83ab6e.82db38","type":"ui_tab","name":"Home","icon":"dashboard","order":8}]
1 Like

Hello,

thank you for the link and for your efforts!

Jürgen

Thank you Remo, this is really helpful! I will need to play around a bit to really understand it!

Jürgen

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.