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]