diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 94341059c..46e88d234 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -75,6 +75,7 @@ template_t g_templates [] = { { Setup_Device_Deta_Smart_Double_Power_Point_6922HA_Series2, "BK7231T DETA SMART Double Power Point 6922HA-Series 2"}, { Setup_Device_ArlecRGBCCTDownlight, "Arlec RGB+CCT LED Downlight ALD092RHA"}, { Setup_Device_CasaLifeCCTDownlight, "CasaLife CCT LED Downlight SMART-AL2017-TGTS"}, + { Setup_Device_Enbrighten_WFD4103, "Enbrighten WFD4103 WiFi Switch BK7231T WB2S"} }; int g_total_templates = sizeof(g_templates)/sizeof(g_templates[0]); diff --git a/src/new_builtin_devices.c b/src/new_builtin_devices.c index 9e72bdf35..2921b11f2 100644 --- a/src/new_builtin_devices.c +++ b/src/new_builtin_devices.c @@ -772,3 +772,20 @@ void Setup_Device_Deta_Smart_Double_Power_Point_6922HA_Series2() { CFG_Save_SetupTimer(); } + +//https://enbrightenme.com/enbrighten-indoor-plug-in-mini-wifi-smart-switch-2-pack-white +//https://www.elektroda.com/rtvforum/viewtopic.php?p=20133554#20133554 +void Setup_Device_Enbrighten_WFD4103(){ + CFG_ClearPins(); + + PIN_SetPinRoleForPinIndex(7, IOR_LED_n); + PIN_SetPinChannelForPinIndex(7, 1); + + PIN_SetPinRoleForPinIndex(24, IOR_Relay); + PIN_SetPinChannelForPinIndex(24, 1); + + PIN_SetPinRoleForPinIndex(26, IOR_Button); + PIN_SetPinChannelForPinIndex(26, 1); + + CFG_Save_SetupTimer(); +} \ No newline at end of file diff --git a/src/new_pins.h b/src/new_pins.h index f85fedd34..6a0fb0fb6 100644 --- a/src/new_pins.h +++ b/src/new_pins.h @@ -238,6 +238,7 @@ void Setup_Device_BK7231T_Gosund_Switch_SW5_A_V2_1(); void Setup_Device_13A_Socket_CB2S(); void Setup_Device_Deta_Smart_Double_Power_Point_6922HA_Series2(); void Setup_Device_BK7231N_KS_602_TOUCH(); +void Setup_Device_Enbrighten_WFD4103(); #endif