ESPHome Integration with Gosund Plug: A Success Story

I’ve been on a mission to integrate my Gosund smart plug with ESPHome, and I’m thrilled to share my success story! While the Gosund plug is affordable and functional, its reliance on the Smart-Life app and the inability to flash OTA without opening the device were dealbreakers for me. But I wasn’t deterred—I decided to take matters into my own hands.

After some research, I discovered that opening the Gosund plug is manageable with a lathe, which worked perfectly without causing any damage. Once opened, I connected my USB-Flasher and successfully flashed a blank ESPHome bin file. This enabled OTA updates, which was a huge win!

The next step was configuring the GPIOs, which took some trial and error, but I eventually got everything running smoothly. To ensure accuracy, I calibrated the voltage and current using a 2000W heater. The result? A fully functional ESPHome plug that operates seamlessly in my local network without any cloud dependency.

For those interested, I used a modified version of the code from this resource, which was tailored for a different plug type but provided a solid foundation. I added sensors for WiFi IP and SSID, which have proven to be incredibly useful.

This project not only enhanced my understanding of ESPHome but also gave me a deeper appreciation for the flexibility of open-source solutions. If you’re looking to customize your smart devices, I highly recommend exploring ESPHome—it’s a game-changer!

Happy tinkering everyone! :rocket: