diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 4fc54b05c..2ca10bbe1 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -69,6 +69,8 @@ template_t g_templates [] = { { Setup_Device_LSC_Smart_Connect_Plug_CB2S, "[BK7231N][CB2S] LSC Smart Connect Plug"}, { Setup_Device_BK7231T_Gosund_Switch_SW5_A_V2_1, "BK7231T Gosund Smart Switch SW5-A-V2.1"}, { Setup_Device_13A_Socket_CB2S, "BK7231N CB2S 13A Aliexpress socket"}, + { Setup_Device_Deta_Smart_Double_Power_Point_6922HA_Series2, "BK7231T DETA SMART Double Power Point 6922HA-Series 2"}, + }; 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 f27b2d376..e1d59c621 100644 --- a/src/new_builtin_devices.c +++ b/src/new_builtin_devices.c @@ -680,3 +680,26 @@ void Setup_Device_13A_Socket_CB2S(){ CFG_Save_SetupTimer(); } + +//Australian 2 Gang Wall Switch +//https://obrazki.elektroda.pl/2789424600_1656890909.jpg +void Setup_Device_Deta_Smart_Double_Power_Point_6922HA_Series2() { + CFG_ClearPins(); + + PIN_SetPinRoleForPinIndex(6, IOR_Relay); + PIN_SetPinChannelForPinIndex(6, 1); + + PIN_SetPinRoleForPinIndex(9, IOR_LED_WIFI_n); + PIN_SetPinChannelForPinIndex(9, 1); + + PIN_SetPinRoleForPinIndex(14, IOR_Button); + PIN_SetPinChannelForPinIndex(14, 1); + + PIN_SetPinRoleForPinIndex(24, IOR_Button); + PIN_SetPinChannelForPinIndex(24, 2); + + PIN_SetPinRoleForPinIndex(26, IOR_Relay); + PIN_SetPinChannelForPinIndex(26, 2); + + CFG_Save_SetupTimer(); +} diff --git a/src/new_pins.h b/src/new_pins.h index 30a9420d0..b42a42ec5 100644 --- a/src/new_pins.h +++ b/src/new_pins.h @@ -208,6 +208,7 @@ void Setup_Device_DS_102_2Gang_WB3S(); void Setup_Device_DS_102_3Gang_WB3S(); 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(); #endif