The sonoff software that i programmed some time ago works realy well. However, the newest sonoffs have different flash chips on board that are not compatible with the old software. Since i had to make some adaptions in the software, i decided to give the whole project a facelift. I experimented with the async webserver but, although faster, i could not get it to function reliable so i sticked to the original esp8266 webserver. The result is that the sw is more memory efficient, more compact and better secured. From outside your network, the switch reacts on nothing without authentication. The differences relative to the old sw are:

I have an experimental version that has a page that makes it possible to send custom http messages to 5 other devices, i.g. domoticsz, all configurable. This makes it possible to switch 5 other devices in your network. Or make domoticz do someting whatever you configure.

For the rest the Sonoff works as it used to, meaning that we can control it completely via its webinterface, use it as thermostate, hygrostate or bodysensor, or just use it as an internet controlled switch with timers to automate switching. Also the sonoff can send messages to domoticz regarding weather sensor or bodysensor. All and all it has a lot of interesting features that makes it a real smart switch.

Another interesting possibility is to build the sonoff in a wall socket. When you have an obsolete wall socket laying around...

klik hier voor het manual