My ESPhome configs
- esp32-key-jack.yml is my amp key holder mod
- esp_bt_proxy.yml is a basic bluetooth proxy
- flexispot_ek5.yml is my code for my sit stand desk
I have a cheap key holder that looks like an amp with 4 6.35mm jacks
Once I saw that the plugs are real plugs with solder legs, I did just that. Soldered wires to the legs and plugged into an ESP32 board, then have code to pick up the connection.
You need to have the pins start high and go low with an closed circuit, or you will fry the ESP32.
This is how the 4 plugs are wired into the ESP32
- GPIO25 key4
- GPIO26 key3
- GPIO27 key2
- GPIO33 key1
- GND common ground for all 4 using a wago.
This is what you see in home assistant