Trigger by event?

Using RFlink i get the following event from my remote:

2017-08-09 21:29:24 DEBUG (MainThread) [rflink.protocol] received data: 20;FF;
2017-08-09 21:29:24 DEBUG (MainThread) [rflink.protocol] received data: EV1527;ID=0b15fe;SWITCH=01;CMD=ON;
2017-08-09 21:29:24 DEBUG (MainThread) [rflink.protocol] got packet: 20;FF;EV1527;ID=0b15fe;SWITCH=01;CMD=ON;
2017-08-09 21:29:24 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'ev1527', 'id': '0b15fe', 'switch': '01', 'command': 'on'}
2017-08-09 21:29:24 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'ev1527_0b15fe_01', 'command': 'on'}
2017-08-09 21:29:24 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'id': 'ev1527_0b15fe_01', 'command': 'on'}
2017-08-09 21:29:24 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known, adding new device

How can i use this as a trigger in a automation to do an action based on key press?

Ive been trying the following without luck:

- alias: "test"
  trigger:
   - platform: event
     event_type: rflink.command
     event_data:
       id: "ev1527_0b15fe_01"
       command: "on"
  action:
    - service: notify.rolf
      data_template:
        message: test

Hi Rolf,

Have you managed to figure it out? I’m running into thesame problem here.

Grtz,

Sholofly

I do it for my doorbell:
- alias: 'Doorbell pushed'
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: switch.sonnette
action:
- service: script.notify_home_people
data:
peoples: ['Christophe', 'Bénédicte']
message: "Qq'un sonne à la porte"