I need something like this. I need to set my charge value in a recipe window for the operational parameters of a device. I will have another button somewhere which sets multiple possibilities.
- Set Auto or Single Shot mode
- Start or Run
- Validate ( Do not actually operate the device but validate the recipe and record the timing to accomplish the task.
I haven't tried to use the nodes to write a for loop yet, and need a little prod forward. I get the loop, but cant see how to get the ui_numeric and the inject to work.
[{"id":"ced75f23.f50368","type":"ui_numeric","z":"574cc1b.fd32a4","name":"Charge","label":"Charge","tooltip":"","group":"e55118c9.d1ac08","order":3,"width":0,"height":0,"wrap":true,"passthru":false,"topic":"Charge","format":"{{value}}","min":0,"max":"1500","step":1,"x":320,"y":260,"wires":[["681e4883.5cefe8","93996c17.94769"]]},{"id":"b32d89a4.cc4d38","type":"function","z":"574cc1b.fd32a4","name":"++","func":"if ( (msg.i += 1) < msg.items.length ) return msg;\n","outputs":1,"noerr":0,"x":510,"y":400,"wires":[["681e4883.5cefe8"]]},{"id":"681e4883.5cefe8","type":"function","z":"574cc1b.fd32a4","name":"for each item","func":"if( msg.i == undefined ) msg.i = 0;\nif( msg.items == undefined ) msg.items = msg.payload;\n\nmsg.payload = msg.items[ msg.i ];\n\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":320,"wires":[["b32d89a4.cc4d38","93996c17.94769"]]},{"id":"93996c17.94769","type":"debug","z":"574cc1b.fd32a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":710,"y":260,"wires":[]},{"id":"13f8cbc4.5227dc","type":"inject","z":"574cc1b.fd32a4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":260,"wires":[["ced75f23.f50368"]]},{"id":"e55118c9.d1ac08","type":"ui_group","z":"","name":"Recipe","tab":"80410626.fc27e8","order":1,"disp":true,"width":"6","collapse":false},{"id":"80410626.fc27e8","type":"ui_tab","z":"","name":"Pump Control Recipe","icon":"dashboard","order":4,"disabled":false,"hidden":false}]