What is wrong with RFLINK config?

Raspi3, Hassbian clean latest.

configuration.yaml

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

light:
  - platform: rflink
    automatic_add: true


switch:
  - platform: rflink
    automatic_add: true


sensor:
  - platform: rflink
    automatic_add: true

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

But there is a problem in info of HA:

2017-11-07 12:37:58 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.rflink]: [automatic_add] is an invalid option for [switch.rflink]. Check: switch.rflink->automatic_add. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.rflink/
2017-11-07 12:37:59 ERROR (MainThread) [homeassistant.components] Testing configuration at /home/homeassistant/.homeassistant
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up introduction
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up logger
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up http
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up history
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up api
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up map
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up group
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up rflink
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-11-07 12:37:58 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.rflink]: [automatic_add] is an invalid option for [switch.rflink]. Check: switch.rflink->automatic_add. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.rflink/
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.1 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain rflink took 0.1 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up config
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up logbook
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up script
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up light
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up switch
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
2017-11-07 12:37:58 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
Failed config
  switch.rflink: 
    platform: rflink
    automatic_add: True

Successful config (partial)
  switch.rflink:

So I removed everything except:
rflink:
port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

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

And now it shows:
2017-11-07 13:12:50 ERROR (MainThread) [homeassistant.config] Invalid config for [rflink]: required key not provided @ data[‘rflink’][‘port’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/rflink/
2017-11-07 13:12:50 ERROR (MainThread) [homeassistant.setup] Setup failed for rflink: Invalid config.
2017-11-07 13:12:50 ERROR (MainThread) [homeassistant.loader] Unable to find component port
2017-11-07 13:12:50 ERROR (MainThread) [homeassistant.setup] Setup failed for port: Component not found.
.
.
.
Failed config
rflink:

  General Errors: 
    - Setup failed for rflink: Invalid config.
    - Component not found: port
    - Setup failed for port: Component not found.

Successful config (partial)
  rflink:

Wha could be wrong? Should I install something if I want to use RFLINK? I thought there is wverything ready with hassbian - or not?

Maybe I specified wrong “port”. But if I use command"/dev/serial/by-id $ ls" it shows:
usb-1a86_USB2.0-Serial-if00-port0

So is it OK to have config like this?:
rflink:
port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

OHH seems like correct setting is:

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

It is connected to rflink now.

But there is still problem with auto add:

2017-11-07 13:44:17 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.rflink]: [automatic_add] is an invalid option for [switch.rflink]. Check: switch.rflink->automatic_add. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.rflink/

DAMNED!

Failed config
  switch.rflink: 
    platform: rflink
    device_defaults: [source /home/homeassistant/.homeassistant/configuration.yaml:53]
      fire_event: True
    ignore_devices: [source /home/homeassistant/.homeassistant/configuration.yaml:55]
      - TriState_*

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

switch:
  platform: rflink
  device_defaults:
    fire_event: true
  ignore_devices:
    - TriState_*

What could be wrong?

Help me please. I´m lost. Even this is not accepted by HA. I checked it in PSPAD for some mystakes but seems to be OK.

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

switch:
  platform: rflink
  device_defaults:
    fire_event: true
  devices:
    chuango_08cea3_02:
      name: senzor pohybu 1
      icon: mdi:run-fast
logger:
  default: error
  logs:
    rflink: debug
    homeassistant.components.rflink: debug

Log shows this:
2017-11-07 15:17:14 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.rflink]: [icon] is an invalid option for [switch.rflink]. Check: switch.rflink->devices->chuango_08cea3_02->icon. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.rflink/
2017-11-07 15:17:14 ERROR (MainThread) [homeassistant.components] Testing configuration at /home/homeassistant/.homeassistant
2017-11-07 15:17:13 INFO (MainThread) [homeassistant.setup] Setting up introduction
2017-11-07 15:17:13 INFO (MainThread) [homeassistant.setup] Setting up logger
2017-11-07 15:17:13 INFO (MainThread) [homeassistant.setup] Setting up http
2017-11-07 15:17:13 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up api
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up history
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up group
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up rflink
2017-11-07 15:17:14 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.rflink]: [icon] is an invalid option for [switch.rflink]. Check: switch.rflink->devices->chuango_08cea3_02->icon. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.rflink/
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain rflink took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up logbook
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up config
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up script
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setting up switch
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2017-11-07 15:17:14 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
Failed config
switch.rflink:
platform: rflink
device_defaults: [source /home/homeassistant/.homeassistant/configuration.yaml:53]
fire_event: True
devices: [source /home/homeassistant/.homeassistant/configuration.yaml:55]
chuango_08cea3_02: [source /home/homeassistant/.homeassistant/configuration.yaml:56]
icon: mdi:run-fast
name: senzor pohybu 1

Successful config (partial)
  switch.rflink:

Try to remove the icon element, it doesn’t seem to be recognized, you can always put your custom icon in a customize entry.

Yes correct and thanks. Now I can see the sensor on dashboard but is not moving.

WTF!

Now, when I can see the sensor there is no chuango_08cea3_02 in log. Seems like since now this ID is being ignored (tried with 2 motion sensor devices, tried restart both raspberry and rflink). Is it possible?

Erased all and set again. Now it works. The switch goes to ON only for the first time. If I manualy turn it back to OFF it will never go to ON again. Also there are no EVENTS even if I have set fire_event: true.

PLEASE. Has anybody working config with RFLink Gateway V1.1 - R48 and Hassbian? Is here anybody who runs this without problems?

I have it working with the following setup.
Hassio 0.57.2 on resinos. Rflink gateway 1.4 firmware r48

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

switch:
platform: rflink
device_defaults:
fire_event: true
signal_repetitions: 2
devices:
newkaku_02000001_1:
name: Buitenlamp
EMW100_00004330_0:
name: Spotjes Keuken