[ { "id": "7316fee7.31968", "type": "debug", "z": "f6cd9997.932c3", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 570, "y": 140, "wires": [] }, { "id": "71617956.24734", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 120, "wires": [ [ "73698710.fef12" ] ] }, { "id": "73698710.fef12", "type": "modbustcp-no-pooling-write", "z": "f6cd9997.932c3", "name": "Led petit", "dataType": "Coil", "adr": "100", "server": "5b3658d8.d303b", "x": 340, "y": 100, "wires": [ [ "7316fee7.31968" ], [] ] }, { "id": "bbd82222.024748", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 80, "wires": [ [ "73698710.fef12" ] ] }, { "id": "d084420f.0be1", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 180, "wires": [ [ "267b9711.c9eb3" ] ] }, { "id": "267b9711.c9eb3", "type": "modbustcp-no-pooling-write", "z": "f6cd9997.932c3", "name": "Led vermell", "dataType": "Coil", "adr": "101", "server": "5b3658d8.d303b", "x": 350, "y": 200, "wires": [ [ "7316fee7.31968" ], [] ] }, { "id": "5e1d8156.811818", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 220, "wires": [ [ "267b9711.c9eb3" ] ] }, { "id": "b13ff14f.295b78", "type": "modbustcp-no-pooling-read", "z": "f6cd9997.932c3", "name": "Botó GPIO4", "dataType": "Input", "adr": "100", "quantity": "1", "server": "5b3658d8.d303b", "x": 350, "y": 280, "wires": [ [ "912d9993.cab6b", "dd7961fc.80e808" ], [] ] }, { "id": "aad75846.ee3428", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 400, "wires": [ [ "643832b2.306ae4" ] ] }, { "id": "643832b2.306ae4", "type": "modbustcp-no-pooling-read", "z": "f6cd9997.932c3", "name": "LDR", "dataType": "InputRegister", "adr": "100", "quantity": "1", "server": "5b3658d8.d303b", "x": 350, "y": 400, "wires": [ [ "7316fee7.31968" ], [] ] }, { "id": "ddfeedae.82a478", "type": "inject", "z": "f6cd9997.932c3", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 190, "y": 280, "wires": [ [ "b13ff14f.295b78" ] ] }, { "id": "912d9993.cab6b", "type": "delay", "z": "f6cd9997.932c3", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 370, "y": 340, "wires": [ [ "643832b2.306ae4" ] ] }, { "id": "dd7961fc.80e808", "type": "function", "z": "f6cd9997.932c3", "name": "arr(0) -->", "func": "msg.payload = msg.payload[0];\nreturn msg;", "outputs": 1, "noerr": 0, "x": 520, "y": 260, "wires": [ [ "7316fee7.31968" ] ] }, { "id": "5b3658d8.d303b", "type": "modbustcp-no-pooling-server", "z": "", "host": "172.20.20.235", "port": "502", "unit_id": "1" } ]