Flow wont import back

i copied like 300 nodes into an text document and cant get them to import back in


uses this site to find error and dont understand how to fix error

[]{"id":"10245beb.ab2c9c","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-One","group":"2059e38b.585704","order":1,"width":"0","height":"0","passthru":false,"label":"Relay-One","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-One","payloadType":"str","topic":"","x":1974,"y":271,"wires":[["b71c61c7.56176"]]},{"id":"2b435857.c278b8","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1664,"y":185,"wires":[["10245beb.ab2c9c"]]},{"id":"d27cab8.96bb558","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1469,"y":185,"wires":[["dd7a7ab8.5255f"]]},{"id":"b71c61c7.56176","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1469,"y":230,"wires":[["2b435857.c278b8","dd8be9e7.6233b"],["dd7a7ab8.5255f","8776ed54.48a7c8"]]},{"id":"dd7a7ab8.5255f","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1664,"y":230,"wires":[["10245beb.ab2c9c"]]},{"id":"891a0437.621458","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-One\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2089,"y":147,"wires":[["3eac3837.1aab88"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"3eac3837.1aab88","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2283,"y":184,"wires":[[],["aee9ebc1.627e5"],[]]},{"id":"9e3464ab.aaaea","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-One\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2089,"y":207,"wires":[["3eac3837.1aab88"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"aee9ebc1.627e5","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2324,"y":267,"wires":[]},{"id":"948ecba2.1eb3","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-One\",msg.payload);","outputs":1,"noerr":0,"x":1762,"y":304,"wires":[[]]},{"id":"5b0bacd0.2be844","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-One","group":"6117af8b.e73b18","order":4,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"1","max":"1","step":1,"x":1605,"y":305,"wires":[["948ecba2.1eb3"]]},{"id":"74452a75.574f44","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Two","group":"2059e38b.585704","order":2,"width":"0","height":"0","passthru":false,"label":"Relay-Two","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Two","payloadType":"str","topic":"","x":1964,"y":486,"wires":[["ba20f517.c7e7d8"]]},{"id":"9e2c99ae.dc0f18","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1654,"y":400,"wires":[["74452a75.574f44"]]},{"id":"723f84cb.acdd64","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1459,"y":400,"wires":[["ac8f837c.93546"]]},{"id":"ba20f517.c7e7d8","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1459,"y":445,"wires":[["9e2c99ae.dc0f18","87d7ebf7.df0af"],["ac8f837c.93546","d58eac8e.3fac3"]]},{"id":"ac8f837c.93546","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1654,"y":445,"wires":[["74452a75.574f44"]]},{"id":"84bdb2b8.eca61","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Two\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2079,"y":362,"wires":[["1b621eef.9ecc81"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"1b621eef.9ecc81","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2273,"y":399,"wires":[[],["2c997af2.9fd6d6"],[]]},{"id":"f230742a.6e8488","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Two\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2079,"y":422,"wires":[["1b621eef.9ecc81"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"2c997af2.9fd6d6","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2318,"y":478,"wires":[]},{"id":"b786fafc.8434a8","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Two\",msg.payload);","outputs":1,"noerr":0,"x":1752,"y":519,"wires":[[]]},{"id":"10aeea48.52edde","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Two","group":"6117af8b.e73b18","order":5,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"2","max":"2","step":"2","x":1595,"y":520,"wires":[["b786fafc.8434a8"]]},{"id":"3d9de287.24ac3e","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Three","group":"2059e38b.585704","order":3,"width":"0","height":"0","passthru":false,"label":"Relay-Three","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Three","payloadType":"str","topic":"","x":1979,"y":706,"wires":[["11467239.d56296"]]},{"id":"5ef70c5f.7f5e7c","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1669,"y":620,"wires":[["3d9de287.24ac3e"]]},{"id":"de71a0b7.dc867","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1474,"y":620,"wires":[["90c5c9e8.5ab21"]]},{"id":"11467239.d56296","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }","outputs":2,"noerr":0,"x":1474,"y":665,"wires":[["5ef70c5f.7f5e7c","6f8e606b.b79068"],["90c5c9e8.5ab21","4997fcfb.6ae66c"]]},{"id":"90c5c9e8.5ab21","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1669,"y":665,"wires":[["3d9de287.24ac3e"]]},{"id":"9c4c234e.7b726","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Three\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2094,"y":588,"wires":[["dcda6817.813a88"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"dcda6817.813a88","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2288,"y":619,"wires":[["3e114e1e.f54332"],["3e114e1e.f54332"],["3e114e1e.f54332"]]},{"id":"5fbb3ee9.56c4b8","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Three\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2094,"y":642,"wires":[["dcda6817.813a88"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"3e114e1e.f54332","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2333,"y":698,"wires":[]},{"id":"a8e10b6d.09f9e8","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Three\",msg.payload);","outputs":1,"noerr":0,"x":1767,"y":739,"wires":[[]]},{"id":"9b4fc68a.fb63c","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Three","group":"6117af8b.e73b18","order":6,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"3","max":"3","step":"3","x":1610,"y":740,"wires":[["a8e10b6d.09f9e8"]]},{"id":"8dbf4900.1823e8","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Four","group":"2059e38b.585704","order":4,"width":"0","height":"0","passthru":false,"label":"Relay-Four","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Four","payloadType":"str","topic":"","x":1987,"y":927,"wires":[["4601ae0a.d6b79"]]},{"id":"fdcc979a.261358","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1677,"y":841,"wires":[["8dbf4900.1823e8"]]},{"id":"f02778ab.0e07c","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1482,"y":841,"wires":[["78805081.0e2738"]]},{"id":"4601ae0a.d6b79","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1482,"y":886,"wires":[["fdcc979a.261358","da8b575.208d6a8"],["78805081.0e2738","36cb1e1a.221eaa"]]},{"id":"78805081.0e2738","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1677,"y":886,"wires":[["8dbf4900.1823e8"]]},{"id":"3f838e37.1e32da","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Four\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2102,"y":803,"wires":[["8542c09.317234"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"8542c09.317234","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2296,"y":840,"wires":[[],["64d9dffa.e37aa"],[]]},{"id":"9a2da1b8.542408","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Four\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2102,"y":863,"wires":[["8542c09.317234"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"64d9dffa.e37aa","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2341,"y":919,"wires":[]},{"id":"222fdf15.5bbdc","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Four\",msg.payload);","outputs":1,"noerr":0,"x":1775,"y":960,"wires":[[]]},{"id":"bbc9f59d.20bd6","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Four","group":"6117af8b.e73b18","order":7,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"4","max":"4","step":"4","x":1618,"y":961,"wires":[["222fdf15.5bbdc"]]},{"id":"4541aef.a91f65","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Five","group":"2059e38b.585704","order":5,"width":"0","height":"0","passthru":false,"label":"Relay-Five","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Five","payloadType":"str","topic":"","x":1999,"y":1152,"wires":[["f30316d9.14e388"]]},{"id":"891f9f08.57b9f","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1689,"y":1066,"wires":[["4541aef.a91f65"]]},{"id":"ffe58939.560c98","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1494,"y":1066,"wires":[["536f3af7.6a2734"]]},{"id":"f30316d9.14e388","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1494,"y":1111,"wires":[["891f9f08.57b9f","83420cb0.f4ee7"],["536f3af7.6a2734","48ab83ac.e9e3dc"]]},{"id":"536f3af7.6a2734","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1689,"y":1111,"wires":[["4541aef.a91f65"]]},{"id":"cf13f258.cba51","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Five\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2122,"y":1032,"wires":[["feb9f77e.9a8f58"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"feb9f77e.9a8f58","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2308,"y":1065,"wires":[[],["a834c960.6c219"],[]]},{"id":"2225d42.2fa4aac","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Five\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2114,"y":1088,"wires":[["feb9f77e.9a8f58"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"a834c960.6c219","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2353,"y":1144,"wires":[]},{"id":"cf61bae5.2d1448","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Five\",msg.payload);","outputs":1,"noerr":0,"x":1787,"y":1185,"wires":[[]]},{"id":"d815a874.7b325","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Five","group":"6117af8b.e73b18","order":8,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"5","max":"5","step":"5","x":1630,"y":1186,"wires":[["cf61bae5.2d1448"]]},{"id":"a5586ec5.acf8f8","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Six","group":"2059e38b.585704","order":6,"width":"0","height":"0","passthru":false,"label":"Relay-Six","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Six","payloadType":"str","topic":"","x":2000,"y":1359,"wires":[["4d899efc.0a4fe8"]]},{"id":"805212d.08aeaf","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1700,"y":1273,"wires":[["a5586ec5.acf8f8"]]},{"id":"eca0e8b1.b77f38","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1505,"y":1273,"wires":[["42a1387b.cfe41"]]},{"id":"4d899efc.0a4fe8","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1505,"y":1318,"wires":[["805212d.08aeaf","8735c5fe.7da598"],["42a1387b.cfe41","173a827e.4dd6ae"]]},{"id":"42a1387b.cfe41","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1700,"y":1318,"wires":[["a5586ec5.acf8f8"]]},{"id":"71aa9193.a89908","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Six\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2125,"y":1235,"wires":[["6fef3406.405c4c"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"6fef3406.405c4c","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2319,"y":1272,"wires":[[],["b3dd2cea.0acc9"],[]]},{"id":"d1cb0efc.69e0b8","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Six\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2125,"y":1295,"wires":[["6fef3406.405c4c"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"b3dd2cea.0acc9","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2364,"y":1351,"wires":[]},{"id":"4b632e9b.329928","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Six\",msg.payload);","outputs":1,"noerr":0,"x":1798,"y":1392,"wires":[[]]},{"id":"a388baa0.3885a8","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Six","group":"6117af8b.e73b18","order":9,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"6","max":"6","step":"6","x":1641,"y":1393,"wires":[["4b632e9b.329928"]]},{"id":"3af0e0e2.5b4","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Seven","group":"2059e38b.585704","order":7,"width":"0","height":"0","passthru":false,"label":"Relay-Seven","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Seven","payloadType":"str","topic":"","x":2017,"y":1573,"wires":[["915cd83f.b40258"]]},{"id":"c0767948.5d3d98","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1707,"y":1487,"wires":[["3af0e0e2.5b4"]]},{"id":"f803dd26.c598c8","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1512,"y":1487,"wires":[["25ac870e.81c74"]]},{"id":"915cd83f.b40258","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1512,"y":1532,"wires":[["c0767948.5d3d98","2a54a61.64a1f5a"],["25ac870e.81c74","f753217d.29773"]]},{"id":"25ac870e.81c74","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1707,"y":1532,"wires":[["3af0e0e2.5b4"]]},{"id":"b7c0497e.2ab79","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Seven\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2132,"y":1449,"wires":[["17f3c179.73f6ff"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"17f3c179.73f6ff","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2326,"y":1486,"wires":[[],["3136607b.b713b"],[]]},{"id":"a1f23008.9eb998","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Seven\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2132,"y":1509,"wires":[["17f3c179.73f6ff"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"3136607b.b713b","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2371,"y":1565,"wires":[]},{"id":"527ab81c.5d595","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Seven\",msg.payload);","outputs":1,"noerr":0,"x":1805,"y":1606,"wires":[[]]},{"id":"eb68d14c.3635","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Seven","group":"6117af8b.e73b18","order":10,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"7","max":"7","step":"7","x":1648,"y":1607,"wires":[["527ab81c.5d595"]]},{"id":"8945fd05.ccc9c","type":"ui_button","z":"e4d8382f.f4813","name":"Relay-Eight","group":"2059e38b.585704","order":8,"width":"0","height":"0","passthru":false,"label":"Relay-Eight","color":"","bgcolor":"{{colour}}","icon":"","payload":"Relay-Eight","payloadType":"str","topic":"","x":2006,"y":1821,"wires":[["1e562f13.117d51"]]},{"id":"6808bb7.f9a38c4","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1696,"y":1735,"wires":[["8945fd05.ccc9c"]]},{"id":"6f2406.7e6bd3fc","type":"inject","z":"e4d8382f.f4813","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":1501,"y":1735,"wires":[["1d045cca.b9aabb"]]},{"id":"1e562f13.117d51","type":"function","z":"e4d8382f.f4813","name":"state","func":"var state = context.state || false;\nstate = !state;\ncontext.state = state;\nif (state) { return [msg,null]; }\nelse { return [null,msg]; }\n","outputs":2,"noerr":0,"x":1501,"y":1780,"wires":[["6808bb7.f9a38c4","ca8c925c.44ba"],["1d045cca.b9aabb","fee88a06.36f268"]]},{"id":"1d045cca.b9aabb","type":"change","z":"e4d8382f.f4813","name":"","rules":[{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1696,"y":1780,"wires":[["8945fd05.ccc9c"]]},{"id":"782eb348.40ddec","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Eight\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" on\";\nreturn msg;","outputs":1,"noerr":0,"x":2121,"y":1697,"wires":[["f674d656.6c9ec8"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"f674d656.6c9ec8","type":"exec","z":"e4d8382f.f4813","command":"megaio","addpay":true,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"MEGA-IO","x":2315,"y":1734,"wires":[[],["e775e1e8.3ef5c8"],[]]},{"id":"e105f49b.91f5f","type":"function","z":"e4d8382f.f4813","name":"Get Params","func":"var StackValue = global.get(\"StackLevel\");\nvar RelayValue = global.get(\"Relay-Eight\");\nmsg.payload = StackValue+msg.payload+RelayValue+\" off\";\nreturn msg;","outputs":1,"noerr":0,"x":2121,"y":1757,"wires":[["f674d656.6c9ec8"]],"inputLabels":["IN"],"outputLabels":["OUT"]},{"id":"e775e1e8.3ef5c8","type":"debug","z":"e4d8382f.f4813","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2360,"y":1813,"wires":[]},{"id":"1f157f1b.1da629","type":"function","z":"e4d8382f.f4813","name":"Save Relay","func":"global.set(\"Relay-Eight\",msg.payload);","outputs":1,"noerr":0,"x":1794,"y":1854,"wires":[[]]},{"id":"4220fb7e.53b0cc","type":"ui_numeric","z":"e4d8382f.f4813","name":"Relay","label":"Relay-Eight","group":"6117af8b.e73b18","order":11,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":"8","max":"8","step":"8","x":1637,"y":1855,"wires":[["1f157f1b.1da629"]]},{"id":"dd8be9e7.6233b","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1890,"y":147,"wires":[["891a0437.621458"]]},{"id":"8776ed54.48a7c8","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1892,"y":204,"wires":[["9e3464ab.aaaea"]]},{"id":"ca8c925c.44ba","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1937,"y":1701,"wires":[["782eb348.40ddec"]]},{"id":"fee88a06.36f268","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1939,"y":1758,"wires":[["e105f49b.91f5f"]]},{"id":"2a54a61.64a1f5a","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1946,"y":1450,"wires":[["b7c0497e.2ab79"]]},{"id":"f753217d.29773","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1948,"y":1507,"wires":[["a1f23008.9eb998"]]},{"id":"8735c5fe.7da598","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1944,"y":1236,"wires":[["71aa9193.a89908"]]},{"id":"173a827e.4dd6ae","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1946,"y":1293,"wires":[["d1cb0efc.69e0b8"]]},{"id":"83420cb0.f4ee7","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1935,"y":1035,"wires":[["cf13f258.cba51"]]},{"id":"48ab83ac.e9e3dc","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1937,"y":1092,"wires":[["2225d42.2fa4aac"]]},{"id":"da8b575.208d6a8","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1930,"y":806,"wires":[["3f838e37.1e32da"]]},{"id":"36cb1e1a.221eaa","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1932,"y":863,"wires":[["9a2da1b8.542408"]]},{"id":"6f8e606b.b79068","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1927,"y":586,"wires":[["9c4c234e.7b726"]]},{"id":"4997fcfb.6ae66c","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1929,"y":643,"wires":[["5fbb3ee9.56c4b8"]]},{"id":"87d7ebf7.df0af","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1913,"y":367,"wires":[["84bdb2b8.eca61"]]},{"id":"d58eac8e.3fac3","type":"change","z":"e4d8382f.f4813","name":"==","rules":[{"t":"set","p":"payload","pt":"msg","to":" rwrite ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1915,"y":424,"wires":[["f230742a.6e8488"]]},{"id":"2059e38b.585704","type":"ui_group","z":"","name":"Relay 1-8","tab":"13f7e980.24574f","order":2,"disp":true,"width":"6","collapse":false},{"id":"6117af8b.e73b18","type":"ui_group","z":"","name":"Hidden","tab":"999a958e.70c328","order":2,"disp":true,"width":"6","collapse":false},{"id":"13f7e980.24574f","type":"ui_tab","z":"","name":"Slagboom Sim","icon":"dashboard"},{"id":"999a958e.70c328","type":"ui_tab","z":"","name":"RELAY TEST","icon":"dashboard"}

thanks in advance

Some how you have moved the ] that should be at the very end of the JSON string to be at the 2nd character.

If you move it back to the end, it is valid JSON again.

@knolleary thank you very much.