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

Sonoff ZBMINI is in town!

ITEAD released a new product - Sonoff ZB Mini - a smarter twin brother of Sonoff Mini!

Testing 9 external antennas with CC2531 ZigBee coordinator

I have tested the range and the link quality of 9 external antennas with CC2531!

I have infinite buttons thanks to Aqara Opple

Gaming on Switch meets IoT - can you play games on Aqara Opple? Apparently you can! This and more uses of the connected wall switch

Smart lights won’t save you money

It's pretty clear how much power a smart light draws when turned on, but have you ever wonder how much do you pay to have it connected 24/7?

Alexa Routines: Setting volume on all Echos at once

Setting volumes on all Amazon Echo devices at once doesn't have to be a chore!