Skip to content
Gerry33 edited this page May 19, 2017 · 3 revisions

Welcome to the ESP8266MainsSwitch wiki!

Here is another mains switch controller software for ESP8266 family controller.

It may be compiled for ESP01, SONOFF- modules, and ESP-7/12 modules by setting just a few #defines.

Motivation

Most controller software have only rudimentary control function. Espcecially they are not designed for any case of failure in the network. You want all your switches work on, if your home automation central crashes or your WIFI is down giving you a more fail safe

And if you do not care for all that fancy, server stuff, you simple have a 24hr clock

I did not go with the promising HOMIE- project as my first steps very disappointing with respect to stability. Also some essential features where missing, others collide with my requirements esp. the reconnect timing procedures. However, the concepts behind it are brilliant !

Prerequisites

  • WIFI
  • NTP server locally e.g. in your router or internet access

GUI

TODO

Compile

TODO

OTA Upload

TODO

Hardware Design

My hardware design contains

  • A solid state relay (SSR) cause I find 'clicking' of relays uncool ;-)
  • an exchangeable 2A fuse
  • a thermo fuse
  • VDR for overvoltages
  • snubber elements for capacitive loads

I focused a bit more on electrical security. Cause when this modules is overloaded and starts to melt/burn, you are in big trouble to explain this to your house insurance.

I used a housing from a former 433Mhz main switch.

Sample hardware Sample hardware

Clone this wiki locally