lopelex / node-red-contrib-harmony

Node-RED integration for Harmony hub
MIT License
13 stars 6 forks source link

crashed node-red #27

Open svefro opened 1 year ago

svefro commented 1 year ago

node-red crashed with this error.

I was able to quickly disable the server node from the admin panel when node-red restarted and when i enabled it again it worked. There must be a bug somwhere

node-red-log

     Jun 00:04:21 - [red] Uncaught Exception:
    2 Jun 00:04:21 - [error] TypeError: Cannot read properties of null (reading 'open')
        at Harmony.sendCommand (/home/username/.node-red/node_modules/harmony-websocket/lib/harmony-websocket.js:411:29)
        at /home/username/.node-red/node_modules/node-red-contrib-harmony-websocket/lib/hub.js:258:46
        at processTicksAndRejections (node:internal/process/task_queues:95:5)
        at runNextTicks (node:internal/process/task_queues:64:3)
        at process.processImmediate (node:internal/timers:447:9)

if unable to get to the admin panel:

add "d": true, on the 'harmonyws-server' node in flows.json

"id": "b9d90a4d.371b58",
"type": "harmonyws-server",
"d": true,
"name": "Livingroom HUB",
"ip": "192.168.1.162",
"debug": false