This post is no way related to Networking ! 😉

It’s always my fascination to implement a specific tech towards home automation so as to have more time in hands. The first step towards this was to use a Tp-link smart switch which came with Alexa, now problem with that is that Tplink app was not properly responding to Alexa and TP-Link smart switch in itself was costly.

I wanted something low-cost, something which I can experiment yet be cost effective, After some re-search I came across Sonoff-Basic model.

https://sonoff.itead.cc/en/products/sonoff/sonoff-basic

I integrated with Amazon echo but again there were app issues (default app is ewelink), though it was working fine something was missing, I couldn’t tinker it to my wish

I found then there is a open-source version of a similar firmware called TASMOTA and we have to flash this sonoff with the new firm-ware of Tasmota, I have to tell you here there is every possibility you would brick your device and make it useless in the process.

https://github.com/arendst/Sonoff-Tasmota/wiki/Prerequisite

Everything is so well documented, there is no need to re-iterate things here, but just to show case another successful implementation.

Need-less to say you are playing with AC/DC electrical power so take all the precautions as necessary and follow the blog articles in official tasmota page, this article does no job in listing out any implementations of flashing the device

Requirements – Though not listed in scree-shots

1- basic solder guns

2-solder pins

3.Raspberry pi (you can also do it with Serial USB but i used Rasepberry pi)

 

 

  1. Open the Sonoff basic cover

2. Connect these to sonoff switch and Raspberry pi as instructed in the wiki

This is how connection would look like

Connect to Raspberry pi

Flashing Sonoff , this is the tricky part, if possible get a second pair of hands.

New firmware would take off, Sonoff would boot in an AP mode so the wireless SSID SONOFF_X will be seen in your wireless connections, connect to it and you should be able to configure the device and configure the wireless parameters

 

You can configure MQTT topic subscription or just ask sonoff to emulate Wemo switch so that it can be used with a Smart home skill like YETI in Amazon echo (alexa)

I have cut a spike cable, connected sonoff. Spike connects to entertainment system which can be programmed to switchoff after a particular time in night or invoke it with voice commands from echo.

This is some start towards affordable home automation, I will post more about PIR sensors which i have been using and other details as time permits. Hass.io is looking promising and should be a good start as well.

-Rakesh