Rflink partially stopped working

Not sure if it belong here but okay, here goes.

I just started with ha so bare with me please :wink:

The issue i have is that my rflink lights (switches) aren’t recognized anymore in ha.

Suddenly (after a reboot) the devices were gone, and i can’t seem to add them.

My configuration,yaml is:

rflink:
  port: /dev/ttyACM0
  wait_for_ack: false
  ignore_devices:
   - lobeco_*
   - trc02rgb_*
   
switch:
  - platform: rflink
    automatic_add: true

light:
  - platform: rflink
    automatic_add: true

logger:
  default: error
  logs:
    rflink: debug
    homeassistant.components.rflink: debug

Sensors are being seen and added, but when i add a new switch, it it’s added.
When trying to add a new swith i get this in the error log:

2019-03-28 17:01:35 DEBUG (MainThread) [rflink.protocol] received data: 20;09;NewKaku;ID=00f418
2019-03-28 17:01:35 DEBUG (MainThread) [rflink.protocol] received data: c6;SWITCH=1;CMD=ON;
2019-03-28 17:01:35 DEBUG (MainThread) [rflink.protocol] got packet: 20;09;NewKaku;ID=00f418c6;SWITCH=1;CMD=ON;
2019-03-28 17:01:35 DEBUG (MainThread) [rflink.protocol] decoded packet: {'id': '00f418c6', 'command': 'on', 'protocol': 'newkaku', 'node': 'gateway', 'switch': '1'}
2019-03-28 17:01:35 DEBUG (MainThread) [rflink.protocol] got event: {'command': 'on', 'id': 'newkaku_00f418c6_1'}
2019-03-28 17:01:35 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'command': 'on', 'id': 'newkaku_00f418c6_1'}
2019-03-28 17:01:35 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-03-28 17:01:35 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled

I’m really puzzled by this, i already rebooted a couple of times, updated the rflink, changed some things in the configuration.yaml, but now i’m stuck.

Any advice?

RFLink switch don’t have an automatic_add attribute.

The RFLink component does not know the difference between a switch , a binary_sensor and a light . Therefore all switchable devices are automatically added as light by default.

It should be added as a light according to your configuration. Not sure why it’s not.

IMHO your config should be more like:

switch:
  - platform: rflink
    devices:
      newkaku_00f418c6_1: {}
1 Like

I’m a idiot, I had 2 instances of light, thus ignoring 1.

Thanks for the response

1 Like