diff --git a/README.md b/README.md index fd4df1eae..67796d1a7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Sonoff-Tasmota Provide ESP8266 based Sonoff by [iTead Studio](https://www.itead.cc/) and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE. -Current version is **5.5.2h** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. +Current version is **5.5.2i** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. ### ATTENTION All versions @@ -44,6 +44,7 @@ The following devices are supported: - [iTead S20 Smart Socket](http://sonoff.itead.cc/en/products/residential/s20-socket) - [iTead Slampher](http://sonoff.itead.cc/en/products/residential/slampher-rf) - [iTead Sonoff Touch](http://sonoff.itead.cc/en/products/residential/sonoff-touch) +- [iTead Sonoff T1](http://sonoff.itead.cc/en/products/residential/sonoff-t1) - [iTead Sonoff SC](http://sonoff.itead.cc/en/products/residential/sonoff-sc) - [iTead Sonoff Led](http://sonoff.itead.cc/en/products/appliances/sonoff-led) - [iTead Sonoff BN-SZ01 Ceiling Led](http://sonoff.itead.cc/en/products/appliances/bn-sz01) @@ -54,8 +55,5 @@ The following devices are supported: - [iTead Motor Clockwise/Anticlockwise](https://www.itead.cc/smart-home/motor-reversing-wifi-wireless-switch.html) - [Electrodragon IoT Relay Board](http://www.electrodragon.com/product/wifi-iot-relay-board-based-esp8266/) -Planned support: -- [iTead Sonoff T1](http://sonoff.itead.cc/en/products/residential/sonoff-t1) - diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index 03a265ba0..d1a532236 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -1,4 +1,4 @@ -/* 5.5.2h +/* 5.5.2i * Fix Sonoff Pow intermittent exception 0 * Change Sonoff Pow sending Domoticz telemetry data only * Add Sonoff B1 RGBCW led support with command Color RRGGBBCCWW (#676) @@ -9,6 +9,7 @@ * Add NeoPixelBus library to Sonoff Led for Hue support (saves 1k code space) * Add user configurable GPIO4 and GPIO5 to module Sonoff Bridge * Fix Mitsubishi HVAC IR power controll (#740) + * Add Sonoff T1 support (#582) * * 5.5.2 20170808 * Extent max number of WS2812 pixels from 256 to 512 (#667) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index f4be6a1d7..0a010da3e 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -25,7 +25,7 @@ - Select IDE Tools - Flash Size: "1M (no SPIFFS)" ====================================================*/ -#define VERSION 0x05050208 // 5.5.2h +#define VERSION 0x05050209 // 5.5.2i enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL}; enum week_t {Last, First, Second, Third, Fourth}; diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index 409621322..061892623 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -153,6 +153,9 @@ enum module_t { SONOFF_BRIDGE, SONOFF_B1, AILIGHT, + SONOFF_T11, + SONOFF_T12, + SONOFF_T13, MAXMODULE }; /********************************************************************************************/ @@ -523,7 +526,51 @@ const mytmplt modules[MAXMODULE] PROGMEM = { 0, GPIO_DCKI, // GPIO15 my9291 DCKI 0, 0 + }, + { "Sonoff T1 1CH", // Sonoff T1 1CH (ESP8285) + 0, + GPIO_USER, // GPIO01 Serial RXD and Optional sensor + 0, + GPIO_USER, // GPIO03 Serial TXD and Optional sensor + 0, + GPIO_REL1, // GPIO05 Blue Led and Relay 1 (0 = Off, 1 = On) + 0, 0, 0, // Flash connection + GPIO_KEY1, // GPIO09 Button 1 + 0, + 0, // Flash connection + 0, + GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) + 0, 0, 0, 0 + }, + { "Sonoff T1 2CH", // Sonoff T1 2CH (ESP8285) + GPIO_KEY1, // GPIO00 Button 1 + GPIO_USER, // GPIO01 Serial RXD and Optional sensor + 0, + GPIO_USER, // GPIO03 Serial TXD and Optional sensor + GPIO_REL2, // GPIO04 Blue Led and Relay 2 (0 = Off, 1 = On) + 0, + 0, 0, 0, // Flash connection + 0, + GPIO_KEY2, // GPIO10 Button 2 + 0, // Flash connection + GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On) + GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) + 0, 0, 0, 0 + }, + { "Sonoff T1 3CH", // Sonoff T1 3CH (ESP8285) + GPIO_KEY1, // GPIO00 Button 1 + GPIO_USER, // GPIO01 Serial RXD and Optional sensor + 0, + GPIO_USER, // GPIO03 Serial TXD and Optional sensor + GPIO_REL3, // GPIO04 Blue Led and Relay 3 (0 = Off, 1 = On) + GPIO_REL2, // GPIO05 Blue Led and Relay 2 (0 = Off, 1 = On) + 0, 0, 0, // Flash connection + GPIO_KEY2, // GPIO09 Button 2 + GPIO_KEY3, // GPIO10 Button 3 + 0, // Flash connection + GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On) + GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) + 0, 0, 0, 0 } - };