1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

hormann_ecostar add manually support and custom button

This commit is contained in:
MX
2024-07-08 09:40:09 +03:00
parent 4b7875376b
commit 54192afe56
3 changed files with 14 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ typedef enum {
SetTypeNormstahl_433_92, SetTypeNormstahl_433_92,
SetTypeJCM_433_92, SetTypeJCM_433_92,
SetTypeNovoferm_433_92, SetTypeNovoferm_433_92,
SetTypeHormannEcoStar_433_92,
SetTypeFAACRCXT_433_92, SetTypeFAACRCXT_433_92,
SetTypeFAACRCXT_868, SetTypeFAACRCXT_868,
SetTypeGeniusBravo433, SetTypeGeniusBravo433,

View File

@@ -43,6 +43,7 @@ static const char* submenu_names[SetTypeMAX] = {
[SetTypeNormstahl_433_92] = "KL: Normstahl 433MHz", [SetTypeNormstahl_433_92] = "KL: Normstahl 433MHz",
[SetTypeJCM_433_92] = "KL: JCM Tech 433MHz", [SetTypeJCM_433_92] = "KL: JCM Tech 433MHz",
[SetTypeNovoferm_433_92] = "KL: Novoferm 433MHz", [SetTypeNovoferm_433_92] = "KL: Novoferm 433MHz",
[SetTypeHormannEcoStar_433_92] = "KL: Hor. EcoStar 433MHz",
[SetTypeFAACRCXT_433_92] = "KL: FAAC RC,XT 433MHz", [SetTypeFAACRCXT_433_92] = "KL: FAAC RC,XT 433MHz",
[SetTypeFAACRCXT_868] = "KL: FAAC RC,XT 868MHz", [SetTypeFAACRCXT_868] = "KL: FAAC RC,XT 868MHz",
[SetTypeGeniusBravo433] = "KL: Genius Bravo 433MHz", [SetTypeGeniusBravo433] = "KL: Genius Bravo 433MHz",
@@ -648,6 +649,16 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
.keeloq.cnt = 0x03, .keeloq.cnt = 0x03,
.keeloq.manuf = "Novoferm"}; .keeloq.manuf = "Novoferm"};
break; break;
case SetTypeHormannEcoStar_433_92:
gen_info = (GenInfo){
.type = GenKeeloq,
.mod = "AM650",
.freq = 433920000,
.keeloq.serial = (key & 0x000FFFFF) | 0x02200000,
.keeloq.btn = 0x04,
.keeloq.cnt = 0x03,
.keeloq.manuf = "EcoStar"};
break;
case SetTypeFAACRCXT_433_92: case SetTypeFAACRCXT_433_92:
gen_info = (GenInfo){ gen_info = (GenInfo){
.type = GenKeeloq, .type = GenKeeloq,

View File

@@ -434,6 +434,8 @@ static bool
klq_last_custom_btn = 0x9; klq_last_custom_btn = 0x9;
} else if((strcmp(instance->manufacture_name, "NICE_Smilo") == 0)) { } else if((strcmp(instance->manufacture_name, "NICE_Smilo") == 0)) {
klq_last_custom_btn = 0xB; klq_last_custom_btn = 0xB;
} else if((strcmp(instance->manufacture_name, "EcoStar") == 0)) {
klq_last_custom_btn = 0x6;
} }
btn = subghz_protocol_keeloq_get_btn_code(klq_last_custom_btn); btn = subghz_protocol_keeloq_get_btn_code(klq_last_custom_btn);