-
Platform information:
- Hardware: Raspberry PI4
- OS: openhabian
- Java Runtime Environment: included in openhab 5.0
- openHAB version: 5.0
Good evening,
I’ve been trying to get a new installation of openhab + node-red up and running for a couple of weeks. I have tried the same configuration that I have on my other computer with openhab and it works perfectly.

The problem arises when I start configuring the first openhab node and defining the controller. When I activate it, I get this error that completely blocks node-red. The error I get is the following:
[red] Uncaught Exception:
2 Aug 23:07:08 - [error] TypeError: config.port.trim is not a function
at getConnectionString (/home/openhabian/.node-red/node_modules/node-red-contrib-openhab3/77-openhab2.js:54:42)
at startEventSource (/home/openhabian/.node-red/node_modules/node-red-contrib-openhab3/77-openhab2.js:217:20)
at Timeout._onTimeout (/home/openhabian/.node-red/node_modules/node-red-contrib-openhab3/77-openhab2.js:317:7)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
To get node-red working again, I need to delete the controller and node definitions and wait for it to restart to instantiate.
Has this happened to anyone else? I’ve reinstalled the system from scratch a couple of times, but the problem remains the same. Could it be due to the latest version of openhab? (openHAB 5.0.0)
I’m desperate and don’t know what to do. My knowledge is limited, and I’m stuck here… Can anyone help me?
Thanks in advance!