I am trying to connect a wireless numeric keypad (one with a USB dongle) to HA. It is out of range of my HA machine, so I am looking to use an ESP32 with OTG support to act as the interface, probably just exposing each key as a button or switch on HA. I have seen a couple of ways to make the ESP32 act as a virtual keyboard, but have no really come across anything for OTG. Is this possible currently in ESPHome?
Have a search for CH9350 in the usual places, looks like it may do what you require and convert USB to serial.
I know about this, however I’d rather use the ESP32 OTG functionality since it’s already on the chip.
There’s currently no support in ESPHome for USB host mode, but it is supported on ESP32-S3 by ESP-IDF. I have a working ESPHome component implementing USB-serial drivers to talk to a multi-port RS485 interface, but have not done anything with HID. So it would work, but will require some coding.
Do you have this? im interested in getting an esp32 to read data from aquacomptuer devices