[ { "id": "b5a2f252.0b037", "type": "debug", "z": "104b402d.d590c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 530, "y": 140, "wires": [] }, { "id": "8b399f20.684bf", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 120, "wires": [ [ "527e64fd.b00fac" ] ] }, { "id": "527e64fd.b00fac", "type": "modbustcp-no-pooling-write", "z": "104b402d.d590c", "name": "Led petit", "dataType": "Coil", "adr": "100", "server": "941ddfe1.36349", "x": 300, "y": 100, "wires": [ [ "b5a2f252.0b037" ], [] ] }, { "id": "6e32744c.8b0bec", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 80, "wires": [ [ "527e64fd.b00fac" ] ] }, { "id": "1c6039f7.47f986", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 180, "wires": [ [ "c480d1.6eecaf3" ] ] }, { "id": "c480d1.6eecaf3", "type": "modbustcp-no-pooling-write", "z": "104b402d.d590c", "name": "Led vermell", "dataType": "Coil", "adr": "101", "server": "941ddfe1.36349", "x": 310, "y": 200, "wires": [ [ "b5a2f252.0b037" ], [] ] }, { "id": "24823779.bfaa98", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 220, "wires": [ [ "c480d1.6eecaf3" ] ] }, { "id": "217e4801.96dd78", "type": "modbustcp-no-pooling-read", "z": "104b402d.d590c", "name": "Botó GPIO4", "dataType": "Input", "adr": "100", "quantity": "1", "server": "941ddfe1.36349", "x": 310, "y": 280, "wires": [ [ "40e0d2df.50fc6c", "b2a79327.348b5" ], [] ] }, { "id": "8b481769.98a6e8", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 400, "wires": [ [ "20d98172.c0ba1e" ] ] }, { "id": "20d98172.c0ba1e", "type": "modbustcp-no-pooling-read", "z": "104b402d.d590c", "name": "LDR", "dataType": "InputRegister", "adr": "100", "quantity": "1", "server": "941ddfe1.36349", "x": 310, "y": 400, "wires": [ [ "b5a2f252.0b037" ], [] ] }, { "id": "f2184cd1.e97e7", "type": "inject", "z": "104b402d.d590c", "name": "", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 280, "wires": [ [ "217e4801.96dd78" ] ] }, { "id": "40e0d2df.50fc6c", "type": "delay", "z": "104b402d.d590c", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 330, "y": 340, "wires": [ [ "20d98172.c0ba1e" ] ] }, { "id": "b2a79327.348b5", "type": "function", "z": "104b402d.d590c", "name": "arr(0) -->", "func": "msg.payload = msg.payload[0];\nreturn msg;", "outputs": 1, "noerr": 0, "x": 480, "y": 260, "wires": [ [ "b5a2f252.0b037" ] ] }, { "id": "941ddfe1.36349", "type": "modbustcp-no-pooling-server", "z": "", "host": "192.168.1.12", "port": "502", "unit_id": "1" } ]