Trouble connecting to RFXTRX

I have the wifi version of the RFXTRX to control my somfy blinds. It has worked with HA in the past using the RFXCOM integration (I only installed it two weeks ago) but now I can’t get HA to connect to the device. I get this error:

Logger: homeassistant.config_entries
Source: components/rfxtrx/__init__.py:131
First occurred: 10:01:52 AM (3 occurrences)
Last logged: 10:10:05 AM

Error setting up entry RFXTRX for rfxtrx
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 860, in connect
    self.sock.connect(self.hostport)
OSError: [Errno 113] Host is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 91, in async_setup_entry
    await async_setup_internal(hass, entry)
  File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 168, in async_setup_internal
    rfx_object = await hass.async_add_executor_job(_create_rfx, config)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 131, in _create_rfx
    rfx = rfxtrxmod.Connect(
  File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 977, in __init__
    self.transport = transport_protocol(device)
  File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 855, in __init__
    self.connect()
  File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 865, in connect
    self.sock.connect(self.hostport)
OSError: [Errno 113] Host is unreachable
Logger: RFXtrx
Source: components/rfxtrx/__init__.py:131
First occurred: 10:01:49 AM (3 occurrences)
Last logged: 10:10:02 AM

Failed to create socket, check host port config

I’m sure that I put the correct IP address in during set up (192.168.1.42, port 10001) although I can’t find anywhere to check that in HA. I am able to connect to the RFXTRX device at that IP address using the RFXmngr on my windows computer.

Any idea how to fix this?

I am confused :man_shrugging:. Are you connecting to the RfxTrx via your RFXmngr on your win computer? What is your setup? Installation method? What are you running HA on? Is RfxTrx connected to this unit via USB?
I have my RfxTrx connected directly via USB to my NUC running HAOS. Then you don’t have to specify IP.

Edit: Ahh, you have the WIFI version. I don’t have that, sorry :man_shrugging:

Have you gotten any wiser about this? I may have the same problem.

I might be able to help you. My issue is that my RFXTRX device was resetting the SSID. I emailed the person I bought it from (who I think also created it). He determined that there was a capacitor above the restore button that was holding a charge long enough that the software restored the SSID to the default. If you plug in your RFXTRX and can see the default Wi-Fi SSID on your phone then that’s likely your problem as well. I removed the capacitor and it solved my issue.

Here are the instructions from the guy that built it.

I think I found the problem of resetting the Wifi settings.

I have uploaded the new RFXtrxWiFi firmware version 1.1 on the Downloads page.

The problem I found is, if the RFXtrxWifi (re)starts there is a check if the RESTORE button is pressed. But there is also a small capacitor over this pushbutton and it could happen that the voltage on this pushbutton stays too long at a low level and is seen as the pushbutton was pressed.

In the new firmware the state is checked after a small delay to be sure it is a pushbutton press and not a problem of a restart.

Please check the attached RFXtrx User Guide chapter 7.2 how to flash new Wifi firmware.

Another option is to remove the small capacitor C15 just above the RESTORE pushbutton.

If you have a small solder iron put some additional solder over the capacitor and remove the capacitor
unnamed

1 Like