|
@ -154,6 +154,7 @@ enum devices { |
|
|
defined(YJZK_SWITCH_2CH) || \ |
|
|
defined(YJZK_SWITCH_2CH) || \ |
|
|
defined(ZHILDE_EU44_W) |
|
|
defined(ZHILDE_EU44_W) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -169,6 +170,7 @@ enum devices { |
|
|
defined(VANZAVANZU_SMART_WIFI_PLUG_MINI) || \ |
|
|
defined(VANZAVANZU_SMART_WIFI_PLUG_MINI) || \ |
|
|
defined(YIDIAN_XSSSA05) |
|
|
defined(YIDIAN_XSSSA05) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_HLW8012 |
|
|
#define ESPURNA_IMAGE ESPURNA_HLW8012 |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -178,18 +180,21 @@ enum devices { |
|
|
defined(ITEAD_SONOFF_POW_R2) || \ |
|
|
defined(ITEAD_SONOFF_POW_R2) || \ |
|
|
defined(ITEAD_SONOFF_S31) |
|
|
defined(ITEAD_SONOFF_S31) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_CSE77XX |
|
|
#define ESPURNA_IMAGE ESPURNA_CSE77XX |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(GENERIC_V9261F) |
|
|
#elif defined(GENERIC_V9261F) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_V9261F |
|
|
#define ESPURNA_IMAGE ESPURNA_V9261F |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(GENERIC_ECH1560) |
|
|
#elif defined(GENERIC_ECH1560) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_ECH1560 |
|
|
#define ESPURNA_IMAGE ESPURNA_ECH1560 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -207,6 +212,7 @@ enum devices { |
|
|
defined(ITEAD_BNSZ01) || \ |
|
|
defined(ITEAD_BNSZ01) || \ |
|
|
defined(ITEAD_SONOFF_LED) |
|
|
defined(ITEAD_SONOFF_LED) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -216,6 +222,7 @@ enum devices { |
|
|
defined(ARILUX_E27) || \ |
|
|
defined(ARILUX_E27) || \ |
|
|
defined(ITEAD_SONOFF_B1) |
|
|
defined(ITEAD_SONOFF_B1) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_MY92XX |
|
|
#define ESPURNA_IMAGE ESPURNA_MY92XX |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -226,31 +233,35 @@ enum devices { |
|
|
defined(ITEAD_SONOFF_TH) || \ |
|
|
defined(ITEAD_SONOFF_TH) || \ |
|
|
defined(MANCAVEMADE_ESPLIVE) |
|
|
defined(MANCAVEMADE_ESPLIVE) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_SENSOR |
|
|
#define ESPURNA_IMAGE ESPURNA_SENSOR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(TINKERMAN_RFM69GW) |
|
|
#elif defined(TINKERMAN_RFM69GW) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_RFM69 |
|
|
#define ESPURNA_IMAGE ESPURNA_RFM69 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(ITEAD_SONOFF_DUAL) |
|
|
#elif defined(ITEAD_SONOFF_DUAL) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_SONOFF_DUAL |
|
|
#define ESPURNA_IMAGE ESPURNA_SONOFF_DUAL |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(STM_RELAY) |
|
|
#elif defined(STM_RELAY) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_STM |
|
|
#define ESPURNA_IMAGE ESPURNA_STM |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(GENERIC_GEIGER_COUNTER) |
|
|
#elif defined(GENERIC_GEIGER_COUNTER) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_GEIGER |
|
|
#define ESPURNA_IMAGE ESPURNA_GEIGER |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -259,6 +270,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(ITEAD_SONOFF_RFBRIDGE) |
|
|
#elif defined(ITEAD_SONOFF_RFBRIDGE) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_SONOFF_RFBRIDGE |
|
|
#define ESPURNA_IMAGE ESPURNA_SONOFF_RFBRIDGE |
|
|
|
|
|
|
|
|
// Info |
|
|
// Info |
|
@ -290,6 +302,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(PILOTAK_ESP_DIN_V1) |
|
|
#elif defined(PILOTAK_ESP_DIN_V1) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_SENSOR |
|
|
#define ESPURNA_IMAGE ESPURNA_SENSOR |
|
|
|
|
|
|
|
|
#ifndef RF_SUPPORT |
|
|
#ifndef RF_SUPPORT |
|
@ -301,6 +314,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(MAGICHOME_LED_CONTROLLER) |
|
|
#elif defined(MAGICHOME_LED_CONTROLLER) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
|
|
|
|
|
|
// IR |
|
|
// IR |
|
@ -310,6 +324,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(MAGICHOME_LED_CONTROLLER_20) |
|
|
#elif defined(MAGICHOME_LED_CONTROLLER_20) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
|
|
|
|
|
|
// IR |
|
|
// IR |
|
@ -319,6 +334,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(GIZWITS_WITTY_CLOUD) |
|
|
#elif defined(GIZWITS_WITTY_CLOUD) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
#define ESPURNA_IMAGE ESPURNA_DIMMER |
|
|
|
|
|
|
|
|
#define ANALOG_SUPPORT 1 // TODO: specific or generic? |
|
|
#define ANALOG_SUPPORT 1 // TODO: specific or generic? |
|
@ -329,6 +345,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(TRAVIS01) |
|
|
#elif defined(TRAVIS01) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
|
|
|
|
|
|
// A bit of I2C - pins 3,4 |
|
|
// A bit of I2C - pins 3,4 |
|
@ -386,6 +403,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(TRAVIS02) |
|
|
#elif defined(TRAVIS02) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
|
|
|
|
|
|
// A bit of CSE7766 - pin 1 |
|
|
// A bit of CSE7766 - pin 1 |
|
@ -451,6 +469,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif defined(TRAVIS03) |
|
|
#elif defined(TRAVIS03) |
|
|
|
|
|
|
|
|
|
|
|
#undef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
#define ESPURNA_IMAGE ESPURNA_BASIC |
|
|
|
|
|
|
|
|
// MY9231 Light - pins 1,2 |
|
|
// MY9231 Light - pins 1,2 |
|
@ -475,18 +494,17 @@ enum devices { |
|
|
#define NETBIOS_SUPPORT 1 |
|
|
#define NETBIOS_SUPPORT 1 |
|
|
#define SSDP_SUPPORT 1 |
|
|
#define SSDP_SUPPORT 1 |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ESPurna Core |
|
|
// ESPurna Core |
|
|
|
|
|
// This is a special device targeted to generate a light-weight binary image |
|
|
|
|
|
// meant to be able to do two-step-updates: |
|
|
|
|
|
// https://github.com/xoseperez/espurna/wiki/TwoStepUpdates |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
// This is a special device targeted to generate a light-weight binary image |
|
|
|
|
|
// meant to be able to do two-step-updates: |
|
|
|
|
|
// https://github.com/xoseperez/espurna/wiki/TwoStepUpdates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef ESPURNA_IMAGE |
|
|
#define ESPURNA_IMAGE ESPURNA_CORE |
|
|
#define ESPURNA_IMAGE ESPURNA_CORE |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -497,6 +515,7 @@ enum devices { |
|
|
|
|
|
|
|
|
// Disable non-core modules |
|
|
// Disable non-core modules |
|
|
#define ALEXA_SUPPORT 0 |
|
|
#define ALEXA_SUPPORT 0 |
|
|
|
|
|
#define API_SUPPORT 0 |
|
|
#define BROKER_SUPPORT 0 |
|
|
#define BROKER_SUPPORT 0 |
|
|
#define BUTTON_SUPPORT 0 |
|
|
#define BUTTON_SUPPORT 0 |
|
|
#define DOMOTICZ_SUPPORT 0 |
|
|
#define DOMOTICZ_SUPPORT 0 |
|
@ -597,9 +616,7 @@ enum devices { |
|
|
|
|
|
|
|
|
#elif ESPURNA_IMAGE == ESPURNA_SONOFF_DUAL |
|
|
#elif ESPURNA_IMAGE == ESPURNA_SONOFF_DUAL |
|
|
|
|
|
|
|
|
#define SERIAL_BAUDRATE 19230 |
|
|
|
|
|
#define RELAY_PROVIDER RELAY_PROVIDER_DUAL |
|
|
#define RELAY_PROVIDER RELAY_PROVIDER_DUAL |
|
|
#define DEBUG_SERIAL_SUPPORT 0 |
|
|
|
|
|
|
|
|
|
|
|
#elif ESPURNA_IMAGE == ESPURNA_SONOFF_RFBRIDGE |
|
|
#elif ESPURNA_IMAGE == ESPURNA_SONOFF_RFBRIDGE |
|
|
|
|
|
|
|
@ -620,7 +637,6 @@ enum devices { |
|
|
#elif ESPURNA_IMAGE == ESPURNA_STM |
|
|
#elif ESPURNA_IMAGE == ESPURNA_STM |
|
|
|
|
|
|
|
|
#define RELAY_PROVIDER RELAY_PROVIDER_STM |
|
|
#define RELAY_PROVIDER RELAY_PROVIDER_STM |
|
|
#define DEBUG_SERIAL_SUPPORT 0 |
|
|
|
|
|
|
|
|
|
|
|
#elif ESPURNA_IMAGE == ESPURNA_GEIGER |
|
|
#elif ESPURNA_IMAGE == ESPURNA_GEIGER |
|
|
|
|
|
|
|
|