remote_homeassistant icon indicating copy to clipboard operation
remote_homeassistant copied to clipboard

Is forwarding of keyboard_remote events possible ?

Open madbrain76 opened this issue 2 years ago • 1 comments

I setup a remote node with an FLIRC USB infrared receiver. This is a device that receives IR signals and outputs keystrokes (emulates a USB keyboard). I got the device to work in a remote HAOS node. I can trigger an automation from IR this way :

alias: Test keyboard remote
description: ""
trigger:
  - platform: event
    event_type: keyboard_remote_command_received
    event_data:
      device_name: flirc.tv flirc Keyboard
      key_code: 2
condition: []
action: []
mode: single

Is it possible to receive this event from my main node, and use them in an automation ? If so, how is the forwarding done ?

Also, I don't know if I setup the main/remote node connectivity correctly. There is no sharing of devices/entities going on whatsoever, which can't be right. Yet the sensor for the remote node shows "connected" state. What could I be missing ? I did RTFM.

madbrain76 avatar Sep 16 '23 10:09 madbrain76

Never mind, I got it all working ! Events are forwarded properly. But are not prefixed with the prefix, somehow.

Ie. event_type has to be keyboard_remote_command_received, same as it is locally, and not remote_keyboard_remote_command_received (I setup remote_" as prefix).

madbrain76 avatar Sep 16 '23 10:09 madbrain76