ESPHome USB Keyboard

Hello,

It would be great if we could have a component that makes ESP32 act like an USB Keyboard, see several loose projects about this.
My idea is to control my TV setup box, that has a RF remote. But I can use a keyboard/mouse on the USB port to control it.
If I can send the keys from ESPHome device would be great.
I know there is a project similar, but uses ESP8266 and a ATMEL, my goal is to keep it all with just one ESP32.
Receive data from HA-WIFI-USB»Setup Box

Is there anything like this?

1 Like

There is this lib GitHub - chegewara/esp32-usb-v2: ESP32S2/S3 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
Woule be great to have a working example for esphome! (Even if just via custom component) for ESP32-S3 / S3

Also

Both under esp-idf not arduino

This doesn’t use ESPHome, but I did build an arduino based remote “base station” that you can plug a USB dongle into from an RF remote and have it pass commands to HA using MQTT. I tried making a custom component for ESPHome, but it was well beyond my understanding, and the docs for building a custom component apparently assume you already know how to build a custom component.

Currently not working on the latest version of ESP-Home but using legacy ESP-Home works fine on, say December 2024 release