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.
Welcome rvraaij
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
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.
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
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.
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