[ { "id": "75774b4f.cc6f0c", "type": "debug", "z": "721e64ef.bbda04", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 490, "y": 140, "wires": [] }, { "id": "72a9ed87.0051d4", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 120, "wires": [ [ "d310be4e.9931f" ] ] }, { "id": "d310be4e.9931f", "type": "modbustcp-no-pooling-write", "z": "721e64ef.bbda04", "name": "Led petit", "dataType": "Coil", "adr": "100", "server": "e3a97c69.ad8d58", "x": 260, "y": 100, "wires": [ [ "75774b4f.cc6f0c" ], [] ] }, { "id": "b9e025f4.6fdf18", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 80, "wires": [ [ "d310be4e.9931f" ] ] }, { "id": "3ca3a1cb.3f7476", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 180, "wires": [ [ "2078f66.502350a" ] ] }, { "id": "2078f66.502350a", "type": "modbustcp-no-pooling-write", "z": "721e64ef.bbda04", "name": "Led vermell", "dataType": "Coil", "adr": "101", "server": "e3a97c69.ad8d58", "x": 270, "y": 200, "wires": [ [ "75774b4f.cc6f0c" ], [] ] }, { "id": "ddea684f.3f878", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 220, "wires": [ [ "2078f66.502350a" ] ] }, { "id": "8d6ba3fb.b1d688", "type": "modbustcp-no-pooling-read", "z": "721e64ef.bbda04", "name": "Botó GPIO4", "dataType": "Input", "adr": "100", "quantity": "1", "server": "e3a97c69.ad8d58", "x": 270, "y": 280, "wires": [ [ "22c08077.45e108", "6e7b5d95.488ae4" ], [] ] }, { "id": "593e433f.db3034", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 400, "wires": [ [ "285032ee.9c7ae6" ] ] }, { "id": "285032ee.9c7ae6", "type": "modbustcp-no-pooling-read", "z": "721e64ef.bbda04", "name": "LDR", "dataType": "InputRegister", "adr": "100", "quantity": "1", "server": "e3a97c69.ad8d58", "x": 270, "y": 400, "wires": [ [ "75774b4f.cc6f0c" ], [] ] }, { "id": "c3b1af5b.a4b3e", "type": "inject", "z": "721e64ef.bbda04", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 280, "wires": [ [ "8d6ba3fb.b1d688" ] ] }, { "id": "22c08077.45e108", "type": "delay", "z": "721e64ef.bbda04", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 290, "y": 340, "wires": [ [ "285032ee.9c7ae6" ] ] }, { "id": "6e7b5d95.488ae4", "type": "function", "z": "721e64ef.bbda04", "name": "arr(0) -->", "func": "msg.payload = msg.payload[0];\nreturn msg;", "outputs": 1, "noerr": 0, "x": 440, "y": 260, "wires": [ [ "75774b4f.cc6f0c" ] ] }, { "id": "e3a97c69.ad8d58", "type": "modbustcp-no-pooling-server", "z": "", "host": "192.168.1.99", "port": "502", "unit_id": "1" } ]