Home ESP8266/ESP32 DIY Smart Socket with ESP8266 and AUKEY charger (1/3)

DIY Smart Socket with ESP8266 and AUKEY charger (1/3)

Turning a USB pass through charger into smart socket

I suspected that AUKEY PA-S11 charger had some empty space inside its enclosure. I hate wasting space and I had few ESP8266 laying around. Could this sound like a marriage made in heaven? Maybe! It’s time to risk an electric shock and setting my office on fire for your personal pleasure! Time for a DIY smart socket.

DIY Smart Socket

I was inspired by the Oittm smart plug which I reviewed previously here. The problem with most smart gadgets is that they don’t often provide us with API to play with. I wish more of the smart home gadgets would take the Yeelight approach. I promise, I will revisit the Oittm smart plug again and try to hack it further, but let’s focus for now on AUKEY charger and the ESP8266.

ESP8266 are so cheap nowadays, that I’m tempted to add it to pretty much ANY commercially available products. It sounds like a great idea for a series of articles! I have six ESP-01 I bought on the cheap some time ago. These are small but also limited to 4 usable pins. It’s more than enough for me.

The socket uses ESP8266 to drive the ‘smart’ functionality. The chip is connected to my Raspberry Pi server running NodeRED. I wrote before about ESP8266 and NodeRED.  The main features of the DIY Smart Socket include:


For less than a $5 it’s a really cool upgrade to make. I always loved the ideas of adding interesting features to everyday objects. This is one of the very reasonable ones! Let me know via social media what other products you would like to see upgraded to ESP8266. Something tells me, this could turn interesting soon! I will upload the full tutorial soon, so follow me via social media and I will keep you posted!


Nothing says "Thank you" better than keeping my coffee jar topped up!


Support me on Patreon and get an early access to tutorial files and videos.


Bitcoin (BTC)

Use this QR to keep me caffeinated in style with crypto-currency

Smart Ideas with

Automate your space in with these ecosystems and integrate it with other automation services

Learn NodeRED

NodeRED for beginners: 1. Why do you need a NodeRED server?

To server or not to server? That's a very silly question!

Best Automation Projects

ESP8266 WIFI lights under $5

Your Sonoff device can't do this!

Free wireless doorbell (Amazon Dash button hack)

The most terrifying situation I can imagine* is missing a parcel

New Amazon Dash Buttons

You can teach new buttons old tricks!

ESP8266 ceiling light – demo

Testing the ESP8266 as a WIFI light controller

Try Tasker and Raspberry Pi for your home automation needs!

Raspberry Pi can help you with your Tasker profiles

Smart Home

Awesome time with Wio Terminal

Wio Terminal from SeeedStudio is a great all-in-one development board that doesn't require soldering skills to get started with.

Flashing Tasmota on Sonoff ZigBee Bridge

How to flash Tasmota on Sonoff ZigBee Bridge to enable it for NodeRED and Home Assistant

Flashing Tasmota on Novostella smart bulb & floodlights

Flashing Tasmota on Tasmota on Novostella smart bulb & floodlights - it's quick simple and rewarding - here is how to use lights in NodeRED

Adding Sonoff sensors in Zigbee2MQTT and other systems

Can you use Sonoff sensors in Zigbee2MQTT and other ecosystems? Trying Tuya, Xiaomi, IKEA Tradfi and CC2531

Sonoff Zigbee sensors

I'm checking out Sonoff ZigBee sensors by ITEAD - what's the budget sensors like?