# Node-red-contrib-openhab3

**URL:** <https://community.openhab.org/t/node-red-contrib-openhab3/165279>\
**Category:** Installation\
**Tags:** node-red\
**Created:** [August 2, 2025, 10:51pm UTC](https://community.openhab.org/t/node-red-contrib-openhab3/165279 "2025-08-02T22:51:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Lamich\_Arocas](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@Luis\_Lamich\_Arocas](https://community.openhab.org/u/Luis_Lamich_Arocas)\
**Post date:** [August 2, 2025, 10:51pm UTC](https://community.openhab.org/t/node-red-contrib-openhab3/165279/1 "2025-08-02T22:51:13Z")

</div>

- Platform information:

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.

![image](https://community.openhab.org/images/transparent.png)

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!

---

<div class="post-metadata">

**Author:** ![ricardoj](https://community.openhab.org/user_avatar/community.openhab.org/ricardoj/32/192309_2.png) [@ricardoj](https://community.openhab.org/u/ricardoj)\
**Post date:** [October 10, 2025, 12:33am UTC](https://community.openhab.org/t/node-red-contrib-openhab3/165279/2 "2025-10-10T00:33:14Z")

</div>

Hi! Did you try MQTT to integrate openHAB \<==\> NodeRed?

This way the integration / communication can be achieved.
