Aeotec dongle setup in node-red

I just get error 126 when i Exec whoami

ok thank you

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

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

Indeed.

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

  • Install Ubuntu Server.

  • Then the Node RED installer

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.

sudo apt install build-essential

Top job
Many thanks to all of you

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

1 Like

Agreed! - updated

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

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:~$


Is there a best way to install zwavejs

Thank you in anticipation

Hi @fogmajor

just use the palette menu - thats the norm.

Cheers again

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

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:45node: ZWave Controller

msg : error

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

Thats fine - at least Node RED can now see it :partying_face:

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

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)"

sudo usermod -a -G dialout $USER

$USER is a variable - dont change it :wink:

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

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

2 Likes

Thank you for your hep Colin

Many Thanks

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 :wink:

and work down the guide