Making a Benfei USB switch smart with a ESP32 S3
Summary I am documenting my (successful) attempt to make a Benfei USB switch smart by adding an embedded ESP32 S3 zero board. This is because I found zero information about this device on the web, and it might help someone in the future. Background I wanted to be able to use Home Assistant to switch my keyboard and mouse between 2 pc's. But I wanted to be able to control this via Home Assistant so I could make it switch at the same time as I used it to switch my monitor input between the same 2 PCs, so I could have a smart KVM without spending the money on a proper one, and without losing my lovely 4k 144Hz capability. I did some googling and I saw that folk had successfully added a ESP32 to generic, cheap USB switches. So I took a punt on a Benfi one, ensuring that it had a remote control and optional external power, should they be needed for the project (they werent). The one I bought was https://amazon.co.uk/dp/B0DGFC4MWK It was less than £20 so even if I broke it, ...