EndNode 4ch Relay Input Commands Node red

Hi Christian,

The simplest way to do this is to use the Wireless input method on the Wireless Gateway node. Here is a flow that demonstrates Turing on relay 1:

[
    {
        "id": "2380fa94b7c3d5ef",
        "type": "tab",
        "label": "Flow 5",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "843e8e7c515a8234",
        "type": "ncd-gateway-node",
        "z": "2380fa94b7c3d5ef",
        "name": "",
        "connection": "982da71980664144",
        "unknown_devices": true,
        "outputs": 2,
        "x": 790,
        "y": 520,
        "wires": [
            [],
            [
                "50f028d1be0e2510"
            ]
        ]
    },
    {
        "id": "7d6bb2d7fd6ceae1",
        "type": "inject",
        "z": "2380fa94b7c3d5ef",
        "name": "",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 290,
        "y": 520,
        "wires": [
            [
                "fa2bd0a7cde0dca1"
            ]
        ]
    },
    {
        "id": "fa2bd0a7cde0dca1",
        "type": "function",
        "z": "2380fa94b7c3d5ef",
        "name": "",
        "func": "msg = {};\nmsg.payload = {};\nmsg.payload.address = \"00:13:a2:00:41:db:79:51\";\nmsg.payload.data = [0xAA,0x07,0xBD,0x01,0xFD,0x01,0x01,0x01,0x00,0x6F];\n// msg.payload.data = [0xAA,0x02,0xFE,0x21,0xCB];\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 520,
        "wires": [
            [
                "843e8e7c515a8234"
            ]
        ]
    },
    {
        "id": "50f028d1be0e2510",
        "type": "debug",
        "z": "2380fa94b7c3d5ef",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1070,
        "y": 560,
        "wires": []
    },
    {
        "id": "982da71980664144",
        "type": "ncd-gateway-config",
        "name": "",
        "comm_type": "serial",
        "ip_address": "",
        "tcp_port": "2101",
        "port": "/dev/tty.usbserial-AC3VPU0N",
        "baudRate": "115200",
        "pan_id": "7fff",
        "rssi": false
    }
]

You will need to change the address variable in the function node to the address of your EndNode relay controller.

Full documentation for the command set to control EndNode devices can be found here: