mirror of https://github.com/arendst/Tasmota.git
Add support for Digoo DG-SP202
Add support for Digoo DG-SP202 Smart Socket (#4891)
This commit is contained in:
parent
0b4bed6099
commit
a124529015
|
@ -6,7 +6,8 @@
|
|||
* Add support for OBI Power Socket 2 (#4829)
|
||||
* Add support for YTF IR Bridge (#4855)
|
||||
* Change web authentication (#4865)
|
||||
*
|
||||
* Add support for Digoo DG-SP202 Smart Socket (#4891)
|
||||
*
|
||||
* 6.4.1.7 20190106
|
||||
* Fix HLW8012, HJL01 and BL0937 based energy sensors low Power (below 10W) measurement regression from 6.4.1.6
|
||||
* Add Power status functionality to LED2 when configured leaving LED1 for Link status indication
|
||||
|
|
|
@ -275,6 +275,7 @@ enum SupportedModules {
|
|||
MANZOKU_EU_4,
|
||||
OBI2,
|
||||
YTF_IR_BRIDGE,
|
||||
DIGOO,
|
||||
MAXMODULE };
|
||||
|
||||
/********************************************************************************************/
|
||||
|
@ -544,6 +545,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
|
|||
APLIC_WDP303075,
|
||||
GOSUND,
|
||||
SK03_TUYA,
|
||||
DIGOO,
|
||||
NEO_COOLCAM, // Socket Relay Devices
|
||||
OBI,
|
||||
OBI2,
|
||||
|
@ -1693,6 +1695,27 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY1, // GPIO13 Button
|
||||
GPIO_IRSEND, // GPIO14 IR Transmitter
|
||||
0, 0, 0
|
||||
},
|
||||
{ "Digoo DG-SP202", // Digoo DG-SP202
|
||||
// https://www.banggood.com/DIGOO-DG-SP202-Dual-EU-Plug-Smart-WIFI-Socket-Individual-Controllable-Energy-Monitor-Remote-Control-Timing-Smart-Home-Outlet-let-p-1375323.html
|
||||
GPIO_KEY1, // GPIO00 Button1
|
||||
0, // GPIO01 Serial RXD
|
||||
0, // GPIO02
|
||||
0, // GPIO03 Serial TXD
|
||||
GPIO_HJL_CF, // GPIO04 BL0937 or HJL-01 CF power
|
||||
GPIO_NRG_CF1, // GPIO05 BL0937 or HJL-01 CF1 current / voltage
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
|
||||
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
|
||||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_NRG_SEL_INV, // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
|
||||
GPIO_LED1, // GPIO13 Blue Leds - Link Status
|
||||
GPIO_REL2, // GPIO14 Relay2 (0 = Off, 1 = On) and Red Led
|
||||
GPIO_REL1, // GPIO15 Relay1 (0 = Off, 1 = On) and Red Led
|
||||
GPIO_KEY2_NP, // GPIO16 Button2, externally pulled up
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1723,7 +1746,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// https://www.amazon.com/dp/B072MKV8ZM
|
||||
GPIO_KEY1, // GPIO00 PROG Button
|
||||
GPIO_USER, // GPIO01 Serial RXD or Optional sensor on J2 RXD (if not using serial io)
|
||||
0, // GPIO02
|
||||
0, // GPIO02
|
||||
GPIO_USER, // GPIO03 Serial TXD or Optional sensor on J2 TXD (if not using serial io)
|
||||
GPIO_REL2_INV, // GPIO04 Relay 2 (active low)
|
||||
GPIO_REL1_INV, // GPIO05 Relay 1 (active low)
|
||||
|
|
Loading…
Reference in New Issue