diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 2f867469..4d7b5635 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -3369,6 +3369,30 @@ #define HLW8012_POWER_RATIO 3414290 #define HLW8012_INTERRUPT_ON FALLING +// ---------------------------------------------------------------------------------------- +// Hama WiFi Steckdose (00176533) +// https://at.hama.com/00176533/hama-wifi-steckdose-3500w-16a +// ---------------------------------------------------------------------------------------- + +#elif defined(HAMA_WIFI_STECKDOSE_00176533) + + // Info + #define MANUFACTURER "HAMA" + #define DEVICE "WIFI_STECKDOSE_00176533" + + // Buttons + #define BUTTON1_PIN 13 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH + #define BUTTON1_RELAY 1 + + // Relays + #define RELAY1_PIN 12 + #define RELAY1_TYPE RELAY_TYPE_NORMAL + + // LEDs + #define LED1_PIN 4 + #define LED1_PIN_INVERSE 1 + // ----------------------------------------------------------------------------- // TEST boards (do not use!!) // ----------------------------------------------------------------------------- diff --git a/code/platformio.ini b/code/platformio.ini index 2ae0baa8..656e33f1 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -3178,3 +3178,27 @@ upload_port = ${common.upload_port} upload_flags = ${common.upload_flags} monitor_speed = ${common.monitor_speed} extra_scripts = ${common.extra_scripts} + +[env:hama-wifi-steckdose-00176533] +platform = ${common.platform} +framework = ${common.framework} +board = ${common.board_1m} +board_build.flash_mode = ${common.flash_mode} +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +build_flags = ${common.build_flags_1m0m} -DHAMA_WIFI_STECKDOSE_00176533 +monitor_speed = ${common.monitor_speed} +extra_scripts = ${common.extra_scripts} + +[env:hama-wifi-steckdose-00176533-ota] +platform = ${common.platform} +framework = ${common.framework} +board = ${common.board_1m} +board_build.flash_mode = ${common.flash_mode} +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +build_flags = ${common.build_flags_1m0m} -DHAMA_WIFI_STECKDOSE_00176533 +upload_port = ${common.upload_port} +upload_flags = ${common.upload_flags} +monitor_speed = ${common.monitor_speed} +extra_scripts = ${common.extra_scripts}