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