RFXtrx433E not working Hassio

Hi Guys,

i am struggling to get my RFXcom device working, i tried te following:

  1. connected my rfxcom to my usb port on my raspberry pi 4
  2. edited my config to:
# RFXcom configuratie
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IURJD-if00-port0

also tried:

# RFXcom configuratie
rfxtrx:
  device: '/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IURJD-if00-port0'

and

# RFXcom configuratie
rfxtrx:
  device: /dev/ttyUSB0

and

# RFXcom configuratie
rfxtrx:
  device: '/dev/ttyUSB0'

noting worked, and yes i checked with dmesg | grep tty in ssh
also you can find the serial by-id address by going to Hass.io -> System -> press hardware button

and yes i added the following:

switch:
    platform: rfxtrx
    automatic_add: true
    devices:
      0b11000339bc0cfe03010f70:
        name: test

light:
    platform: rfxtrx
    automatic_add: true

nothing shows up, on switches i added manually device but this does not give any respons.

disconnected my RFXtrx433E and connected it to my raspberry pi 3B+ with domoticz and tested the settings and firmware (1025) EXT
it works…

now i got really serious …
WHIPED my entire hassio installation and setup and flashed the sd with a fresh Hassio image (3.7) fully raspberry pi4 supported (32 bit)
added nothing but the configurator to add the rfx trx and tested. (did not work)
i went even further…
i deleted my domoticz setup (the rfxcom devices where the only thing left on there) and flashed the raspberry pi 3B+ with a new and clean hassio image (3.7) same thing not working.

so i don’t know anymore how to get this working.

i can see the device from hardware inside hassio and when i leave the lines in the configuration and disconnect the device i get an error.

what else can i try ?

i also tried the True options with capitals and without no difference.
searched most of the forums but cannot find any solution that works for me, and yes if i check the security it is pointed into the audio group but adding root to the audio group does not help.

if more information is needed i will provide…
thnx in advance

I think your device should be between quotes:

switch:
    platform: rfxtrx
    automatic_add: true
    devices:
      "0b11000339bc0cfe03010f70":
        name: test

For the config, here is mine (on Pi4):

#
# rfxtrx device
#
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3GSUS0-if00-port0
  debug: false

Browetd, i will try that, the switch shows up but does not respond…
i will get back to you if it works…
current config is:

# RFXcom configuratie
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IURJD-if00-port0
  debug: true
  dummy: false

Hi @licky_lauda,

I’m using the RFXcom antenna with my setup and have the following in my configuration files, and it works great :slight_smile:.

I’m currently running HA version “Home Assistant 0.102.1”

CONFIGURATION.YAML

# RFXCOM
rfxtrx:
  device: /dev/ttyUSB0
# debug (Optional): If you want to receive debug output.
  debug: true
  dummy: false

# INCLUDING
switch: !include settings/switch.yaml

SWITCH.YAML

- platform: rfxtrx
#  automatic_add: True (You should of course added this for discovering new devices)
  automatic_add: False
  signal_repetitions: 3
  devices:
    0b11000803dad91a01010f70:
        name: F_plug1_sonos
    0b11003802b98bf60e010f70:
        name: F_plug2_sonos
    0b11000e00879d8601000070:
        name: f_gaestevaerelselampe
    0b1100120240944601010f70:
        name: f_juletrae
    0b1100150278b47201010f70:
        name: f_lampe_i_vindue
    0b110018009dee7e01000070:
        name: F_Lille_lampe
    0b1100330375649a01010f70:
        name: F_Skrivebordslys
    0b11003803a1c3d201000070:
        name: f_sovevaerelseslys
    0b11003b0143daca01010f70:
        name: F_MH_Lille
    0b11003e019c1e0201000070:
        name: F_MH_Stor

SENSOR.YAML

# RFXcom Sensor Devices
- platform: rfxtrx
# automatic_add: True
  automatic_add: False
  devices:
    0850070d970000a869:
        name: rfxcom_telldus_double_temperature_1 
        data_type:
        - Temperature
    0850070e980000a769:
        name: rfxcom_telldus_double_temperature_2
        data_type:
        - Temperature
    0b550118a10000000028b449:
        name: rfxcom_neighbor_rain_unit_1
        data_type:
        - Rain rate
    085002050f01002569:
        name: OBH_Ude
        data_type:
        - Temperature
    0a52099a8700010d3c0179:
        name: rfxcom_telldus_hygro_temp_1_temp
        data_type:
        - Temperature

thnx, for the advice.
i cleaned it up, when i get home i will test again if i can get the rfx working.

result of my cleanup:

switch: !include switch.yaml
light: !include light.yaml
sensor: !include sensor.yaml
cover: !include cover.yaml
zone: !include zone.yaml

######################################################
#                                                    #
# RFXcom configuratie
#                                                    #
######################################################

rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IURJD-if00-port0
  debug: true
  dummy: false

switch.yaml:

######################################################
#                                                    #
# Switch configuratie
#                                                    #
######################################################
- platform: rfxtrx
  automatic_add: true
  devices:
    "0b11000339bc0cfe03010f70":
      name: test

light.yaml:

######################################################
#                                                    #
# Light configuratie
#                                                    #
######################################################

- platform: rfxtrx
  automatic_add: true

sensor.yaml:

######################################################
#                                                    #
#Afvalbeheer configuratie
#                                                    #
######################################################

- platform: afvalbeheer
  wastecollector: Cyclus
  resources:
      - gft
      - papier
      - pmd
  postcode: <somepostcode>
  streetnumber: <streetnumber>
  upcomingsensor: 0
  dateformat: '%d-%m-%Y'
  dateonly: 0
  name: ""
  nameprefix: 1
  builtinicons: 0
  dutch: 1

######################################################
#                                                    #
# CPU temperatuur van de Raspberry Pi
#                                                    #
######################################################

- platform: command_line
  name: CPU Temperatuur
  command: "cat /sys/class/thermal/thermal_zone0/temp"
  unit_of_measurement: "°C"
  value_template: '{{ value | multiply(0.001) | round(1) }}'

######################################################
#                                                    #
# GPU temperatuur van de Raspberry Pi
#                                                    #
######################################################

- platform: command_line
  name: GPU Temperatuur
  command: "/opt/vc/bin/vcgencmd measure_temp"
  unit_of_measurement: "°C"
  value_template: '{{ value | replace("temp=", "") | replace("''C", "") }}'

cover.yaml:

######################################################
#                                                    #
# Cover configuratie
#                                                    #
######################################################

- platform: rfxtrx
  automatic_add: true

zone.yaml:
‘nah not yet guys… ;)’

Ok, tried the above suggestions, not working. tried to add manually a cover and tested with that but no luck yet.

Today did the next step, i put the EXT2 firmware version 1025 on the RFXtrx433E and configured the right protocols and saved settings. then when i get home i will attach it again to my raspberry pi4 and do the tests again. i will keep you all posted.

Did not work again.
Working on a temporary workaround untill we can solve this. if my workaround is a succes i will post my steps here.

the next step i took was install a clean install of raspbian on rpi3 and use ser2net on port 5000
installed it tested it and the rfxcom works on the rpi3.
changed the settings in my Hassio config to:

rfxtrx:
  host: 192.168.1.11
  port: 5000

and nothing happens…
checked for connections with netstat and saw it was connected. but still no show.

so i took my rfxcom found a windows laptop on my colleage’s desk and used the config manager to check the protocols again and frimware settings. still the same so no problems there.
restored a backup of my domoticz on the rpi3 and tested if the switches and lights still responded. that still worked.
i was getting crazy like a rabid dog now…
i flashed my rpi3 with a clean raspbian image and then installed hassio in a docker
attached the rfxcom and changed the config so we have a clean hassio on a clean raspbian. now wait till something shows up. (i cant press any buttons now cuz im not home :wink:
if someone needs the instructions on how to install it that way, i can post them.

latest news !!! after:

sudo chmod 0777 /dev/ttyUSB0

on the rpi3 with raspbian and hassio install there are switches appearing. ill keep you all posted…

one device shows up but does not respond to anything. i changed my second rpi back to domoticz so i can get the light working in schedule again. if someone has an answer or solution and wants me to try, feel free to post. for now i will leave it alone.

hello, i have a quick uestion did you by any change install HACS just before the problems started? rfx has been working on my side for over a year, but when i installed hacs the problems started.

Sorry for the late respond, yes i had hacs installed, but even with a clean install without hacs i could not get i t to work. so i changed everything to zigbee.

Thanks for the feedback, I think I will have to change my setup as well, rfx is working now but very unstable.

This just saved my bacon, thank you very much!