Enocean USB 300 gateway config:error

  • Platform information:
    • Hardware: VM: 1 CPU, 1 GB RAM
    • OS: Rocky Linux
    • Java Runtime Environment: Zulu Java 11
    • openHAB version: 3.1.0
  • Issue of the topic:
    I am trying to connect the enocean USB300 gateway via Things > Enocean Bindings > Scan.

    Then add the device.

Unfortunately following error occures:

I already added the openhab user to dialout group and uncommented:

EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyZWAVE:/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"

in the config file.

Is there anything I need to change in addition?

Have you tested usb in another pc?

Have you forwarded the USB to the VM?

Did you open the serial connection with another program?

I connected the Stick to my normal PC and it showed up.

Forwarded the Stick in Proxmox to the VM and its also shown in the lsusb output. Also the Stick is recognized by openHAB with correct name.

I didnt open the serial connection with another program.

Is your path correct?

dmesg | grep tty

It could also be a permissions issue.

-(~:$)-> dmesg | grep tty
[    0.001000] printk: console [tty0] enabled
[    3.468665] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
-(~:$)-> ls -la /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Sep  9 12:07 /dev/ttyUSB0

looks good to me

But on the other hand:

-(~:$)-> lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Shouldn’t it be usb 2-2?

I don’t know.

I don’t have your specific device?

The user openhab is in the dialout group.

id openhab

Yes he is:

-(~:$)-> id openhab
uid=992(openhab) gid=988(openhab) groups=988(openhab),5(tty),18(dialout),63(audio)

Just thought it maybe should 2 - 2 because lsusb returned Bus 002 and Device 002 for the Stick.

Any idea how to fix this?

This could be related to serial behavior oberserved here : https://github.com/openhab/openhab-core/issues/2119. Perhaps try to test the library mentioned in the last post to see if that makes any difference ?