# Rflink, Node Red and Gladys

**URL:** <https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844>\
**Category:** Tutoriels\
**Tags:** node-red\
**Created:** [January 22, 2022, 10:51pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844 "2022-01-22T22:51:45Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![elfedagger](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/elfedagger/32/13658_2.png) [@elfedagger](https://community.gladysassistant.com/u/elfedagger)\
**Post date:** [April 1, 2023, 6:49pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/61 "2023-04-01T18:49:07Z")

</div>

Good evening, for now I just made a scene that opens and closes all my shutters at scheduled times. And I’m playing with my RFlink to repurpose an old wireless doorbell remote into a sensor to announce mail in my mailbox. I also added an Nrf24l01 board to pick up the BLE information that is sent by my itags and my health watch. I receive so much info, and not just from my home, that I can’t sort it out and identify the different devices. Does anyone know an app or software that can scan and identify everything that communicates over Bluetooth around us?

I have another question about my shutters: is it normal that I can’t trigger the closing or opening of my shutters by communicating with Gladys via Telegram, and I also can’t with Alexa even though I’ve enabled the integration?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [April 1, 2023, 7:56pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/62 "2023-04-01T19:56:32Z")

</div>

[quote="elfedagger

---

<div class="post-metadata">

**Author:** ![elfedagger](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/elfedagger/32/13658_2.png) [@elfedagger](https://community.gladysassistant.com/u/elfedagger)\
**Post date:** [April 1, 2023, 8:37pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/63 "2023-04-01T20:37:17Z")

</div>

My RFlink is set to 433.420 MHz for my Somfy RTS shutters, yet I can see in Node-RED the remote control commands and even the wireless controller of one of my neighbors’ gas boilers that are not on that frequency. And my neighbors are at least about ten meters from my house.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [April 2, 2023, 7:49am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/64 "2023-04-02T07:49:53Z")

</div>

> [@Psoy](#):
>
> Rflink only picks up 433 MHz

After checking, I have an RXB6 receiver and it’s 433.92 MHz, so it’s the signal frame that must

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [April 4, 2024, 1:17pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/65 "2024-04-04T13:17:29Z")

</div>

@Psoy

The link is dead, too bad (after the OVH fire?)!

> [@Psoy](#):
>
> I use a homemade RFlink (see link to build one: [http://domo-attitude.fr/montage-et-la-programmation-de-votre-rflink/](http://domo-attitude.fr/montage-et-la-programmation-de-votre-rflink/)).

I don’t know if this one is suitable

> **[RFLink](https://www.nodo-shop.nl/en/57-rflink)**
>
> More information about the firmware here: http://www.rflink.nl/
> 
> Price on this page is for base model only.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [April 4, 2024, 1:44pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/66 "2024-04-04T13:44:04Z")

</div>

> [@cce66](#):
>
> The link is dead, too bad (due to the OVH fire?)

Hello @cce66  
I found a link:

> **[\[TUTO\] Fabriquer RFlink l'alternative DIY du RFXCOM](https://opendomotech.com/fabriquer-rflink-alternative-diy-du-rfxcom/)**
>
> tuto pour fabriquer une gateway USB RFlink, l'altérnative DIY du RFXCOM, on verra les modules 433MHZ nécessaire, le montage et l'optimisation

I’ll add it back into the tutorial.  
😉 Thanks

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 17, 2024, 8:06pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/67 "2024-09-17T20:06:43Z")

</div>

Good evening everyone,  
I’m installing my RFLink on my mini PC, going through Gladys’ Node-RED, but I apparently have a connection problem. Here is the Node-RED output

```auto
"[serialconfig:d6cc1009c5b68c2f] serial port /dev/ttyUSB1 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB1"

```

I already had this at the start on my Raspberry Pi and it was fixed with this command:

```auto
docker run -d \
--log-opt max-size=10m \
--restart=always \
--network=host \
--name node_red \
-u node-red:dialout \
--device=/dev/ttyUSB0 \
--device=/dev/ttyUSB1 \
--label com.centurylinklabs.watchtower.enable=false \
-v /var/lib/node-red:/data \
nodered/node-red

```

but since I’m using Gladys’ Node-RED, I can’t copy it exactly as is.  
Can someone help me? Thanks

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [September 17, 2024, 9:15pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/68 "2024-09-17T21:15:55Z")

</div>

The Gladys integration launches a container with the basic command so if you want a customized installation, remove the Gladys integration and run this command.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 18, 2024, 5:21am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/69 "2024-09-18T05:21:34Z")

</div>

> [@\_Will\_71](#):
>
> remove the Gladys integration

I’d like to keep the Gladys installation, it’s a bit easier to install and above all to know whether it will evolve on the SerialPort RFLink side of Node-RED. But for now, I don’t have access to the RFLink, no access to my Harmony Hub, and no access to the Xiaomi gateway. MQTT works fine. It seems that apart from MQTT nothing crosses Docker (I’m trying to explain with my basic knowledge 🤔)

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 18, 2024, 9:55am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/70 "2024-09-18T09:55:47Z")

</div>

@bonjour @Psoy

Your Docker Node-RED and Gladys are running on this port 😊

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

So you can install your Docker Node-RED with your command or redirect your port by adding the line -p 1880:1880 (or another port). That gives you 2 Docker Node-RED instances (sometimes useful to have one for testing and one for production 😉 and now on mini-PCs it’s no longer an issue in terms of performance!

[quote=«&nbsp;Psoy, post:67, topic:6844&nbsp;»]

```auto
docker run -d \
-p 1880:1880
--log-opt max-size=10m \
--restart=always \
--network=host \
--name node_red \
-u node-red:dialout \
--device=/dev/ttyUSB0 \
--device=/dev/ttyUSB1 \
--label com.centurylinklabs.watchtower.enable=false \
-v /var/lib/node-red:/data \
nodered/node-red

```

In the long run being able to modify the settings in Gladys would be ideal for you… maybe for others! The best would be to have an integration page «&nbsp;docker&nbsp;» like Portainer but simplified with the ability to add/remove/edit/start/stop a container in a user-friendly way!

> [@Psoy](#):
>
> Mqtt nothing passes through Docker (

Be careful with Node-RED in a container: in the MQTT nodes etc. you must not set the server to 127.0.0.1 or localhost but to the real IP address of the MQTT broker (so of Gladys). I think the same applies for the rest (give your flow if needed to check)

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 18, 2024, 10:14am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/71 "2024-09-18T10:14:04Z")

</div>

> [@cce66](#):
>
> You can therefore install your docker Node-RED with your command

hello @cce66  
What you’re telling me is not to use Gladys’ Node-RED?  
But anyway, that’s what’s going to happen, because I crashed zigbee2mqtt but not because of Node-RED, I tried to install Node.js and npm  
so I’m going to reconfigure everything 😭

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 18, 2024, 11:50am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/72 "2024-09-18T11:50:51Z")

</div>

> [@Psoy](#):
>
> What you’re telling me is not to use Gladys’ node-red?

No, to use Gladys’ node-red accessible on port 1881( I don’t remember, by the way, whether disabling Gladys’ node-red also deletes its flows so save them beforehand as @Lokkye indicated in the integration) and to install a second node-red container with your usb0/usb1 settings which will be accessible on port 1880 so that you have 2 distinct node-red instances on 2 different ports but only Gladys’ one won’t have access to the 2 USB ports

> [@Psoy](#):
>
> I crashed zigbee2mqtt

Not sure that’s related since it’s in a container and installed by Gladys but I’m not an expert there, you should ask @pierre-gilles 😉

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 18, 2024, 12:42pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/73 "2024-09-18T12:42:41Z")

</div>

Thank you for your reply  
Yes, I don’t use Node-red Gladys, but I install Node\_red as before with the commands.  
When you disable Node\_red Gladys, it removes the container and the files as far as I remember; I don’t know where it’s stored — I don’t see it in  
`cd /var/lib`  
But I’m resetting everything because I no longer have access to the Zigbee2Mqtt interface  
thanks

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 18, 2024, 2:30pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/74 "2024-09-18T14:30:32Z")

</div>

> [@Psoy](#):
>
> Disable Gladys Node-RED

I think this is the line causing it — you should find the data  
«&nbsp;HostConfig&nbsp;»: {  
«&nbsp;Binds&nbsp;»: [«&nbsp;/var/lib/gladysassistant/node-red:/data&nbsp;»],

so connect to your system via ssh or directly and go to /var/lib/gladysassistant/

> [Gladys/server/services/node-red/docker/gladys-node-red-container.json at master · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/blob/master/server/services/node-red/docker/gladys-node-red-container.json)

> [@Psoy](#):
>
> But I’m reinitializing everything because I no longer have access to the Zigbee2MQTT interface

first run docker ps -a to see the status of your Docker containers, otherwise if you have «&nbsp;gladys plus&nbsp;» you might as well not bother and just reinstall! 🤣

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 18, 2024, 4:31pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/75 "2024-09-18T16:31:55Z")

</div>

> [@cce66](#):
>
> /var/lib/gladysassistant/

I don’t have node-red in `:/var/lib/gladysassistant$`

```auto
[sudo] password for gladys:
backups gladys-production.db-shm gladys-production.duckdb homekit zigbee2mqtt
gladys-production.db gladys-production.db-wal gladys-production.duckdb.wal mosquitto

```

`

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 18, 2024, 5:50pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/76 "2024-09-18T17:50:37Z")

</div>

> [@Psoy](#):
>
> I don’t have any node-red in `:/var/lib/gladysassistant$`

It’s normal if you’ve «&nbsp;disabled&nbsp;» node-red in Gladys! I don’t think that, if you’re on «&nbsp;Gladys Plus&nbsp;», those files are saved!

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 18, 2024, 7:07pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/77 "2024-09-18T19:07:58Z")

</div>

That’s it — my RFlink is up and running again 😁, I had simply omitted this line after restarting node\_red:

```auto
sudo chown -R 1000:1000 /var/lib/node-red

```

and now it’s fine (@VonOx if you’re reading this, thanks again 😉)

And icing on the cake, I didn’t need to roll back to version

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 19, 2024, 12:00pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/78 "2024-09-19T12:00:58Z")

</div>

Cool ! 👍  
You had installed Node-RED under another profile, so you didn’t have the permissions, is that it? 🤔

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 19, 2024, 12:06pm UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/79 "2024-09-19T12:06:13Z")

</div>

> [@cce66](#):
>
> you didn’t have the permissions, is that it

yes, probably, I ran that command

```auto
sudo chown -R 1000:1000 /var/lib/node-red

```

and I got access to Node-RED, so I think that’s what grants the permissions?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 20, 2024, 9:56am UTC](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844/80 "2024-09-20T09:56:08Z")

</div>

> [@Psoy](#):
>
> \*\ ***As of today, 20-09-2024, NODE\_RED has evolved and is at version 4.0 and node-red-node-serialport is at version 2.0.3**
> 
> **We no longer need to downgrade the version of node-red-node-serialport to 0.15.0**
> 
> **Version 2.0.3 works very well with the Rflink, so we can remove the paragraph about reverting to version 0.15.0 of node-red-node-serialport**

Hello everyone  
When moving from an RPI to the miniPC, I noticed what I wrote above. I don’t think it’s related to the machine, but rather to the new versions  
I added a new note in the tutorial, the rest doesn’t change:  
Have a good day

[Previous page](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844.md?page=3)

[Next page](https://community.gladysassistant.com/t/rflink-node-red-et-gladys/6844.md?page=5)
