[{"id":"f7a39507287dac0f","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":1,"width":"2","height":"1","passthru":false,"label":"Spot","tooltip":"","color":"optional text/icon color","bgcolor":"optional background color","className":"","icon":"","payload":"48","payloadType":"num","topic":"topic","topicType":"msg","x":530,"y":340,"wires":[["4758aa16e95ac4f6"]]},{"id":"2daeafc2fe983421","type":"udp in","z":"8c312104f03a1669","name":"PLC Receiver","iface":"","port":"1881","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":110,"y":380,"wires":[["c861755ddd885fd4","95f51235a4dc1fb3"]]},{"id":"12900f480bd8b948","type":"function","z":"8c312104f03a1669","name":"Set","func":"var send = new Array();\nsend = [129,8,0,0,126,37,0,0,0,6];\nvar cs = send.reduce((pv, cv) => pv + cv, 0);\nsend.push(cs % 256);\nsend.splice(0,0,170,85);\nmsg.payload = \"\";\nfor (let i in send) msg.payload = msg.payload.concat(String.fromCharCode(send[i]));\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":730,"y":160,"wires":[["b3d74fe5470785b0","20f1909ea25d5b27"]]},{"id":"20f1909ea25d5b27","type":"udp out","z":"8c312104f03a1669","name":"","addr":"127.0.0.1","iface":"","port":"1881","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":950,"y":380,"wires":[]},{"id":"c861755ddd885fd4","type":"debug","z":"8c312104f03a1669","name":"A","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":170,"y":160,"wires":[]},{"id":"7c21d9d58920be29","type":"debug","z":"8c312104f03a1669","name":"B","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":350,"y":160,"wires":[]},{"id":"b3d74fe5470785b0","type":"debug","z":"8c312104f03a1669","name":"C","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":910,"y":160,"wires":[]},{"id":"fcefa3d211ac4742","type":"inject","z":"8c312104f03a1669","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":540,"y":160,"wires":[["12900f480bd8b948"]]},{"id":"95f51235a4dc1fb3","type":"function","z":"8c312104f03a1669","name":"Receive","func":"var rec = new Array;\nvar fault = \"\";\nfor (let i=0; i<msg.payload.length; i++) rec[i] = msg.payload.charCodeAt(i);\nif ((rec[0] == 170) && (rec[1] == 85)) {\n rec.splice(0,2);\n var rcs = rec.pop();\n var pcs = rec.reduce((pv, cv) => pv + cv, 0);\n if (rcs != (pcs % 256)) fault = \"CS hiba!\";\n}\nelse fault = \"Átviteli hiba!\";\nif (fault == \"\") msg.payload = rec.toString();\nelse msg.payload = fault;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":300,"y":380,"wires":[["7c21d9d58920be29"]]},{"id":"4758aa16e95ac4f6","type":"function","z":"8c312104f03a1669","name":"On/Off","func":"var send = new Array();\nsend = [250,240,130,9,0,0,127,0,0,0,0,1,msg.payload];\nvar cs = send.reduce((pv, cv) => pv + cv, 0);\nsend.push(cs % 256);\nsend.splice(0,0,170,85);\nmsg.payload = \"\";\nfor (let i in send) msg.payload = msg.payload.concat(String.fromCharCode(send[i]));\nmsg.topic = msg.payload.length;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":730,"y":380,"wires":[["20f1909ea25d5b27","b3d74fe5470785b0"]]},{"id":"ac47f2d5240c0b3f","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":1,"width":"2","height":"1","passthru":false,"label":"Nappali","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"22","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":220,"wires":[["4758aa16e95ac4f6"]]},{"id":"ea51b2ef270caae3","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":2,"width":"2","height":"1","passthru":false,"label":"Olvasó","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"21","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":260,"wires":[["4758aa16e95ac4f6"]]},{"id":"43e9bf3ef12b83b5","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":3,"width":"2","height":"1","passthru":false,"label":"Dolgozó","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"25","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":300,"wires":[["4758aa16e95ac4f6"]]},{"id":"f7a2dcb1c26f5902","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":4,"width":"2","height":"1","passthru":false,"label":"Oldalfal","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"30","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":380,"wires":[["4758aa16e95ac4f6"]]},{"id":"501f59028a9ac1d9","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":5,"width":"2","height":"1","passthru":false,"label":"Sólámpa","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"29","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":420,"wires":[["4758aa16e95ac4f6"]]},{"id":"cee7ba676f8d487a","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":6,"width":"2","height":"1","passthru":false,"label":"Előtér","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"27","payloadType":"num","topic":"topic","topicType":"msg","x":530,"y":460,"wires":[["4758aa16e95ac4f6"]]},{"id":"7fa589bdcb15bc03","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":7,"width":"2","height":"1","passthru":false,"label":"Irányfény","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"28","payloadType":"num","topic":"topic","topicType":"msg","x":540,"y":500,"wires":[["4758aa16e95ac4f6"]]},{"id":"afcde364ca5e12e1","type":"ui_button","z":"8c312104f03a1669","name":"","group":"5ecce8e816abc178","order":8,"width":"2","height":"1","passthru":false,"label":"Étkező","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"24","payloadType":"num","topic":"topic","topicType":"msg","x":530,"y":540,"wires":[["4758aa16e95ac4f6"]]},{"id":"5ecce8e816abc178","type":"ui_group","name":"Emelet","tab":"37b5116cd2af04e9","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"37b5116cd2af04e9","type":"ui_tab","name":"Világítás","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Admin Edit: surround code in code block!