Skip to content

Alternative firmware for the cheap OBI wifi socket based on an ESP8266

License

Notifications You must be signed in to change notification settings

hjoertel/obi_socket

Repository files navigation

obi_socket

Alternative firmware for the cheap OBI wifi socket based on an ESP8266

Intro

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.

obi web socket

More details about how to hack this socket can be found in the wiki.

Web API

GET methods

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

About

Alternative firmware for the cheap OBI wifi socket based on an ESP8266

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.3%
  • Shell 1.7%