ok, sorry about that. I just used the "preformatted text" button in the previous reply. I wasn't sure if people preferred to keep space to a minimum or show the code all at once. Here is the same code, I just removed a comment though about context variables in subflow functions that was inaccurate:
[{"id":"279a4d1d.9c4062","type":"subflow","name":"Channel Manager","info":"","category":"","in":[{"x":342.0000915527344,"y":135.00004386901855,"wires":[{"id":"ef86ebcd.6b44d8"},{"id":"2b6c8bca.686384"}]}],"out":[{"x":947.0000286102295,"y":146.0000057220459,"wires":[{"id":"2a95ac27.4540e4","port":0},{"id":"ef86ebcd.6b44d8","port":0},{"id":"2b6c8bca.686384","port":0}]}],"env":[]},{"id":"a343ec88.3b4f","type":"trigger","z":"279a4d1d.9c4062","op1":"1","op2":"0","op1type":"num","op2type":"str","duration":"-1","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":750.0000915527344,"y":310.0000877380371,"wires":[["2a95ac27.4540e4"]]},{"id":"2a95ac27.4540e4","type":"function","z":"279a4d1d.9c4062","name":"func timer","func":"runTime = flow.get(\"runTime\")\nsysStatus = flow.get(\"sysStatus\")\n//count = flow.get(\"count\")\n\nvar count=context.get('count') || 0; \n\nif (typeof count === 'undefined')\n{\n count = 0\n}\n\n\n\ninterval = msg.payload\ncount = count + interval\n//flow.set(\"count\", count)\n\ncontext.set(\"count\", count)\n\nif (sysStatus == \"on\" && (count < runTime))\n{\n var msg1 = {payload: count}\n return [msg1, null]\n}\n\nif (sysStatus == \"off\")\n{\n var msg1 = {payload: \"off\"}\n return[msg1, null]\n}\n\nif (sysStatus == \"on\" && (count > runTime))\n{\n var msg1 = {payload: \"done\"}\n var msg2 = {reset: \"reset\"}\n context.set(\"count\", 0)\n //flow.set(\"count\", 0)\n flow.set(\"sysStatus\", \"off\")\n return [msg1, msg2]\n}\n\nif (typeof sysStatus === \"undefined\" || typeof runTime === \"undefined\")\n{\n var msg1 = {payload: \"please specify\"}\n return [msg1, null]\n}\n","outputs":2,"noerr":0,"x":760.0000190734863,"y":229.0000057220459,"wires":[[],["a343ec88.3b4f"]]},{"id":"ef86ebcd.6b44d8","type":"function","z":"279a4d1d.9c4062","name":"set flow vars","func":"if (msg.sysStatus)\n{\n flow.set(\"sysStatus\", msg.sysStatus)\n}\n\nif (msg.runTime)\n{\n flow.set(\"runTime\", msg.runTime)\n}\n\nmsg.payload = msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":539.0000114440918,"y":157.00002670288086,"wires":[["a343ec88.3b4f","efa1d5f.68c1428"]]},{"id":"efa1d5f.68c1428","type":"debug","z":"279a4d1d.9c4062","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":675.1666793823242,"y":388.3333435058594,"wires":[]},{"id":"2b6c8bca.686384","type":"function","z":"279a4d1d.9c4062","name":"off text","func":"if (msg.sysStatus == \"off\")\n{\n msg.payload = \"off\"\n}\nreturn msg\n","outputs":1,"noerr":0,"x":520.0000534057617,"y":115.00000381469727,"wires":[[]]},{"id":"ac4d5daf.f2432","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"f2d88fca.890a7","type":"ui_text","z":"ac4d5daf.f2432","group":"d211a925.a79948","order":8,"width":0,"height":0,"name":"Ch2 Time","label":"Ch2 Time (s)","format":"{{msg.payload}}","layout":"row-spread","x":1391.1668663024902,"y":383.3333568572998,"wires":[]},{"id":"ff7ff3fc.e2142","type":"switch","z":"ac4d5daf.f2432","name":"Route by topic","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Ch1","vt":"str"},{"t":"eq","v":"Ch2","vt":"str"},{"t":"eq","v":"Ch3","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":858.166690826416,"y":383.6666774749756,"wires":[["97fc15c5.60a958","84f58162.e835e"],["e37c313e.97d3"],["db28b672.391b68"]]},{"id":"58783827.5b9ee8","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":1,"width":0,"height":0,"passthru":false,"label":"OnCh1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"on","payloadType":"str","topic":"Ch1","x":230.0001106262207,"y":128.00001907348633,"wires":[["bb5daff9.c7462"]]},{"id":"6034d4ac.56cc7c","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":2,"width":0,"height":0,"passthru":false,"label":"OffCh1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"off","payloadType":"str","topic":"Ch1","x":231.00010681152344,"y":170.00010108947754,"wires":[["e6609075.20536"]]},{"id":"d92a8dc2.f3d05","type":"ui_text_input","z":"ac4d5daf.f2432","name":"","label":"how long (s) Ch1","tooltip":"","group":"d211a925.a79948","order":3,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"Ch1","x":187.00011444091797,"y":224.00002193450928,"wires":[["67be081f.719778"]]},{"id":"d38f3964.ba61a8","type":"switch","z":"ac4d5daf.f2432","name":"merge wires","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Ch1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":605.0000381469727,"y":172.00002098083496,"wires":[["ff7ff3fc.e2142"]]},{"id":"bb5daff9.c7462","type":"change","z":"ac4d5daf.f2432","name":"on","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":415.1668643951416,"y":133.66668701171875,"wires":[["d38f3964.ba61a8"]]},{"id":"67be081f.719778","type":"change","z":"ac4d5daf.f2432","name":"","rules":[{"t":"set","p":"runTime","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":406.1667022705078,"y":224.66668891906738,"wires":[["d38f3964.ba61a8"]]},{"id":"e6609075.20536","type":"change","z":"ac4d5daf.f2432","name":"off","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":414.0000228881836,"y":172.00000953674316,"wires":[["d38f3964.ba61a8"]]},{"id":"e26bd6c7.87b118","type":"ui_text","z":"ac4d5daf.f2432","group":"d211a925.a79948","order":4,"width":0,"height":0,"name":"Ch1 Time","label":"Ch1 Time (s)","format":"{{msg.payload}}","layout":"row-spread","x":1387.166742324829,"y":341.3333110809326,"wires":[]},{"id":"ad25818e.17e1","type":"ui_text","z":"ac4d5daf.f2432","group":"d211a925.a79948","order":12,"width":0,"height":0,"name":"Ch3 Time","label":"Ch3 Time (s)","format":"{{msg.payload}}","layout":"row-spread","x":1396.1901817321777,"y":428.3723735809326,"wires":[]},{"id":"97fc15c5.60a958","type":"subflow:279a4d1d.9c4062","z":"ac4d5daf.f2432","name":"","env":[],"x":1134.166805267334,"y":345.0000743865967,"wires":[["e26bd6c7.87b118"]]},{"id":"e37c313e.97d3","type":"subflow:279a4d1d.9c4062","z":"ac4d5daf.f2432","name":"","env":[],"x":1134.0234375,"y":383.0390625,"wires":[["f2d88fca.890a7"]]},{"id":"db28b672.391b68","type":"subflow:279a4d1d.9c4062","z":"ac4d5daf.f2432","name":"","env":[],"x":1134.0234375,"y":423.0390625,"wires":[["ad25818e.17e1"]]},{"id":"84f58162.e835e","type":"debug","z":"ac4d5daf.f2432","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1078.166748046875,"y":245.33334350585938,"wires":[]},{"id":"2d6f81c0.1863ce","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":5,"width":0,"height":0,"passthru":false,"label":"OnCh2","tooltip":"","color":"","bgcolor":"","icon":"","payload":"on","payloadType":"str","topic":"Ch2","x":198.0000114440918,"y":328.0000228881836,"wires":[["ff3b1f14.69b7e"]]},{"id":"8ce8a17f.590f6","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":6,"width":0,"height":0,"passthru":false,"label":"OffCh2","tooltip":"","color":"","bgcolor":"","icon":"","payload":"off","payloadType":"str","topic":"Ch2","x":199.00000762939453,"y":370.0001049041748,"wires":[["f63fe37d.29c1a"]]},{"id":"57b779ed.085c18","type":"ui_text_input","z":"ac4d5daf.f2432","name":"","label":"how long (s) Ch2","tooltip":"","group":"d211a925.a79948","order":7,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"Ch2","x":155.00001525878906,"y":424.00002574920654,"wires":[["b794d8d4.7784b8"]]},{"id":"22b825f4.ac698a","type":"switch","z":"ac4d5daf.f2432","name":"merge wires","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Ch2","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":572.9999389648438,"y":372.0000247955322,"wires":[["ff7ff3fc.e2142"]]},{"id":"ff3b1f14.69b7e","type":"change","z":"ac4d5daf.f2432","name":"on","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":383.1667652130127,"y":333.666690826416,"wires":[["22b825f4.ac698a"]]},{"id":"b794d8d4.7784b8","type":"change","z":"ac4d5daf.f2432","name":"","rules":[{"t":"set","p":"runTime","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":374.1666030883789,"y":424.66669273376465,"wires":[["22b825f4.ac698a"]]},{"id":"f63fe37d.29c1a","type":"change","z":"ac4d5daf.f2432","name":"off","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":381.9999237060547,"y":372.00001335144043,"wires":[["22b825f4.ac698a"]]},{"id":"f908838e.d0413","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":9,"width":0,"height":0,"passthru":false,"label":"OnCh3","tooltip":"","color":"","bgcolor":"","icon":"","payload":"on","payloadType":"str","topic":"Ch3","x":213.0000114440918,"y":524.0000228881836,"wires":[["f14acdb9.1577b"]]},{"id":"32b2fb2a.f3c804","type":"ui_button","z":"ac4d5daf.f2432","name":"","group":"d211a925.a79948","order":10,"width":0,"height":0,"passthru":false,"label":"OffCh3","tooltip":"","color":"","bgcolor":"","icon":"","payload":"off","payloadType":"str","topic":"Ch3","x":214.00000762939453,"y":566.0001049041748,"wires":[["aec2b22.b466c5"]]},{"id":"c418461f.809e88","type":"ui_text_input","z":"ac4d5daf.f2432","name":"","label":"how long (s) Ch3","tooltip":"","group":"d211a925.a79948","order":11,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"Ch3","x":170.00001525878906,"y":620.0000257492065,"wires":[["6b7902e8.59051c"]]},{"id":"e9d1fc3f.0ca2d","type":"switch","z":"ac4d5daf.f2432","name":"merge wires","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Ch3","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":587.9999389648438,"y":568.0000247955322,"wires":[["ff7ff3fc.e2142"]]},{"id":"f14acdb9.1577b","type":"change","z":"ac4d5daf.f2432","name":"on","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":398.1667652130127,"y":529.666690826416,"wires":[["e9d1fc3f.0ca2d"]]},{"id":"6b7902e8.59051c","type":"change","z":"ac4d5daf.f2432","name":"","rules":[{"t":"set","p":"runTime","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":389.1666030883789,"y":620.6666927337646,"wires":[["e9d1fc3f.0ca2d"]]},{"id":"aec2b22.b466c5","type":"change","z":"ac4d5daf.f2432","name":"off","rules":[{"t":"set","p":"sysStatus","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":396.9999237060547,"y":568.0000133514404,"wires":[["e9d1fc3f.0ca2d"]]},{"id":"d211a925.a79948","type":"ui_group","z":"","name":"all channels","tab":"edb965df.f9c828","order":1,"disp":true,"width":"6","collapse":false},{"id":"edb965df.f9c828","type":"ui_tab","z":"","name":"home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]