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

Support for KMC 70011 Smart Plug #1045

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 14 additions & 1 deletion sonoff/sonoff_template.h
Expand Up @@ -192,6 +192,7 @@ enum SupportedModules {
YUNSHAN,
MAGICHOME,
LUANIHVIO,
KMC_70011,
MAXMODULE };

/********************************************************************************************/
Expand Down Expand Up @@ -244,7 +245,8 @@ const uint8_t kNiceList[MAXMODULE] PROGMEM = {
HUAFAN_SS,
AILIGHT,
WEMOS,
WITTY
WITTY,
KMC_70011
};

// Default module settings
Expand Down Expand Up @@ -714,6 +716,17 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off)
0,
GPIO_ADC0 // ADC0 A0 Analog input
},
{ "KMC 70011", // KMC 70011
GPIO_KEY1, // GPIO00 Button
0, 0, 0,
GPIO_HLW_CF, // GPIO04 HLW8012 CF
GPIO_HLW_CF1, // GPIO05 HLW8012 CF1
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_HLW_SEL, // GPIO12 HLW8012 SEL
GPIO_LED1_INV, // GPIO13 Green Led
GPIO_REL1, // GPIO14 Relay
0, 0, 0
}
};

Expand Down