Physical keyboard not working on docker installation (keyboard_remote)

Hi guys!

I’ve been trying to use a physical keyboard on my HA, but I do not get any event fired from it, my setup goes like this:

Proxmox > LXC > Docker > HA

Following this guide, I have passed 2 usb devices, one is a Zigbee controller (working perfectly) and the keyboard itself of course, now here’s what I think is the weird part, I do get output when I run evtest (inside the container) but still, HA does not have any output

My current yml looks like this:

version: "3.7"

services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:2024.9.2"
    volumes:
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
    privileged: true
    restart: unless-stopped
    network_mode: host
    devices:
      - "/dev/input/"
    device_cgroup_rules:
      - 'c 13:* rmw'

Since the keyboard is under the path /dev/input/by-id/usb-1189_8890-event-kbd, my configuration.yml looks like this:

keyboard_remote:
  device_descriptor: '/dev/input/by-id/usb-1189_8890-event-kbd' 
  type: "key_down"

*testing with evtest *

Any ideas before I start crying?

Elephant in the room, but do you confirm /dev/input/by-id/usb-1189_8890-event-kbd is available inside the container?

The last picture with the events output is from inside the container, so yes :sob:

There is no evtest inside the HA container.
Did you install it manually?

I did, yes!

No clue, it worked for me (although not using it anymore).

2 hints:

  • Don’t run evtest and expect HA events; evtest locks the device. Probably needs an HA restart after testing
  • Be sure to listen to the proper event: keyboard_remote_command_received

Restarted the whole Proxmox server but no luck I’m afraid, I’ll give up for now but thanks!