RFXCom Network Support

Hi,

One of the products that was offered from RFXCom was the RFXLan device. It was essentially an RFXCom with a LAN connection.

It would be great if Home-Assistant could communicate with a remote RFXCom device, not only for network convenience, but also to permit the locating of the device in a more suitable place for the antenna to work effectively.

Whilst it could be bodged with ser2net, a more elegant solution would be to have the home-assistant hub communicate over TCPIP as well as the native USB/Serial. Ser2net and RFXLans work with the following settings in Domoticz and maybe other HA platforms…

echo “1001:raw:15:/dev/ttyUSB0:38400,NONE,1STOPBIT,8DATABITS” > /etc/ser2net.conf

Hi There

Did you get a response or find out about this, I have my RFXtrx setup using ser2net on a pi zerow and my domoticz setup can connect on 192.168.x.x:10001

I cannot find a way to get hass.io to connect over lan

still no solution?
I can’t connect to my rfxcom over lan , with domitcz it worked perfect

With a rf-link it can be done

Example configuration.yaml entry

rflink:
host: 192.168.0.10
port: 1234

source: https://home-assistant.io/components/rflink/

I do not think anyone have tried to add support for it yet.

sorry to bump and old thread but i’m trying to set this up - at the same stage can get rfxmanager to connect via lan and it’s working however cannot get hass to connect to it: tried using socat to connect to port but doesn’t appear to be working, any one else got this setup?

tried:

socat pty,link=/dev/ttyRFX0,b38400,raw,echo=0 tcp:IPADDRESS:PORT

and added /dev/ttyRFX0 as device path in configuration.yaml

this is home-asstant.log

2018-07-29 13:42:01 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.rftrx
2018-07-29 13:42:02 ERROR (MainThread) [homeassistant.setup] Error during setup of component rfxtrx
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/serial/serialposix.py”, line 244, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: ‘/dev/ttyRFX0’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/RFXtrx/init.py”, line 606, in connect
self.serial = serial.Serial(self.port, 38400, timeout=0.1)
File “/usr/local/lib/python3.6/site-packages/serial/serialutil.py”, line 182, in init
self.open()
File “/usr/local/lib/python3.6/site-packages/serial/serialposix.py”, line 247, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyRFX0: [Errno 2] No such file or directory: ‘/dev/ttyRFX0’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 146, in async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/rfxtrx.py”, line 101, in setup
rfx_object = rfxtrxmod.Connect(device, None, debug=debug)
File “/usr/local/lib/python3.6/site-packages/RFXtrx/init.py”, line 718, in init
self.transport = transport_protocol(device, debug)
File “/usr/local/lib/python3.6/site-packages/RFXtrx/init.py”, line 601, in init
self.connect()
File “/usr/local/lib/python3.6/site-packages/RFXtrx/init.py”, line 609, in connect
port = glob.glob('/dev/serial/by-id/usb-RFXCOM
*-port0’)[0]

network support would solve this! i’m happy to assist where i can to get this implemented!

Hi

Did anyone get this to work ?

I’m currently migrating from homeseer to home assistant, and hoping someone had the rfxlan device working in the mean time. Would the socat or ser2net approach work with the RFXtrx integration? I was thinking that the old rfxlan and the newer usb rfxtrx protocols where the same, just using another transport layer.

Any alternative approach?

I have tried to use socat but only to allow remote management of protocols in RFXtrx without physical access to it. What I did, I made an extra docker container on HA server with attached RFXtrx where socat was running and used another machine with another socat where I run python script to switch RFXtrx protocol settings (not using stock Windows apps). So this is a reverse of what you want.

But that is workable replacement for RFXLan. For that idea you need to have a spare RPi with Powered USB HUB where you connect your RFXtrx. Such setup you can move around. I’ve made a few posts about RFXtrx setup and its replacement.