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
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 .
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.
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?
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.
Yes tried that but no luck either
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?