Logitech Harmony Extra - Node

When I am trying to use the following node:

I get the following error msg:

4 Jan 21:28:41 - [red] Uncaught Exception:
4 Jan 21:28:41 - [error] TypeError: Cannot read properties of undefined (reading 'getActivities')
    at /home/Wurmi/.node-red/node_modules/node-red-contrib-harmony-extra/harmony/harmony-server.js:112:19
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 14.787s CPU time.

Nodered restarts after a frew seconds, but when i try to configure a node, the error appears again an nodered crashes again.

Some ideas?
Thanks for help!

If you go to the node details using the link you posted, then click the link to go to its github page you will find that the page no longer exists. That suggests the node has been abandoned. I think you will have to look for an alternative solution.

Use the harmony-websocket node instead, this works (using it myself)

Thanks for your answers i will try the websocket node.

I have wasted the half day to talk with my Projector over IP but it wont work.

[
    {
        "id": "65a360cdd86bb4b4",
        "type": "inject",
        "z": "3994a18a.3ad7be",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 180,
        "y": 4240,
        "wires": [
            [
                "eef6e7468e6ceac7",
                "feb72608bb4cdc78"
            ]
        ]
    },
    {
        "id": "d2b61f98656d82bf",
        "type": "function",
        "z": "3994a18a.3ad7be",
        "name": "EIN",
        "func": "// Funktion fĂĽr Node-RED\nconst buffer1 = Buffer.from([80, 74, 82, 69, 81]);\n\n// Erste Nachricht senden\nconst msg1 = {\n    payload: buffer1,\n    topic: \"ersterBufferwert\",\n};\n\nnode.send(msg1);\n\n// Wartezeit (hier 1000 Millisekunden, anpassbar)\nsetTimeout(() => {\n    // Zweite Nachricht erstellen und senden\n    const buffer2 = Buffer.from([33, 137, 1, 80, 87, 49, 10]);\n    const msg2 = {\n        payload: buffer2,\n        topic: \"zweiterBufferwert\",\n    };\n    node.send(msg2);\n}, 1000);\n\nreturn null; // RĂĽckgabewert fĂĽr den Function-Node\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 570,
        "y": 4240,
        "wires": [
            [
                "ae5576eecdf42d4f",
                "feb72608bb4cdc78"
            ]
        ]
    },
    {
        "id": "feb72608bb4cdc78",
        "type": "tcp request",
        "z": "3994a18a.3ad7be",
        "name": "",
        "server": "192.168.1.23",
        "port": "20554",
        "out": "time",
        "ret": "buffer",
        "splitc": "0",
        "newline": "",
        "trim": false,
        "tls": "",
        "x": 610,
        "y": 4180,
        "wires": [
            [
                "7c5ac21e4e90eb5d"
            ]
        ]
    },
    {
        "id": "d29da55d187b0a91",
        "type": "comment",
        "z": "3994a18a.3ad7be",
        "name": "Beamer steuern",
        "info": "https://support.jvc.com/consumer/support/documents/DILAremoteControlGuide.pdf",
        "x": 180,
        "y": 4180,
        "wires": []
    },
    {
        "id": "ae5576eecdf42d4f",
        "type": "debug",
        "z": "3994a18a.3ad7be",
        "name": "debug 56",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 740,
        "y": 4240,
        "wires": []
    },
    {
        "id": "eef6e7468e6ceac7",
        "type": "delay",
        "z": "3994a18a.3ad7be",
        "name": "",
        "pauseType": "delay",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 380,
        "y": 4240,
        "wires": [
            [
                "d2b61f98656d82bf"
            ]
        ]
    },
    {
        "id": "7c5ac21e4e90eb5d",
        "type": "debug",
        "z": "3994a18a.3ad7be",
        "name": "debug 57",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 4180,
        "wires": []
    },
    {
        "id": "9762d3d3b1744554",
        "type": "function",
        "z": "3994a18a.3ad7be",
        "name": "AUS",
        "func": "// Funktion fĂĽr Node-RED\nconst buffer1 = Buffer.from([80, 74, 82, 69, 81]);\n\n// Erste Nachricht senden\nconst msg1 = {\n    payload: buffer1,\n    topic: \"ersterBufferwert\",\n};\n\nnode.send(msg1);\n\n// Wartezeit (hier 1000 Millisekunden, anpassbar)\nsetTimeout(() => {\n    // Zweite Nachricht erstellen und senden\n    const buffer2 = Buffer.from([33, 137, 1, 80, 87, 48, 10]);\n    const msg2 = {\n        payload: buffer2,\n        topic: \"zweiterBufferwert\",\n    };\n    node.send(msg2);\n}, 1000);\n\nreturn null; // RĂĽckgabewert fĂĽr den Function-Node\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 570,
        "y": 4280,
        "wires": [
            [
                "feb72608bb4cdc78",
                "f49a4b1bb8aa7eed"
            ]
        ]
    },
    {
        "id": "2f14f192f995d4cd",
        "type": "inject",
        "z": "3994a18a.3ad7be",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 180,
        "y": 4280,
        "wires": [
            [
                "1dffe8fc5b0c8fcc",
                "feb72608bb4cdc78"
            ]
        ]
    },
    {
        "id": "1dffe8fc5b0c8fcc",
        "type": "delay",
        "z": "3994a18a.3ad7be",
        "name": "",
        "pauseType": "delay",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 380,
        "y": 4280,
        "wires": [
            [
                "9762d3d3b1744554"
            ]
        ]
    },
    {
        "id": "f49a4b1bb8aa7eed",
        "type": "debug",
        "z": "3994a18a.3ad7be",
        "name": "debug 58",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 740,
        "y": 4280,
        "wires": []
    }
]

I think that i am very close - but the JVC N5 wont accept my cmd

Thanks for your help
The websocket seems to be working

1 Like

(Maybe mark the thread as solved.)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.