RFlink not connected with Hassio by USB

Hi everyone, i’m struggling to get my RFlink to work with Hassio. I want to connect the RFlink by USB to my RP3. I have tried several options but I don’t get a connection with the RFlink.

First of all I tried the steps accordingly this page - https://www.home-assistant.io/integrations/rflink/. However the RFlink is not showing up on my Integrations. After that I looked into my log and it says the following:

[Errno 2] could not open port /dev/by-id/usb-id01234: [Errno 2] No such file or directory: ‘/dev/by-id/usb-id01234’
2020-06-19 23:00:38 WARNING (MainThread) [homeassistant.components.rflink] disconnected from Rflink, reconnecting

I tried several other options for the connection with the USB port for the configuration, but that has not yet led to a working RFlink.

Can anyone help me with this problem please?

Welcome rvraaij :slight_smile:
The '/dev/by-id/usb-id01234’ is the path where the device is connected and is just an example you need to replace with the path of your setup.
To do that, click on “Supervisor” on the left -> “System” on the top -> blue “Hardware” button in the middle

Have a look at an entry that fits that, should look like the example.
Then copy the path (starting with /dev) and paste it into your configuration file

After a restart it should work like a charm :slight_smile:

Yup. ‘/dev/by-id/usb-id01234’ is way to short.

image

You should have something like this :

rflink:
  port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

Hé guys, thanks a lot for your help.

I copied the USB path which I found under the Hardware button in the System menu to the configuration.yaml file.

I restarted HA and hoped it would work. However, RFlink still does not appear on my integration page.

The good thing is that I no longer see messages in the log about disconnecting from RFlink. On the other hand, I also see no messages that HA is connected to my RFlink.

Here some printscreens:

hardware Hassio 4.10

Can you tell me if I’m still doing things wrong?

Thanks a lot for your help.

RFLink will not show in the integrations tab.
The devices have to be manually added to the configuration.yaml, once you have configured you can see them in the entities tab.
You can ‘discover’ your devices setting the automatic_add attribute:

RFLink will discover 2 kind of devices: light and sensor. Once you get the device_id, you can configure them as you want (binary_sensor, switch, cover…) in the configuration.yaml.

Is it really the Arduino ID? I don’t think it is, try the other /dev/serial/ one.
Also @javicalle is right, the log will per default only show things that went wrong, follow the instructions on how to actually add devices :slight_smile:

The RFlink is working! :smiley:

It was not working because of 2 things:

  1. not the correct USB path
  2. in the configuration.yaml I had to add some lines to configurate the RFlink

I’m using the RFlink to operate screens. And now I was able to add them to the home screen of HA.

Thanks a lot for your help. If I hadn’t had your help I might not have been able to get the RFlink working.

1 Like

Glad to help :slight_smile: Feel free ro reach out on any other problem!

@fedot @rvraaij I have the same problem, but I can’t see the “other” dev path, which path should I use?:

It’s recommended to use the /dev/serial/by-id/... in your case I guess it is the /dev/serial/by-id/usb-Arduino__www...

What is your problem?

I use this :

rflink:
  port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
  wait_for_ack: false

Well if I use the code below, no entities are being added. The arduino mega does respond to my remote when I press it. So something is happening, but @francisp is using a different port id, so i’m not sure the arduino one is the right one. But I can’t find another id.

rflink:
  port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_8543333323135190A082-if00

light:
  - platform: rflink
    automatic_add: true
sensor:
  - platform: rflink
    automatic_add: true

My rflink is a self-built one using an aliexpress banggood mega board. So the /dev/serial/by-id/… can differ.

Could be but in the comments above I saw a screenshot of @rvraaij where it shows the id i’m using and an id like yours. But that was a older HA version. So not sure if it doesn’t show anymore

In my case I have 3 USB devices, and that’s what can I see in my “hardware” section:
image

The ttyAMAO is an external HD, the usb-1a86 is my RFLink and the other one is a Zigbee dongle.

I have some other info at USB1 and USB2, my device is called ttyACM0, not sure if that matters. I also have it powered by usb, no power supply.

Another test to that you can do to be sure could be unplug your RFLink and see what path disappears from your HA.

If your config path is not the problem, is your RFLink working outside the HA?

I think it is connected to HA properly now. I found the log:

2021-11-02 14:37:49 INFO (MainThread) [homeassistant.components.rflink] Initiating Rflink connection
2021-11-02 14:37:49 INFO (MainThread) [homeassistant.components.rflink] Connected to Rflink
2021-11-02 14:37:50 DEBUG (MainThread) [rflink.protocol] connected
2021-11-02 14:37:51 DEBUG (MainThread) [rflink.protocol] received data: 20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
2021-11-02 14:37:51 DEBUG (MainThread) [rflink.protocol] got packet: 20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
2021-11-02 14:37:51 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'hardware': 'Nodo RadioFrequencyLink', 'firmware': 'RFLink Gateway', 'version': '1.1', 'revision': '48'}
2021-11-02 14:37:51 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'rflink', 'hardware': 'Nodo RadioFrequencyLink', 'firmware': 'RFLink Gateway', 'version': '1.1', 'revision': '48'}
2021-11-02 14:37:51 DEBUG (MainThread) [homeassistant.components.rflink] event of type unknown: {'id': 'rflink', 'hardware': 'Nodo RadioFrequencyLink', 'firmware': 'RFLink Gateway', 'version': '1.1', 'revision': '48'}
2021-11-02 14:37:51 DEBUG (MainThread) [homeassistant.components.rflink] unhandled event of type: unknown

protocol & event type unknown. Is there something else I need to do?

At this point, this message is normal (is part of the banner message), and your HA is connected to the RFLink.

Is it working as expected?

Nope, no devices are being added to my entities list