Help needed with RFXCom

I am new to hassio and I am trying to add a USB RFXCom transmitter.
With “dmesg” I can see the device;

[ 5.810636] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[ 5.810849] usb 1-1.3: Detected FT232RL
[ 5.818494] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

With “lsusb” I can also see the device (last line Device 004);

core-ssh:/config# lsusb
Bus 001 Device 002: ID 0424:9514
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0424:ec00
Bus 001 Device 004: ID 0403:6001

So what is the correct syntax to add it to my configuration.yaml?
Hope someone can help me out.
Cheers

This works for me:

rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1Y0NJGR-if00-port0
  debug: True
  dummy: False
1 Like

Or use

rfxtrx:
  device: /dev/ttyUSB0
1 Like

Okay i’ve added this in my configuration.yaml (first had /dev/ttyUSB0, thanx for suggesting @smikje ).
When I look in the home-assistant.log I only have two entries;

core-ssh:/config# more home-assistant.log
2017-08-13 10:04:20 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-08-13 10:10:13 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.

I am 100% sure the RFXCom is being detected by the OS;

[ 5.606662] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[ 5.607784] usb 1-1.3: Detected FT232RL
[ 5.608719] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

This is what my configuration.yaml looks like now;

#RFXCom for klikaanklikuit
rfxtrx:
device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1Y0NJGR-if00-port0
debug: True
dummy: False

switch:
platform: rfxtrx
automatic_add: True

light:

  • platform: rfxtrx
    automatic_add: True

When I look under Development Tools / States I can see my Philips Hue light and my other devices but nothing that is controlled by the rfxcom :frowning:.

Any other suggestions?
Kind regards,
Dave

Have you read the documentation? https://home-assistant.io/components/switch.rfxtrx/
Have you tried to trigger your switch?

Yes Danielhiversen and that is why I am seeking help since that is not working :wink:

Enable debug logging for the rfxtrx components (main component + switch): https://home-assistant.io/components/logger/
Try to activate a switch and post all rfxtrx related logs.

1 Like

After the configuration change, did you also tried to restart the host system ( not only home assistant )?

I also have a klikaanklikuit setup and the below config was enough for me to get it working.
automatic_add: True provided me the related device IDs

# Set log level
logger:
  default: critical
  logs:
    homeassistant.components.rfxtrx: critical

# Setup rfxtrx device
rfxtrx:
  device: /dev/ttyUSB0

# KlikAanKlikUit
switch Slaapkamer:
  - platform: rfxtrx
    automatic_add: False
    devices:
      0b11000100b7be9a02010f70:
        name: Slaapkamer Lamp Remote 1
      0b11000200a3275e0a010f70:
        name: Slaapkamer Lamp Remote 2
      0b110026003471e202000070:
        name: Slaapkamer Lamp Remote 3

Thank you all for the help I am going to experiment with that and will come back to you with the outcome…
One question for Smikje; From KlikaanKlikuit I have also the plugs (stekkers) ACD-1000 that go straight in my wall-outlet that function as a switch.

Is that also the “switch” section in your configuration.yaml?
What protocols have you enabled on your RFXCom?

I have RFXtrx433E with the basic settings.

I don’t have the ACD-1000 but i would expect that it need to function as a switch.

================================================
Get Status
------------------------------------------------
Packettype        = Interface Message
subtype           = Interface Response
Sequence nbr      = 1
response on cmnd  = Get Status
Transceiver type  = 433.92MHz
Firmware version  = 1016
Firmware Type     = Ext2
Transmit power    = 10dBm
Hardware version  = 1.3
Undec             off
X10               enabled
ARC               enabled
AC                enabled
HomeEasy EU       disabled
Meiantech         disabled
Oregon Scientific enabled
ATI               disabled
Visonic           disabled
Mertik            disabled
AD                disabled
Hideki            disabled
La Crosse         disabled
FS20/Legrand      disabled
ProGuard          disabled
BlindsT0          disabled
BlindsT1          disabled
AE                disabled
Rubicson          disabled
FineOffset        disabled
Lighting4         disabled
RSL               disabled
Byron SX          disabled
Imagintronix      disabled
KeeLoq            disabled
Home Confort      disabled
RFU2              disabled
RFU3              disabled
RFU4              disabled
RFU5              disabled
RFU6              disabled
RFU7              disabled

------------------------------------------------
1 Like

mmm okay thanx for that Smikje!
The only difference is that I am running Firmware version 1020.
I have the same protocols enabled like you X10, ARC, AC and Oregon.

Usually the RFXtrx device will be added in HA when you press a button on the remote control. I guess you tried that already?

Yes tried that but no luck either :frowning:
So I am now going to download native raspbian and install from scratch home-assistant instead of using the new Hassio image. It drives me nuts that I don’t have a decent Linux CLI

Okay I am one step further;
I’ve installed my Pi with Raspbian, then followed the install instructions here on the site for Python.
After enabling logging I’ve noticed an error stating that access was being denied to /dev/ttyUSB0.

“[Errno 13] Permission denied:’/dev/ttyUSB0”

What I did then is, I went to my CLI of the PI and typed;

“sudo chmod 777 /dev/ttyUSB0”

From that moment on, I could see that the rfxtrx was finally loading.
I was able to see a switch once but after reloading my HomeAssistant that switch was gone again and I don’t seem to get it back as a device. So If I switch on the klikaanklikuit device, what do I press in HomeAssistant? Or to which screen should I go?

1 Like

This worked fine for me:

rfxtrx:
device: /dev/ttyUSB0
debug: True

switch:
platform: rfxtrx
automatic_add: True


I’m on Synology with a 433e usb hub, HA in Docker.

For me, the solution was found here : Rfxcom rfxtrx433e usb on Synology in docker