Alternative firmware for the cheap OBI wifi socket based on an ESP8266
There are several cheap wifi sockets around and most of them are already supported by excellent projects like Tasmota - including this socket.
However, the objective of this project is about creating a pyhon based software that provides a REST-like api to control the socket via http calls.
The software is based on micropython and the picoweb framework.
The hardware used is a 9€ power socket I bought from a hardware store ('OBI') in Germany. It seems to be a newer revision than the other OBI wifi sockets I found on the interwebs. The plastic case says something about EUROMATE GmbH.
But the basics are the same: LEDs, a button, a relay and an ESP8266. Yay.
More details about how to hack this socket can be found in the wiki.
URI | Description |
---|---|
/switch?pwr=<on/off> |
switch power on/off |
/toggle?pwr=<seconds> |
toggle power for x seconds, use pwr=0 to toggle only once |
/status |
returns port status as JSON |
/reset |
reset/reboot socket |