<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.tinkernet.ca/index.php?action=history&amp;feed=atom&amp;title=IoT_-_Sonoff</id>
	<title>IoT - Sonoff - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tinkernet.ca/index.php?action=history&amp;feed=atom&amp;title=IoT_-_Sonoff"/>
	<link rel="alternate" type="text/html" href="https://wiki.tinkernet.ca/index.php?title=IoT_-_Sonoff&amp;action=history"/>
	<updated>2026-05-12T14:24:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.tinkernet.ca/index.php?title=IoT_-_Sonoff&amp;diff=231&amp;oldid=prev</id>
		<title>Tinker: Created page with &quot;==Sonoff Devices on Hand==  *Sonoff Basic (R1 &amp; R2) **[https://blakadder.github.io/templates/sonoff_basic.html T D T Repository] **Currently flashed with IoT - TasmOTA|T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tinkernet.ca/index.php?title=IoT_-_Sonoff&amp;diff=231&amp;oldid=prev"/>
		<updated>2020-06-13T02:31:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Sonoff Devices on Hand==  *&lt;a href=&quot;/index.php?title=Sonoff_Basic&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Sonoff Basic (page does not exist)&quot;&gt;Sonoff Basic&lt;/a&gt; (R1 &amp;amp; R2) **[https://blakadder.github.io/templates/sonoff_basic.html T D T Repository] **Currently flashed with IoT - TasmOTA|T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Sonoff Devices on Hand==&lt;br /&gt;
&lt;br /&gt;
*[[Sonoff Basic]] (R1 &amp;amp; R2)&lt;br /&gt;
**[https://blakadder.github.io/templates/sonoff_basic.html T D T Repository]&lt;br /&gt;
**Currently flashed with [[IoT - TasmOTA|TasmOTA]]&lt;br /&gt;
*[[Sonoff Dual]]&lt;br /&gt;
**[https://blakadder.github.io/templates/sonoff_dual_R2.html T D T Repository]&lt;br /&gt;
**Currently flashed with [[IoT - TasmOTA|TasmOTA]]&lt;br /&gt;
*[[Sonoff S20]]&lt;br /&gt;
**[https://blakadder.github.io/templates/sonoff_S20.html T D T Repository]&lt;br /&gt;
**Currently flashed with [[IoT - TasmOTA|TasmOTA]]&lt;br /&gt;
*[[IoT - Sonoff S31|Sonoff S31]]&lt;br /&gt;
*Sonoff S31 Lite&lt;br /&gt;
*[[Sonoff D1]] dimmer&lt;br /&gt;
*[[Sonoff RM433]]&lt;br /&gt;
*[[Sonoff RF-Bridge 433]]&lt;br /&gt;
**[https://blakadder.github.io/templates/sonoff_RF_bridge.html T D T Repository]&lt;br /&gt;
**[https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-RF-Bridge-433 TasmOTA Wiki]&lt;br /&gt;
**Currently flashed with [[IoT - TasmOTA|TasmOTA]] &amp;amp; [https://github.com/Portisch/RF-Bridge-EFM8BB1/wiki RF-Bridge-EFM8BB1]&lt;br /&gt;
*[[IoT - Sonoff Micro|Sonoff Micro]]&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;span class=&amp;quot;mw-headline&amp;quot; id=&amp;quot;Things_I.27ve_learned&amp;quot;&amp;gt;Things I've learned&amp;lt;/span&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
*Apparently, quality control could be better... &lt;br /&gt;
**If you find you're getting silly errors that have you chasing your tail, try reflowing the whole damn board...&lt;br /&gt;
&lt;br /&gt;
==Hardware Notes==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-Basic Sonoff Basic Hardware Notes]&lt;br /&gt;
&lt;br /&gt;
===GPIO Assignments===&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 500px&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; |GPIO Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; |Useage&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; |Notes&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |0&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Button 1&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |2&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |4&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Relay 3&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |5&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Relay 2&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |9&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Button 2&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |10&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Button 3&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |12&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Relay 1&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |13&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |LED&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |14&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Button 4&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |15&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |Relay 4&lt;br /&gt;
| style=&amp;quot;text-align: center&amp;quot; |&amp;amp;nbsp;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;span class=&amp;quot;mw-headline&amp;quot; id=&amp;quot;Tasmota&amp;quot;&amp;gt;Tasmota&amp;lt;/span&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=IcOFeIcLFFo SuperHouse #31: Sonoff Tasmota installation and configuration]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#800080&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;mw-headline&amp;quot;&amp;gt;Fuck Arduino... Moving to PlatformIO&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-headline&amp;quot;&amp;gt;If all else fails... go exploring the [https://github.com/arendst/Sonoff-Tasmota/wiki Tasmota Wiki.]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-headline&amp;quot;&amp;gt;In particular, keep an eye on the [https://github.com/arendst/Sonoff-Tasmota/wiki/What's-New What's New] page.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE How to setup and configure Arduino IDE for Tasmota compilation and upload.] &lt;br /&gt;
**Board: &amp;quot;Generic ESP8266 Module&amp;quot;&lt;br /&gt;
**Flash Mode: &amp;quot;DOUT&amp;quot;&lt;br /&gt;
**Flash Size: &amp;quot;1M (no SPIFFS)&amp;quot; &lt;br /&gt;
***This is based on the Sonoff &amp;amp; the ESP07 &lt;br /&gt;
****The ESP12 seems to have 4M &amp;amp; the ESP01s on hand have 2M&lt;br /&gt;
**Debug port: &amp;quot;Disabled&amp;quot;&lt;br /&gt;
**Debug Level: &amp;quot;None&amp;quot;&lt;br /&gt;
**IwIP Variant: &amp;quot;v1.4 Prebuilt&amp;quot; &lt;br /&gt;
***Not sure why not the newer version&lt;br /&gt;
**Reset Method&amp;quot; &amp;quot;nodemcu&amp;quot;&lt;br /&gt;
**Crystal Frequency: &amp;quot;26 MHz&amp;quot;&lt;br /&gt;
**Flash Frequency: &amp;quot;40 MHz&amp;quot;&lt;br /&gt;
**Upload Using: &amp;quot;Serial&amp;quot; &lt;br /&gt;
***OTA_upload is also an option&lt;br /&gt;
***or was until &amp;quot;Upload Using&amp;quot; disappeared...&amp;amp;nbsp; WTF?&lt;br /&gt;
***'''&amp;lt;span style=&amp;quot;color:#B22222&amp;quot;&amp;gt;SONOFABITCH... updated [https://github.com/esp8266/Arduino esp8266 stuff] (2.4.1) may have broken shit!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
***&amp;lt;span style=&amp;quot;color:#B22222&amp;quot;&amp;gt;I've put the 2.4.0 files into the 2.4.1 configuration on Lise... must test...&amp;lt;/span&amp;gt;&lt;br /&gt;
***'''&amp;lt;span style=&amp;quot;color:#B22222&amp;quot;&amp;gt;BUGGER ME!&amp;amp;nbsp; had to revert ESP8266 to 2.4.0 &amp;amp; redo the setup...&amp;lt;/span&amp;gt;'''&lt;br /&gt;
**CPU Frequency: &amp;quot;80 MHz&amp;quot;&lt;br /&gt;
**Upload Speed: &amp;quot;115200&amp;quot;&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Initial-Configuration Initial Configuration]&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Button-Usage Button usage]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 678px&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |1 short press&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Toggles the relay either directly or by sending a MQTT message like cmnd/sonoff/1/light on. This will blink the LED twice and sends a MQTT status message like stat/sonoff/LIGHT on. If cmnd/sonoff/ButtonRetain on has been used the MQTT message will also contain the MQTT retain flag.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |2 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Toggles the relay. This will blink the LED twice and sends a MQTT status message like stat/sonoff/POWER on. For Sonoff Dual this will switch relay 2.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |3 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Start Wifi smartconfig allowing for SSID and Password configuration using an Android mobile phone with the ESP8266 SmartConfig app. The MQTT server still needs to be configured in the user_config.h file. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |4 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Start Wifi manager providing an Access Point with IP address 192.168.4.1 and a web server allowing the configuration of both Wifi and MQTT parameters. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |5 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Start Wifi Protected Setup (WPS) allowing for SSID and Password configuration using the routers WPS button or webpage. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |6 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Will restart the module&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |7 short presses&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Start OTA download of firmware. The green LED is lit during the update&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width: 116px&amp;quot; |Long Press (4 seconds+)&lt;br /&gt;
| style=&amp;quot;width: 546px&amp;quot; |Reset settings to defaults as defined in user_config.h and restarts the device&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Commands Commands]&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Features MQTT Features]&lt;br /&gt;
*Works just fine on a generic ESP-01, ESP-07 &amp;amp; ESP-12 too&amp;amp;nbsp;&amp;amp;nbsp;:)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Control-a-Sonoff-using-a-remote-button Control a Sonoff using a remote button]&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/releases Sonoff-Tasmota Release Downloads]&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
&lt;br /&gt;
*[https://www.itead.cc/wiki/EWeLink_Introduction EWeLink]&lt;br /&gt;
*[https://www.google.ca/search?dcr=0&amp;amp;ei=6nhdWrnaCszojwSHjYHQBw&amp;amp;q=alternative+control+for+sonoff&amp;amp;oq=alternative+control+for+sonoff&amp;amp;gs_l=psy-ab.3...89636.94136.0.94574.5.5.0.0.0.0.132.571.2j3.5.0....0...1c..64.psy-ab..0.0.0....0.gtvUcQObzBI Search: alternative control for sonoff]&lt;br /&gt;
*[https://www.superhouse.tv/17-home-automation-control-with-sonoff-arduino-openhab-and-mqtt/ SuperHouseTV #17: Home automation control with Sonoff, Arduino, OpenHAB, and MQTT]&lt;br /&gt;
*[https://www.superhouse.tv/21-six-sonoff-secrets/ SuperHouseTV #21: Six Sonoff Secrets: Storage, Safety, Switches, Sensors, Software, and Sites]&lt;br /&gt;
*[https://www.youtube.com/watch?v=BHzsWwd351I SuperHouse #30: Reflash ANY Sonoff, even if you don't know the pinout]&lt;br /&gt;
*[https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool Esptool] - [https://github.com/arendst/Sonoff-Tasmota/wiki arendst/Sonoff-Tasmota Wiki]&lt;br /&gt;
*[https://www.youtube.com/watch?v=chyVjtYb0EA Flashing TASMOTA Firmware on the Sonoff Basic using Arduino] (Guy seems a little dumb... but...)&lt;br /&gt;
*[https://www.youtube.com/watch?v=ONFhXM5R-t4 Flashing TASMOTA on a Sonoff OVER-the-AIR&amp;amp;nbsp;!!!] (Same guy again...)&lt;br /&gt;
*[https://www.youtube.com/watch?v=fwb5YAPzPGk #125 MQTT meets SONOFF: QoS, Last Will, Keep-Alive, etc. explained and shown]&lt;br /&gt;
&lt;br /&gt;
*[https://esp8266hints.wordpress.com/category/software/tasmota/ ESP8266 Blog Entries]&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;span class=&amp;quot;mw-headline&amp;quot; id=&amp;quot;Next_Steps&amp;quot;&amp;gt;Next Steps&amp;lt;/span&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;s&amp;gt;Hook the Tasmota Sonoff into Node-Red&amp;lt;/s&amp;gt; &lt;br /&gt;
**Pretty darn easy... &lt;br /&gt;
***Just use MQTT&lt;br /&gt;
***Should take a look at: &lt;br /&gt;
****&amp;lt;span&amp;gt;node-red-contrib-sonoff-tasmota&amp;lt;/span&amp;gt;&lt;br /&gt;
*Figure out the whole &amp;quot;OTA&amp;quot; part...&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;:P&lt;br /&gt;
*Get Google Home talking to Tasmota&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[https://www.tindie.com/stores/Armtronix/items/ Armtronix] &lt;br /&gt;
**[https://www.tindie.com/products/Armtronix/wifi-ac-dimmer-esp8266-one-triac-board-alexaecho/ ARMTRONIX WIFI SINGLE Dimmer Board]&lt;br /&gt;
**[https://www.tindie.com/products/Armtronix/wifi-ac-dimmer-two-triac-board/ Wifi AC Dimmer Two Triac Board] &lt;br /&gt;
***Kinda seems like an improved Sonoff clone... (dimmable)&lt;/div&gt;</summary>
		<author><name>Tinker</name></author>
		
	</entry>
</feed>