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:
@@ -96,6 +96,7 @@ typedef enum {
|
||||
SetTypeNormstahl_433_92,
|
||||
SetTypeJCM_433_92,
|
||||
SetTypeNovoferm_433_92,
|
||||
SetTypeHormannEcoStar_433_92,
|
||||
SetTypeFAACRCXT_433_92,
|
||||
SetTypeFAACRCXT_868,
|
||||
SetTypeGeniusBravo433,
|
||||
|
||||
@@ -43,6 +43,7 @@ static const char* submenu_names[SetTypeMAX] = {
|
||||
[SetTypeNormstahl_433_92] = "KL: Normstahl 433MHz",
|
||||
[SetTypeJCM_433_92] = "KL: JCM Tech 433MHz",
|
||||
[SetTypeNovoferm_433_92] = "KL: Novoferm 433MHz",
|
||||
[SetTypeHormannEcoStar_433_92] = "KL: Hor. EcoStar 433MHz",
|
||||
[SetTypeFAACRCXT_433_92] = "KL: FAAC RC,XT 433MHz",
|
||||
[SetTypeFAACRCXT_868] = "KL: FAAC RC,XT 868MHz",
|
||||
[SetTypeGeniusBravo433] = "KL: Genius Bravo 433MHz",
|
||||
@@ -648,6 +649,16 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
||||
.keeloq.cnt = 0x03,
|
||||
.keeloq.manuf = "Novoferm"};
|
||||
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:
|
||||
gen_info = (GenInfo){
|
||||
.type = GenKeeloq,
|
||||
|
||||
@@ -434,6 +434,8 @@ static bool
|
||||
klq_last_custom_btn = 0x9;
|
||||
} else if((strcmp(instance->manufacture_name, "NICE_Smilo") == 0)) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user