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 with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

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

Sonoff R3 DIY mode & why it sucks

Long awaited Sonoff R3 DIY mode is even worse than I expected.

NEST your old thermostat under $5

Nest-ing up your older thermostat under $5

IKEA TRADFRI Wireless dimmer in NodeRED

Thanks to NodeRED you can use IKEA TRADFRI Wireless Dimmer to interact with everything

Alexa and NodeRED integration

Hey Alexa, turn the lights on!

Smart Home

M5Paper – the “Kindle” of development and automation

M5Paper combines a brilliant multitouch e-ink display with power of ESP32 to create the most unique programming board

A seriously connected relay! Netio 4PZ

Netio 4PZ could be called a jack of all trades, as it brings multiple functions to a single device. I'm sure some of you will be quick to point out that it doesn't have PoE or it doesn't make your morning toasts. You might...

Strip time! Sonoff L1 Lite RGB LED

New product from ITEAD - Sonoff L1 Lite - budget friendly connected RGB LED strip with a microphone

DIY Smart Heating v3.0

Anyone looking for Smart Heating in 2021 is spoiled for choice, providing money isn't an issue. My home has 30-year-old heating installed, but that didn't stop me from adding "smart" component to it for less than $5. In 3 years time, I had a...

A comprehensive guide to Grafana & InfluxDB

How to use Grafana and InfluxDB on Raspberry Pi for IoT sensors in home automation