# 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:** 2

<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:12 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/21 "2023-03-20T15:12:50Z")

</div>

I just get error 126 when i Exec whoami

---

<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:13 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/22 "2023-03-20T15:13:16Z")

</div>

ok thank you

---

<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:14 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/23 "2023-03-20T15:14:24Z")

</div>

hmm 126 often means command can be found but not executed... something def messed up somewhere

---

<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:17 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/24 "2023-03-20T15:17:32Z")

</div>

Hi So just to clarify before i format everything.

Is it possible to install node-red on Ubuntu, install Zwavejs and an Aeotec dongle without using docker or HA.

Thank you in anticipation

---

<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:20 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/25 "2023-03-20T15:20:34Z")

</div>

Indeed.

I think there is some layering going on somewhere - but not one I have seen.

- Install Ubuntu Server.

- Then the Node RED installer

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18

```

This will give you a clean Node RED installed directly on Ubuntu with no Docker or HA

EDIT:  
install some build tools prior to installing Node RED.

```auto
sudo apt install build-essential

```

---

<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:23 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/26 "2023-03-20T15:23:08Z")

</div>

Top job  
Many thanks to all of you

---

<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 15:39 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/27 "2023-03-20T15:39:47Z")

</div>

> [@marcus-j-davies](#):
>
> `--node14

Would it be better to use 18 or at least 16? 14 is almost out of support is it not?

---

<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:40 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/28 "2023-03-20T15:40:32Z")

</div>

Agreed! - updated

---

<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 17:27 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/29 "2023-03-20T17:27:03Z")

</div>

Hi Marcus  
I have reinstalled a fresh ubuntu  
run updates  
installed curl  
run `bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18 `

```auto
Started node-red 

Checked for the Aeotec

```

andrew@andrew-OptiPlex-3060:~$ lsusb  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
Bus 001 Device 005: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB  
Bus 001 Device 004: ID 058f:6387 Alcor Micro Corp. Flash Drive  
Bus 001 Device 003: ID 1a2c:0042 China Resource Semico Co., Ltd Usb Mouse  
Bus 001 Device 002: ID 1c4f:0026 SiGma Micro Keyboard  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
andrew@andrew-OptiPlex-3060:~$

```auto

Is there a best way to install zwavejs

Thank you in anticipation
```

---

<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 17:29 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/30 "2023-03-20T17:29:21Z")

</div>

Hi @fogmajor

just use the palette menu - thats the norm.

 ![Screenshot 2023-03-20 at 17.28.06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b556e4c1a1b19dda8b0cef6e157004281390a283.png)

---

<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 17:29 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/31 "2023-03-20T17:29:52Z")

</div>

Cheers again

---

<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 17:33 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/32 "2023-03-20T17:33:06Z")

</div>

The serial port will be listed on the **zwave-js** node

 ![Screenshot 2023-03-20 at 17.32.20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4d12754e66b355396626a61bc37d2d644fc7bab4.png)

---

<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 17:40 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/33 "2023-03-20T17:40:22Z")

</div>

Hi  
I have got a little bit further as when I select port on the Zwave Controller ports are listedit is listed.

I ran  
andrew@andrew-OptiPlex-3060:~$ sudo dmesg | grep tty

[sudo] password for andrew:  
[0.095111] printk: console [tty0] enabled  
[1.020759] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base\_baud = 115200) is a 16550A  
[4.084963] cdc\_acm 1-4:1.0: ttyACM0: USB ACM device

I did not change any other settings

I selected **/dev/ttyACM0** and deployed.

andrew@andrew-OptiPlex-3060:~$ sudo dmesg | grep tty  
[sudo] password for andrew:  
[0.095111] printk: console [tty0] enabled  
[1.020759] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base\_baud = 115200) is a 16550A  
[4.084963] cdc\_acm 1-4:1.0: ttyACM0: USB ACM device  
I did not change any other settings

I get this error

20/03/2023, 17:35:45[node: ZWave Controller](http://127.0.0.1:1880/#)

msg : error

"ZWaveError: Failed to open the serial port: Error: Permission denied, cannot open /dev/ttyACM0 (ZW0100)"

---

<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 17:43 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/34 "2023-03-20T17:43:45Z")

</div>

Thats fine - at least Node RED can now see it 🥳

Do you remember the username you used during Node RED install

If you just used your own account do the following

`sudo usermod -a -G dialout $USER` and restart.

The user that is effectively running Node RED needs to be added to `dialout`

---

<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 17:57 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/35 "2023-03-20T17:57:08Z")

</div>

Hi again  
Ran the command `sudo usermod -a -G dialout $andrew```

I am unsure what was supposed to happen but it asked for a password and then loaded all the usable switches

Re started ubuntu

same error

"ZWaveError: Failed to open the serial port: Error: Permission denied, cannot open /dev/ttyACM0 (ZW0100)"

---

<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 17:59 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/36 "2023-03-20T17:59:51Z")

</div>

> [@fogmajor](#):
>
> `sudo usermod -a -G dialout $andrew```

`sudo usermod -a -G dialout $USER`

`$USER` is a variable - dont change it 😉

`sudo usermod -a -G dialout $USER` \< - as is  
(providing your running the command under your account)

You could do `sudo usermod -a -G dialout andrew` if you wish

and of course restart after

---

<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 18:17 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/37 "2023-03-20T18:17:24Z")

</div>

Alleluia Praise be to the Linux and node-red gods, I have a interview started on my node

Thank you to everyone that helped and Marcus thank you for your perseverance it really is appreciated.  
If I can help by way of a donation or coffee please let me know.

Kind Regards  
Andrew

---

<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 18:18 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/38 "2023-03-20T18:18:11Z")

</div>

Thank you for your hep Colin

---

<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 18:18 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/39 "2023-03-20T18:18:47Z")

</div>

Many Thanks

---

<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 18:21 UTC](https://discourse.nodered.org/t/aeotec-dongle-setup-in-node-red/76747/40 "2023-03-20T18:21:19Z")

</div>

You now have a bare metal Node RED instance.

Depending on your number of ZWave device's  
the interviews might take a few minutes - if you have some that can sleep - you may need to wake them up - once or twice.

Your attention should now be here 😉

> **[Node Types](https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/node-types)**
>
> The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it. - zwa...

and work down the guide

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

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