HomeHome AutomationA hackable ESP8266 inside a smart plug

A hackable ESP8266 inside a smart plug

Want to play with ESP8266 without worrying about the hardware?

I had a chance to review an Oittm Smart WiFi Plug recently. I also tried to see if I can use Tasker with it, but Wireshark returned encrypted data. No success, for now… While I was trying to get the IP of the smart plug – I discovered a newly added and very familiar to me hostname: espressif. You know what this means: ESP8266 inside a smart plug.

A hackable ESP8266 inside a smart plug

Since I don’t know how to bypass the encryption and I don’t want to use Alexa hacks to get it working with Tasker or Raspberry Pi, the only solution is to look inside. After all, ESP8266 inside the smart plug is pretty much the same concept as my WiFi light switch.

Buy Oittm WiFI Smart Socket

Buy it using these links to support NotEnoughTech.

The review is up, no need to worry about the damage anymore, so let’s crack this baby open, shall we? Side note: there are no warranty seals, which makes the whole unit easily accessible. Just don’t do this when this thing is plugged into the mains.

ESP8266 inside a smart plug

Two screws later, the insides of the Oittm plug are available to me. Having a suspicion is one thing, but seeing the ESP8266 inside a smart plug another! I’m glad I was not mistaken.

ESP8266 inside a smart plug

I removed the PCB, to get a better look at the circuit. All important pins have been exposed for tinkering.  This is a pure gold! Big contact points nicely labeled for me! I have TX and RX responsible for data transfer, we have the power pins as well.

Exposed pads:

  • TX, RX – serial data transfer
  • GND, 3.3V, 5V – power for the relay and ESP8266
  • Relay – relay signal
  • GPIO00, GPIO02 – boot and reset pins
  • button – probably set as some GPIO interrupt


I’m not sure if I will be able to download the firmware ‘just in case’ from the ESP8266. It would be ideal to have the backup ready should I decided to go back to the ‘stock’. I will probably try to flash my custom MQTT enabled script so the ESP8266 inside a plug would become compatible with my custom software.

I successfully hacked the Oittm plug. I was able not only write my own code using Arduino IDE, but also use existing AFE Firmware with it. If you want to know more – here is the hack guide.

Conclusion

If you are interested in embedding a smart socket into your own DIY home automation system this could save you some troubles. After all, it’s easier to write a script than design a PCB and create an enclosure. I will keep you updated about my attempts to hack this thing.

PayPal

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

Patreon

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

image/svg+xml

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

client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image

Learn NodeRED

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

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

Best Automation Projects

Tuya SDK for beginners: Intro to Tuya Cloud API

0
Working with Tuya Cloud API. A guide to Cloud automation for beginners, get started with REST!

NEST your old thermostat under $5

0
Nest-ing up your older thermostat under $5

Nora – Google Assistant in NodeRED

0
Integrate Google Assistant with NodeRED thanks to Nora - NodeRED home automation

Sonoff Zigbee Bridge – review

0
Sonoff line up will soon include Sonoff Zigbee Bridge and more Zigbee sensors - here is the first look

DIY Smart Washing Machine – for about 15 bucks!

0
Learn how to add washing machine notifications to your Google Home on the cheap

Smart Home

We’ve seen this before: SwitchBot K10+ PRO

0
This is an odd one. Building on the success of SwitchBot K10+ they released SwitchBot K10+ PRO - but is the experience actually better?

Is this the smart panel we have waited for?

0
ITEAD has released a new smart panel: Sonoff NSPanel Pro 120 - have they learned the lesson from the terrible launch of the original Pro? Let's see what's new.

Aqara FP1E detects motionless humans

0
This isn't exactly a new device, it's an interaction of the original Aqara presence sensor. Aqara FP1E brings Matter, ZigBee and new triggers to your smart home

SwitchBot S10: cleaning re-imagined!

0
SwitchBot S10 promises unattended vacuuming and mopping so you can focus on things you love and care for. Does it deliver?

Sonoff for households and gardens

0
ITEAD released two ZigBee devices to manage water in your household and gardens. Now you can monitor the flow and dispense water with Sonoff SWV and prevent water damage using the Sonoff Water Leak sensor with a twist.