Problems With RFLink

Hello,

I’m new with the Home Assistant setup.
I used to have a Domoticz setup running on a Gigabyte NUC and RFLink.
This was using a lot of KlikAanKlikUit and other 433mhz stuf.

I managed to get a nice setup running with Zwave equipment (Mostly Ikea Tradfri lights)
This is build on a Rasberry Pi4 and a CC2351 Zigbee stick with HAssbian installed on a SSD
I also managed to get the RFLink up and running, so i could use my “old” switches.
This worked really nice for a couple of days.
Now my problem :wink:
Since yesterday the RFLink integration is broken.
I get the following errors in HomeAssistant.log

2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~ ��~�f���f���~
2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data:  f�f���~��`f����f�`�~�ff��`f��������~�f
2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �`f������������ff����~怘�

I spend a lot of time to search the internet for a solution.
Found a solution for Hass.io (uninstall the modemmanager) this didn’t work for me (No Hass.io or modemmanager in use)
Found that most user with this problem managed to get RFLink to work when used on TCP/IP from another computer.
Managed to get it setup with “socat” on a spare linux based laptop.

I manage to use installed swicthes and they seem to work fine

2019-10-08 18:17:54 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: off to Rflink device: newkaku_00b8876e_c
2019-10-08 18:17:54 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '00b8876e', 'switch': 'c', 'command': 'off'}
2019-10-08 18:17:54 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;00b8876e;c;off;\r\n'
2019-10-08 18:17:55 DEBUG (MainThread) [rflink.protocol] received data: 20;79;OK;
2019-10-08 18:17:55 DEBUG (MainThread) [rflink.protocol] received data:
2019-10-08 18:17:55 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: newkaku_00b8876e_c
2019-10-08 18:17:55 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '00b8876e', 'switch': 'c', 'command': 'on'}
2019-10-08 18:17:55 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;00b8876e;c;on;\r\n'
2019-10-08 18:17:56 DEBUG (MainThread) [rflink.protocol] received data: 20;7A;OK;
2019-10-08 18:17:56 DEBUG (MainThread) [rflink.protocol] received data:
2019-10-08 18:17:57 DEBUG (MainThread) [rflink.protocol] received data: 20;7B;Alecto V4;ID=5788;TEMP=009e;HUM=76;

When i use the physical switch this doen’t work.
I do see the information being passed on from the RFlink to my Pi system, but it is in a different format.

2019-10-08 17:38:15 DEBUG (MainThread) [rflink.protocol] received data: 20;25;NewKaku;ID=00b8876e;SWITCH=b;CMD=ON;
2019-10-08 17:38:17 DEBUG (MainThread) [rflink.protocol] received data: 20;26;NewKaku;ID=00b8876e;SWITCH=c;CMD=ON;
2019-10-08 17:38:36 DEBUG (MainThread) [rflink.protocol] received data: 20;28;NewKaku;ID=012c558a;SWITCH=b;CMD=ON;
2019-10-08 17:38:37 DEBUG (MainThread) [rflink.protocol] received data: 20;29;NewKaku;ID=012c558a;SWITCH=c;CMD=ON;

It looks like this is not recognized by Home Assistant.
When the direct USB connected RFLink setup worked, this worked fine.

In my Configuration.yaml, I’ve the following entry for RFLink

rflink:
  host: 192.168.2.6
  port: 1234
  wait_for_ack: false

switch:
  - platform: rflink
    devices:
      newkaku_012c558a_b:
        name: Eettafel
      newkaku_00b8876e_b:
        name: Keuken_Plafond
      newkaku_00b8876e_c:
        name: Keuken_Kastjes
      newkaku_012c558a_c:
        name: Woonkamer_Plafond
      newkaku_00e29fe6_a:
        name: schakelaar_stalampen

# RFLink auto add sensor
  - platform: rflink
    automatic_add: true

# Light
light:
  - platform: rflink
    automatic_add: true

One more detail: in both the direct connected setup and the current TCP/IP setup, automatic _add doesn’t work. in Home Assistant i can not find any reference to RFLink. (Like in “integrations” i see the MQTT broker and others)

Any help is highly appreciated
Erwin

Did you get anywhere with this? I, too, have my RFLINK working with Domoticz both ways: direct usb connection or via an rPi using SOCAT. Tried the same with HASS.IO and I get the following:

Direct connection worked fine but …
When I try to get the rflink data over tcp, the developer log reports that rflink records are being received but no log entries showing that the records being received are being acted upon.

I did notice that each rflink message received pretty much always results in two log entries: an echo of the message received and a blank record. Perhaps an expected record terminator, eg an LF or CR, is throwing things off.

Any thoughts anyone.

Hi CommodoreWhite,

I didnt find an answer to my problems.
It more or less solved itself.

While thinkering with HA, i messed up so bad, i needed to reinstall.
After reinstall, the problem was gone.

Hope this helps

Kr,

Erwin

This issue has happened to me starting last night, the last major change I made was installing zigbee2mqtt, am in the process of trying to restore older backups.

Hi. I had this issue too.
I installed ser2net and added in /etc/ser2net.conf this line:

1234:raw:600:/dev/ttyACM0:57600 8DATABITS NONE 1STOPBIT banner

where 1234 is TCP port
any other should by commented.

HA start receiving from Rflink again.

1 Like