|
@ -2164,15 +2164,16 @@ |
|
|
#define LED4_RELAY 1 |
|
|
#define LED4_RELAY 1 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// NEO Coolcam Power Plug |
|
|
|
|
|
|
|
|
// NEO Coolcam NAS-WR01W Wifi Smart Power Plug |
|
|
// https://es.aliexpress.com/item/-/32854589733.html?spm=a219c.12010608.0.0.6d084e68xX0y5N |
|
|
// https://es.aliexpress.com/item/-/32854589733.html?spm=a219c.12010608.0.0.6d084e68xX0y5N |
|
|
|
|
|
// https://www.fasttech.com/product/9649426-neo-coolcam-nas-wr01w-wifi-smart-power-plug-eu |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(NEO_COOLCAM_POWER_PLUG_WIFI) |
|
|
|
|
|
|
|
|
#elif defined(NEO_COOLCAM_NAS_WR01W) |
|
|
|
|
|
|
|
|
// Info |
|
|
// Info |
|
|
#define MANUFACTURER "NEO_COOLCAM" |
|
|
#define MANUFACTURER "NEO_COOLCAM" |
|
|
#define DEVICE "POWER_PLUG_WIFI" |
|
|
|
|
|
|
|
|
#define DEVICE "NAS_WR01W" |
|
|
|
|
|
|
|
|
// Buttons |
|
|
// Buttons |
|
|
#define BUTTON1_PIN 13 |
|
|
#define BUTTON1_PIN 13 |
|
@ -2278,33 +2279,33 @@ |
|
|
#elif defined(BLITZWOLF_BWSHP2) |
|
|
#elif defined(BLITZWOLF_BWSHP2) |
|
|
|
|
|
|
|
|
// Info |
|
|
// Info |
|
|
#define MANUFACTURER "BLITZWOLF" |
|
|
|
|
|
#define DEVICE "BWSHP2" |
|
|
|
|
|
|
|
|
#define MANUFACTURER "BLITZWOLF" |
|
|
|
|
|
#define DEVICE "BWSHP2" |
|
|
|
|
|
|
|
|
// Buttons |
|
|
// Buttons |
|
|
#define BUTTON1_PIN 13 |
|
|
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
|
#define BUTTON1_PIN 13 |
|
|
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
|
// Relays |
|
|
// Relays |
|
|
#define RELAY1_PIN 15 |
|
|
|
|
|
#define RELAY1_TYPE RELAY_TYPE_NORMAL |
|
|
|
|
|
|
|
|
#define RELAY1_PIN 15 |
|
|
|
|
|
#define RELAY1_TYPE RELAY_TYPE_NORMAL |
|
|
|
|
|
|
|
|
// LEDs |
|
|
// LEDs |
|
|
#define LED1_PIN 2 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_PIN 0 |
|
|
|
|
|
#define LED2_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_MODE LED_MODE_FINDME |
|
|
|
|
|
#define LED2_RELAY 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 2 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_PIN 0 |
|
|
|
|
|
#define LED2_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_MODE LED_MODE_FINDME |
|
|
|
|
|
#define LED2_RELAY 1 |
|
|
|
|
|
|
|
|
// HJL01 / BL0937 |
|
|
// HJL01 / BL0937 |
|
|
#ifndef HLW8012_SUPPORT |
|
|
#ifndef HLW8012_SUPPORT |
|
|
#define HLW8012_SUPPORT 1 |
|
|
|
|
|
|
|
|
#define HLW8012_SUPPORT 1 |
|
|
#endif |
|
|
#endif |
|
|
#define HLW8012_SEL_PIN 12 |
|
|
|
|
|
#define HLW8012_CF1_PIN 14 |
|
|
|
|
|
#define HLW8012_CF_PIN 5 |
|
|
|
|
|
|
|
|
#define HLW8012_SEL_PIN 12 |
|
|
|
|
|
#define HLW8012_CF1_PIN 14 |
|
|
|
|
|
#define HLW8012_CF_PIN 5 |
|
|
|
|
|
|
|
|
#define HLW8012_SEL_CURRENT LOW |
|
|
#define HLW8012_SEL_CURRENT LOW |
|
|
#define HLW8012_CURRENT_RATIO 25740 |
|
|
#define HLW8012_CURRENT_RATIO 25740 |
|
@ -2312,6 +2313,50 @@ |
|
|
#define HLW8012_POWER_RATIO 3414290 |
|
|
#define HLW8012_POWER_RATIO 3414290 |
|
|
#define HLW8012_INTERRUPT_ON FALLING |
|
|
#define HLW8012_INTERRUPT_ON FALLING |
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
// VANZAVANZU Smart Outlet Socket (based on BL0937 or HJL-01) |
|
|
|
|
|
// https://www.amazon.com/Smart-Plug-Wifi-Mini-VANZAVANZU/dp/B078PHD6S5 |
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(VANZAVANZU_SMART_WIFI_PLUG_MINI) |
|
|
|
|
|
|
|
|
|
|
|
// Info |
|
|
|
|
|
#define MANUFACTURER "VANZAVANZU" |
|
|
|
|
|
#define DEVICE "SMART_WIFI_PLUG_MINI" |
|
|
|
|
|
|
|
|
|
|
|
// Buttons |
|
|
|
|
|
#define BUTTON1_PIN 13 |
|
|
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
|
|
|
|
// Relays |
|
|
|
|
|
#define RELAY1_PIN 15 |
|
|
|
|
|
#define RELAY1_TYPE RELAY_TYPE_NORMAL |
|
|
|
|
|
|
|
|
|
|
|
// LEDs |
|
|
|
|
|
#define LED1_PIN 2 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_PIN 0 |
|
|
|
|
|
#define LED2_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_MODE LED_MODE_FINDME |
|
|
|
|
|
#define LED2_RELAY 1 |
|
|
|
|
|
|
|
|
|
|
|
// Disable UART noise |
|
|
|
|
|
#define DEBUG_SERIAL_SUPPORT 0 |
|
|
|
|
|
|
|
|
|
|
|
// HJL01 / BL0937 |
|
|
|
|
|
#ifndef HLW8012_SUPPORT |
|
|
|
|
|
#define HLW8012_SUPPORT 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#define HLW8012_SEL_PIN 3 |
|
|
|
|
|
#define HLW8012_CF1_PIN 14 |
|
|
|
|
|
#define HLW8012_CF_PIN 5 |
|
|
|
|
|
|
|
|
|
|
|
#define HLW8012_SEL_CURRENT LOW |
|
|
|
|
|
#define HLW8012_CURRENT_RATIO 25740 |
|
|
|
|
|
#define HLW8012_VOLTAGE_RATIO 313400 |
|
|
|
|
|
#define HLW8012_POWER_RATIO 3414290 |
|
|
|
|
|
#define HLW8012_INTERRUPT_ON FALLING |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// TEST boards (do not use!!) |
|
|
// TEST boards (do not use!!) |
|
|