# Aeotec dongle setup in node-red

**URL:** <https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747>\
**Category:** General\
**Created:** [20 March 2023 13:27 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747 "2023-03-20T13:27:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 13:27 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/1 "2023-03-20T13:27:15Z")

</div>

Good afternoon  
I am trying to set up my Aeotec GEN5 zwave dongle on Ubuntu.  
I presume this is the device when i run dmesg | grep tty.

```auto
[0.095335] printk: console [tty0] enabled
[1.024808] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[3.636987] cdc_acm 1-8:1.0: ttyACM0: USB ACM device
[852.416369] cdc_acm 1-4:1.0: ttyACM0: USB ACM device
[76890.475612] cdc_acm 1-4:1.0: ttyACM0: USB ACM device

```

I have then installed zwavejs on node red and wondered how that is set up using the parameters.

Kind Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 13:38 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/2 "2023-03-20T13:38:36Z")

</div>

Hi @fogmajor

If you have installed the node I discussed, bring in the **zwave-js** node, and it will be listed for you to select.

Its usually **/dev/ttyACM0**

but if your using any layer between it and Node RED like docker or HA for instance, you need to ensure that its mapped correctly - so Node RED can see it

you don't need to adjust the speed or anything - that's done for you.

but here is the detail anyway if you need it (normally you don't) - as its configured for you

- 115200
- 1 Stop Bit
- 8 Data Bits
- Non Parity

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 13:45 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/3 "2023-03-20T13:45:04Z")

</div>

Hi Again

When I bring in the Zwave Controller node and click on the properties It does not list it, If I set the custom path to **/dev/ttyACM0**

I get

ZWaveError: Failed to open the serial port: Error: No such file or directory, cannot open ttyACM0

Kind Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 13:56 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/4 "2023-03-20T13:56:53Z")

</div>

Hi @fogmajor  
This mean Node RED its self cant see it.

You will need to map the serial device via HA or Docker - as I do not use either, I'm not sure how you do it.  
If you are using either of these, I feel you mileage may vary.

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 14:07 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/5 "2023-03-20T14:07:41Z")

</div>

Hi Marcus  
Many thanks for your very prompt replies, I was hoping I could just use node-red on my ubuntu install along with my Aeotec dongle and avoid Docker and HA. I am just trying to keep it simple and to be honest though I feel confident with node-red and have written quite a few complicated functions in the past, My Ubuntu skills are very lacking along with Docker. I previously used HA but i felt it over complicated what i was trying to achieve. I have a Fibaro HC" which I want to replace due to lack of support and thought node-red could maybe facilitate that.

Kind Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 14:15 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/6 "2023-03-20T14:15:20Z")

</div>

Hi @fogmajor

Installing Node RED directly on Ubuntu is fairly uneventful.

Node RED provide a script that will work on Ubuntu  
[Running on Raspberry Pi : Node-RED (nodered.org)](https://nodered.org/docs/getting-started/raspberrypi)

The problems with HA or Docker - is that they hide the underlining hardware devices - hence you need to map them - so software like Node RED can see them.

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 14:17 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/7 "2023-03-20T14:17:58Z")

</div>

Hi Marcus  
My node-red is running well on my Ubuntu I just need to get the dongle visible in Node-red.

Many thanks for your help

Kind Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 14:18 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/8 "2023-03-20T14:18:59Z")

</div>

If its not being listed in Node RED - then something is stopping it (like a layer between Node RED and the hardware)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 March 2023 14:20 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/9 "2023-03-20T14:20:34Z")

</div>

How did you install node-red on Ubuntu. Did you use the script linked by @marcus-j-davies?

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 14:23 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/10 "2023-03-20T14:23:03Z")

</div>

Hi Colin  
I did it some time ago and cannot remember, sorry for being vague.

Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 14:27 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/11 "2023-03-20T14:27:14Z")

</div>

Here is a quick test  
Bring in an exec node - and use `ls` as the command (connect a debug node to the **stdout** pin)

let us know what output you get

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 14:37 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/12 "2023-03-20T14:37:52Z")

</div>

```auto
flows.json
lib
node_modules
package-lock.json
package.json
settings.js

```

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 14:38 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/13 "2023-03-20T14:38:22Z")

</div>

Uhh.. ok try `ls ../`

I was almost expecting to see `data`

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 14:45 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/14 "2023-03-20T14:45:56Z")

</div>

854  
870  
common  
current

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 15:01 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/15 "2023-03-20T15:01:13Z")

</div>

Ok - I still cant tell 🤣

what about `ls /dev`

I currently think its strange Node RED cant see the serial device.  
This could just be a permissions problem 😅

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 15:03 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/16 "2023-03-20T15:03:38Z")

</div>

Laughing your very clever

autofs  
block  
bsg  
btrfs-control  
bus  
char  
console  
core  
cpu  
cpu\_dma\_latency  
cuse  
disk  
dma\_heap  
dri  
drm\_dp\_aux0  
drm\_dp\_aux1  
ecryptfs  
fb0  
fd  
full  
fuse  
hidraw0  
hidraw1  
hidraw2  
hpet  
hugepages  
hwrng  
i2c-0  
i2c-1  
i2c-2  
i2c-3  
i2c-4  
i2c-5  
i2c-6  
initctl  
input  
kmsg  
kvm  
log  
loop-control  
loop0  
loop1  
loop10  
loop11  
loop12  
loop13  
loop14  
loop15  
loop16  
loop17  
loop2  
loop3  
loop4  
loop5  
loop6  
loop7  
loop8  
loop9  
mapper  
mcelog  
mei0  
mem  
mqueue  
net  
null  
nvram  
port  
ppp  
psaux  
ptmx  
pts  
random  
rfkill  
rtc  
rtc0  
sda  
sda1  
sda2  
serial  
sg0  
shm  
snapshot  
snd  
stderr  
stdin  
stdout  
tpm0  
tpmrm0  
tty  
tty0  
tty1  
tty10  
tty11  
tty12  
tty13  
tty14  
tty15  
tty16  
tty17  
tty18  
tty19  
tty2  
tty20  
tty21  
tty22  
tty23  
tty24  
tty25  
tty26  
tty27  
tty28  
tty29  
tty3  
tty30  
tty31  
tty32  
tty33  
tty34  
tty35  
tty36  
tty37  
tty38  
tty39  
tty4  
tty40  
tty41  
tty42  
tty43  
tty44  
tty45  
tty46  
tty47  
tty48  
tty49  
tty5  
tty50  
tty51  
tty52  
tty53  
tty54  
tty55  
tty56  
tty57  
tty58  
tty59  
tty6  
tty60  
tty61  
tty62  
tty63  
tty7  
tty8  
tty9  
ttyACM0  
ttyS0  
ttyS1  
ttyS10  
ttyS11  
ttyS12  
ttyS13  
ttyS14  
ttyS15  
ttyS1...

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 March 2023 15:04 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/17 "2023-03-20T15:04:32Z")

</div>

does the user need to be in the dialout group in order to see the port ?  
eg `sudo usermod -a -G dialout $USER`  
and then logout / back in again

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [20 March 2023 15:07 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/18 "2023-03-20T15:07:53Z")

</div>

Hi  
Thank you for helping

should I replace $USER with my username

Kind Regards  
Andrew

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 March 2023 15:10 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/19 "2023-03-20T15:10:15Z")

</div>

Hi @dceejay

They will need to be - listing devices is achieved via the `serialport` package.

odley enough its listed (from Node RED's point of view via `ls`) - but apparently Node RED cant see it - usually hinting at a layer between Node RED and the hardware.

@fogmajor  
can you (again all in the exec node) do `whoami`

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 March 2023 15:12 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/20 "2023-03-20T15:12:48Z")

</div>

needs to be the user that is running Node-RED. if you run from command line then $USER should be same as your user - but... (eg can do `echo $USER` to see)

[Next page](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747.md?page=2)
