Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devices Teckin SP20 US and ZooZee SA102, my first github fork and pull request... #4481

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions sonoff/sonoff_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ enum SupportedModules {
ARMTRONIX_DIMMERS,
SK03_TUYA,
PS_16_DZ,
TECKIN_US,
ZOOZEE_US,
MAXMODULE };

/********************************************************************************************/
Expand Down Expand Up @@ -487,6 +489,8 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
SHELLY2,
BLITZWOLF_BWSHP, // Socket Relay Devices with Energy Monitoring
TECKIN,
TECKIN_US,
ZOOZEE_US,
APLIC_WDP303075,
GOSUND,
SK03_TUYA,
Expand Down Expand Up @@ -1302,6 +1306,36 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
GPIO_USER,
GPIO_USER,
0
},
{ "Teckin SP20 US", // Teckin SP20 US with Energy Monitoring)
// https://www.amazon.com/Outlet-Compatible-Monitoring-Function-Required/dp/B079Q5W22B
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off)
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off)
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
GPIO_REL1, // GPIO04 Relay (0 = Off, 1 = On)
GPIO_HJL_CF, // GPIO05 BL0937 or HJL-01 CF power
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_NRG_SEL_INV, // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
GPIO_KEY1, // GPIO13 Button
GPIO_NRG_CF1, // GPIO14 BL0937 or HJL-01 CF1 current / voltage
0,
0, 0
},
{ "ZooZee SA102", // ZooZee SA102 US with Energy Monitoring)
// https://www.amazon.com/Outlet-ZOOZEE-Monitoring-Function-Compatible/dp/B07J2LR5KN
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off)
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off)
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
GPIO_REL1, // GPIO04 Relay (0 = Off, 1 = On)
GPIO_HJL_CF, // GPIO05 BL0937 or HJL-01 CF power
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_NRG_SEL_INV, // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
GPIO_KEY1, // GPIO13 Button
GPIO_NRG_CF1, // GPIO14 BL0937 or HJL-01 CF1 current / voltage
0,
0, 0
}
};

Expand Down