# Node-red Homebridge

**URL:** <https://community.gladysassistant.com/t/node-red-homebridge/9644>\
**Category:** Configuration\
**Tags:** node-red\
**Created:** [Juillet 16, 2025, 12:27 UTC](https://community.gladysassistant.com/t/node-red-homebridge/9644 "2025-07-16T12:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Juillet 16, 2025, 12:27 UTC](https://community.gladysassistant.com/t/node-red-homebridge/9644/1 "2025-07-16T12:27:57Z")

</div>

Bonjour,

Je suis en train d’essayer de faire communiquer homebridge avec mon container node-red intégré à Gladys mais node-red n’arrive pas à découvrir les périphériques qui sont dans homebridge.

Il faudrait que le container node-red soit lancé avec mode network=host mais il semble qu’il se lance en mode bridge.

> <https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues/101>
>
> I'm having trouble setting up this plug-in. The error I receive is as follows:
> …2/12/2022, 11:01:05 PM\[node: d503c33b6a02dd0a\](http://(ip):(port)/#)
> msg : string\[22\]
> "437:Can't find device "
> 
> This plugin is running alongside node-red-contrib-home-assistant-websocket, which appears to be working fine.
> 
> I've restarted Node-red and homebridge, in case that caused an issue.
> 
> Structurally, it's set up like this:
> Raspberry Pi running Raspbian
> \- Homebridge
> \- Docker
> \- - Home-Assistant
> \- - Node-Red
> 
> I inputted the homekit code shown on the homebridge dashboard into the PIN field for the status component.
> 
> I've gone through the instructions a couple of times. My remaining thought is because the NodeRed docker is on the Docker bridge network, it's not seeing homebridge. The HA plugin I was able to specify the IP address which may have helped.
> 
> Any advice on where to look?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/d/6d4388edf05d6d79773d97e37b59bbf52495d3a2.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/8/d8997d1b156a1695ad52654dfc99cc1893157eaa.png)

De mon côté je penses que je vais utilisé node-red sur une autre machine mais pour les personnes utilisant node-red directement intégré à Gladys, je penses qu’il serait bien de faire cette configuration ?

Qu’en pensez-vous ?

Merci

Est-il possible de voir pour corriger cela svp ?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juillet 16, 2025, 4:54 UTC](https://community.gladysassistant.com/t/node-red-homebridge/9644/2 "2025-07-16T16:54:17Z")

</div>

Pourquoi pas, effectivement ça me choquerait pas de passer Node-RED en network=host 🙂

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Juillet 16, 2025, 6:25 UTC](https://community.gladysassistant.com/t/node-red-homebridge/9644/3 "2025-07-16T18:25:43Z")

</div>

Voici le docker-compose.yml qui fonctionne :

```auto
version: "3.8"
services:
  node-red:
    image: nodered/node-red:3.1.15
    restart: always
    environment:
      - TZ=Europe/Paris
    ports:
      - "127.0.0.1:1880:1880"
    network_mode: host
    volumes:
      - ./mnt/node-red/data:/data

```

C’est surtout les 2 lignes suivantes pour ma part qui sont importantes :

```
ports:
  - "127.0.0.1:1880:1880"
network_mode: host

```

Le 127.0.0.1:1880:1880 permet d’isoler le container de l’extérieur car j’y accède depuis un bastion en mode app (teleport) et je n’ai pas besoin d’y accéder depuis ailleurs 🙂

Le plus important est le network\_mode: host qui permet de faire fonctionne dans mon cas home bridge
