Flashing with Tasmota
Software
ESPEasy
• Download here https://github.com/letscontrolit/ESPEasy/releases
• I used ESPEasy_mega-20190406.zip from the Assets list
• Download and extract to folder
• Running FlashESP8266.exe will display the simple UI
Toasmota bin file
• Tasmota Wiki page - https://github.com/arendst/Sonoff-Tasmota/wiki/Shelly-1-and-2
• Download here http://thehackbox.org/tasmota/release/
• Get latest Sonoff.bin file (I used 6.5.0)
• Drop into same folder as ESPEasy and it shows up in Firmware drop down list
Hardware
Lots of diagrams on web to connect so won’t post more here
My setup is breadboard, FTDI232 (USB to serial adapter) & some connectors (notice floating lead for GOPI0
Connect Shelly1,
Connect GPIO0 to gnd (TX-RX cross connected) and connect FTDI232 to PC. (DO NOT CONNECT ANY MAINS POWER-IF NOT SURE THEN STOP NOW)
Launch ESPEasy, select sonoff.bin and correct COM port and Flash. It should take <30 seconds.
Disconnect from PC, disconnect GPIO) lead and reconnect to PC to power back on.
Use phone to connect to Shelly1 hotspot (normally SSID something like sonoff-1254), add your SSID and PW in Configuration-Configure Wifi. Slect Shelly 1 (46) in Configuration-Configure Module and do the same in Configure-Template (for Based on dropdown)
Save as you go and reboot at end. Connect to Web Interface at device IP address and browser. You can use Fing or Advanced IP Scanner to find IP address. It will show up as Sonoff-xxxx Hostname
Install Shelly1 Module
Use of the many wiring diagrams available and install safely.
I 3D printed some DIN rail holders as some of mine are in a consumer unit – Either of these should work
• https://www.thingiverse.com/thing:2319771
• https://www.thingiverse.com/thing:2885596
Shelly1 is approx. same size as Fibaro Relay device
HC2 Integration
• Import VD, add Port 80 and your device IP Address (web as no MQTT support)
• Simple code here. I used a global to track status of switch so I can check/trigger from it. VD main loop lines 12 and 16 control this. Modify/Comment out as required
BenchLights.vfib
I also created a VD that uses a hometable entry to track the IP address as my collection of wifi devices are growing
Hometable entry I use is as follows
sonoff =
{hallLamp=93, extFanMain=106, extFanMaster=145, extFanLauren==127, livingLamp1=223, livLamp2=263, elecBlanket=140, projRFcommand=104, cabinetTall=141, cabinetShort=142, kitCounter1=143. kitCounter2=144. kitCounter3=145, ustairsLight=146, protoBasic1=150,protoBasic2=152,protoBasic3=153,protoBasic4=154,
},
shelly =
{garageBench=221, garageCeiling=222, dustColl100=125, dustColl50=126, pizzaRGB=201
},
VD using hometable entry
CeilingLight.vfib
Bench_Lights.vfib
Ceiling_Lights.vfib