Rfxcom openhab 5.1.4 not working

Good morning,
I changed raspeberry and went to openhab version 5.14
my rfxcom does not connect:
19:29:24.165 [INFO ] [del.core.internal.ModelRepositoryImpl] - Loading DSL model ‘rfxtrx.things’
19:29:24.259 [ERROR] [.internal.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed
org.openhab.binding.rfxcom.internal.exceptions.RFXComException: No serial port /dev/ttyUSB0
at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector.connect(RFXComSerialConnector.java:60) ~[?:?]
at org.openhab.binding.rfxcom.internal.handler.RFXComBridgeHandler.connect(RFXComBridgeHandler.java:211) ~[?:?]
at org.openhab.binding.rfxcom.internal.handler.RFXComBridgeHandler.lambda$0(RFXComBridgeHandler.java:184) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) [?:?]
19:29:24.259 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘rfxcom:bridge:usb0’ changed from INITIALIZING to OFFLINE
19:29:24.262 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘rfxcom:bridge:usb0’ changed from UNINITIALIZED to INITIALIZING

if I use:
root@Raspberry:~# udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci->
KERNEL==“ttyUSB0”
SUBSYSTEM==“tty”
DRIVER==“”
ATTR{power/control}==“auto”
ATTR{power/runtime_active_time}==“0”
ATTR{power/runtime_status}==“unsupported”
ATTR{power/runtime_suspended_time}==“0”

looking at parent device '/devices/platform/axi/1000120000.pcie/1f00300000.us>
KERNELS==“ttyUSB0”
SUBSYSTEMS==“usb-serial”
DRIVERS==“ftdi_sio”
ATTRS{event_char}==“(not readable)”
ATTRS{latency_timer}==“16”
ATTRS{port_number}==“0”
lines 1-23…skipping…

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci->
KERNEL==“ttyUSB0”
SUBSYSTEM==“tty”
DRIVER==“”
ATTR{power/control}==“auto”
ATTR{power/runtime_active_time}==“0”
ATTR{power/runtime_status}==“unsupported”
ATTR{power/runtime_suspended_time}==“0”

looking at parent device '/devices/platform/axi/1000120000.pcie/1f00300000.us>
KERNELS==“ttyUSB0”
SUBSYSTEMS==“usb-serial”
DRIVERS==“ftdi_sio”
ATTRS{event_char}==“(not readable)”
ATTRS{latency_timer}==“16”
ATTRS{port_number}==“0”
ATTRS{power/control}==“auto”
ATTRS{power/runtime_active_time}==“0”
ATTRS{power/runtime_status}==“unsupported”
ATTRS{power/runtime_suspended_time}==“0”

looking at parent device '/devices/platform/axi/1000120000.pcie/1f00300000.us>
KERNELS==“3-2:1.0”
SUBSYSTEMS==“usb”
DRIVERS==“ftdi_sio”
ATTRS{authorized}==“1”
ATTRS{bAlternateSetting}==" 0"
ATTRS{bInterfaceClass}==“ff”
ATTRS{bInterfaceNumber}==“00”
ATTRS{bInterfaceProtocol}==“ff”

ATTRS{bInterfaceSubClass}==“ff”

ATTRS{bNumEndpoints}==“02”

ATTRS{interface}==“RFXtrx433”

ATTRS{supports_autosuspend}==“1”
The Raspberry Pi correctly sees the RFXCOM.

Thank you for your help.
Arnaud

please use code fences for logs.
your rfxcom is connected to a different usb port on you new raspberry. It’s better to use the symbolic link in your thing definitions that you find when doing

find /dev/serial/by-id/

This makes sure you use the right path even when something with your usb devices changes.

Hello Locke,

Thank you for your help

The result is :

arnaud@Raspberry:~ $ find /dev/serial/by-id/
/dev/serial/by-id/
/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0

Regards

Arnaud

did everything work now?
Just for completeness: You have to enter
/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0
in the options of your rfx-thing under “Serial Port”.

No, i didn’t work

My things file

confiquration :

Bridge rfxcom:bridge:usb0 [ serialPort=“/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0” ] {
Thing rfy Vol_FF_Ch2_1 “Ch2 Fenetre” [deviceId=“65793.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch2_2 “Ch2 Meurtriere” [deviceId=“65794.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch2_3 “Ch2 SdB” [deviceId=“65795.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch3_1 “Ch3 Meurtriere” [deviceId=“66049.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch3_2 “Ch3 Fenetre” [deviceId=“66050.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch4_1 “Ch4 Fenetre” [deviceId=“66306.1”, subType=“RFY”]
Thing rfy Vol_FF_Ch4_2 “Ch4 Meurtiere” [deviceId=“66305.1”, subType=“RFY”]
Thing rfy Vol_FF_Mezz “Mezzanine Porte” [deviceId=“66561.1”, subType=“RFY”]
Thing rfy Vol_GF_Toil “Toilettes RdC Fenetre” [deviceId=“131329.2”, subType=“RFY”]
Thing rfy Vol_GF_Ling “Lingerie Fenetre” [deviceId=“131585.2”, subType=“RFY”]
Thing rfy Vol_GF_SdB “SdB RdC Fenetre” [deviceId=“131841.2”, subType=“RFY”]
Thing rfy Vol_GF_Dress “Dressing Fenetre” [deviceId=“132097.2”, subType=“RFY”]
Thing rfy Vol_GF_Ch1 “Ch RdC Fenetre” [deviceId=“132353.2”, subType=“RFY”]
Thing rfy Vol_GF_Cuis “Cuisine Fenetre” [deviceId=“132609.2”, subType=“RFY”]
Thing rfy Vol_GF_Bur_1 “Bureau Fenetre 1” [deviceId=“132865.2”, subType=“RFY”]
Thing rfy Vol_GF_Bur_2 “Bureau Fenetre 2” [deviceId=“132866.2”, subType=“RFY”]
Thing rfy Vol_GF_Bur_3 “Bureau Porte” [deviceId=“132867.2”, subType=“RFY”]
Thing rfy Vol_CF_Gar_1 “Garage Porte” [deviceId=“196865.3”, subType=“RFY”]
Thing rfy Vol_CF_Gar_2 “Garage Fenetre” [deviceId=“196866.3”, subType=“RFY”]
Thing rfy Vol_CF_Ch5 “Ch5 Fenetre” [deviceId=“197121.3”, subType=“RFY”]
Thing rfy Vol_CF_Vid_1 “Video Fenetre 1” [deviceId=“197377.3”, subType=“RFY”]
Thing rfy Vol_CF_Vid_2 “Video Fenetre 2” [deviceId=“197378.3”, subType=“RFY”]
Thing rfy Vol_CF_Vid_3 “Video Fenetre 3” [deviceId=“197379.3”, subType=“RFY”]
Thing rfy Vol_CF_Ch6 “Ch6 Fenetre” [deviceId=“197633.3”, subType=“RFY”]
Thing rfy Vol_Atel_1 “Atelier Fenetre 1” [deviceId=“262401.4”, subType=“RFY”]
Thing rfy Vol_Atel_2 “Atelier Fenetre 2” [deviceId=“262402.4”, subType=“RFY”]
Thing rfy Vol_Atel_3 “Atelier Fenetre 3” [deviceId=“262657.4”, subType=“RFY”]
Thing lighting2 Bouchons “Cuisine Bouchons” [deviceId=“28094464.2”, subType=“AC”]
Thing lighting2 Pc_Baie “Sejour PC Baie” [deviceId=“28094464.3”, subType=“AC”]
Thing lighting2 Pc_Fond “Sejour PC Fond” [deviceId=“28094464.4”, subType=“AC”]
Thing lighting2 Trepied “Entree Trepied” [deviceId=“28094464.5”, subType=“AC”]
Thing lighting2 Flamme_F “RdJ Flamme Fen” [deviceId=“42841088.2”, subType=“AC”]
Thing lighting2 Flamme_C “RdJ Flamme Cai” [deviceId=“42841088.3”, subType=“AC”]
Thing lighting2 Caisson “RdJ Caisson” [deviceId=“42841088.4”, subType=“AC”]
Thing lighting2 Flippers “RdJ Flippers” [deviceId=“42841088.5”, subType=“AC”]
Thing lighting2 Meuble_B “RdJ Meuble Bas” [deviceId=“7842816.2”, subType=“AC”]
Thing lighting2 Juke_Box “RdJ Juke Box” [deviceId=“7842816.3”, subType=“AC”]
Thing lighting2 Arcades “RdJ Arcades” [deviceId=“7842816.4”, subType=“AC”]
}

This looks fine. What does the log say?

ok for the things :+1:

The logs :

19:19:33.234 [ERROR] [.internal.handler.RFXComBridgeHandler] - Connection to RFX COM transceiver failed
org.openhab.binding.rfxcom.internal.exceptions.RFXComException: No serial port / dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0
at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector.c onnect(RFXComSerialConnector.java:60) ~[?:?]
at org.openhab.binding.rfxcom.internal.handler.RFXComBridgeHandler.conne ct(RFXComBridgeHandler.java:211) ~[?:?]
at org.openhab.binding.rfxcom.internal.handler.RFXComBridgeHandler.lambd a$0(RFXComBridgeHandler.java:184) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:57 2) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) ~[?: ?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) [?:?]

hmm, strange. Where does the link point to? Check it with ls -l /dev/serial/by-id/
Try this directly. Should be something like /dev/ttyUSB1
If this doesn’t work I’m out of ideas.
The only thing I can definitely say is that rfxcom works with all version of openhab

yes, it’s strange,

It worked only once and after a power outage, it did not restart.

root@Raspberry:~# ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Jun 26 19:35 usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0 → ../../ttyUSB0

ok, then it’s still /dev/ttyUSB0 as in your old installation.
Hope the power outage didn’t kill it. Does it work with the PC software when being directly connected to a PC? Have you tried a different USB port?

Ok,

The rfxcom works fine on a Windows PC with the rfxmngr software.
After that, I tried it on a different port on the Raspberry Pi.

The result is the same.
Below are the latest tests and my configuration.

root@Raspberry:~# find /dev/serial/by-id/
/dev/serial/by-id/
/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0
root@Raspberry:~# ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Jun 28 10:27 usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0 → ../../ttyUSB0
root@Raspberry:~# ls -l /dev/USB
crw-rw----+ 1 root plugdev 188, 0 Jun 28 10:27 /dev/ttyUSB0

50-usb-serial.rules

=> SUBSYSTEM==“usb”, ATTRS{idVendor}==“0403”, ATTRS{product}==“RFXtrx433”, ATTRS{serial}==“A1YQBW98”, SYMLINK+=“usb-RFXCOM”, GROUP=“dialout”, MODE=“0666”

just some thoughts:

  • why is the symlink still pointing to ttyUSB0. I thought you changed the port? The link under /by-id is created by the OS and should point to the port where the device is found
  • you shouldn’t need a startup rule anymore for rfxcom. This was needed when the binding wasn’t able to handle the symbolic link back in OH3.
  • do you have other usb devices connected? Are they running?
  • have you tried the usb ports /dev/ttyUSBO and /dev/ttyUSB1 directly in your thing definition?
  • what do you get with
    – dmesg | grep ttyUSB0
    – I get
    [ 3.689700] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0

How do I change the symlink?

ok, i’m remove the rules 50-usb-serial

No other usb devices

yes, i tried /dev/ttyUSB0 and dev/ttyUSB1 in the thing definition.

Last login: Sun Jun 28 10:56:09 2026 from 192.168.1.190
root@Raspberry:~# sudo ls -l /dev/ttyUSB0
crw-rw----+ 1 root plugdev 188, 0 Jun 28 12:15 /dev/ttyUSB0
root@Raspberry:~# ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Jun 28 12:15 usb-RFXCOM_RFXtrx433_A1YQBW98-if00-port0 → ../../ttyUSB0
root@Raspberry:~# sudo ls -l /dev/ttyUSB0
crw-rw----+ 1 root plugdev 188, 0 Jun 28 12:15 /dev/ttyUSB0
root@Raspberry:~# ls -l /dev/USB
crw-rw----+ 1 root plugdev 188, 0 Jun 28 12:15 /dev/ttyUSB0
root@Raspberry:~# dmesg | grep ttyUSB0
[ 0.882180] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0
root@Raspberry:~#

hope we’re getting closer​:thinking:
please show us the log when you directly enter /dev/ttyUSB0 in your thing definition.
For reference: Mine is (UI defined):

version: 1
things:
  rfxcom:bridge:RFXTRX:
    isBridge: true
    config:
      serialPort: /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DM5WWG68-if00-port0
      disableDiscovery: true
      ignoreConfig: false
      transceiverType: 433.92MHz
      transmitPower: 1

ok, see screenshot :wink:

I have to admit I’m out of ideas. The Pi detected the device but the binding doesn’t see it. Sorry​:hugs:

Thanks for your aid Locke

i’m out of ideas to :smiling_face_with_tear:

There might be an issue with USB and OpenHAB because when I try to add a bridge from the UI, it offers: dev/ttyAMA0 or dev/ttyAMA10

dev/ttyAMA0 is a serial device, not USB. I assume the problem is not openhab (why should it?) but something with the underlying raspi os.
Maybe as a last test create a fresh openhab with raspi imager on a spare SD-card, start it, don’t install anything (except the rfxcom binding), just plug in the rfxTRX and check if it works?