mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix Junkers roomsensor enum
This commit is contained in:
@@ -686,7 +686,7 @@ void Thermostat::process_JunkersSet(std::shared_ptr<const Telegram> telegram) {
|
|||||||
has_update(telegram, hc->control, 1); // remote: 0-off, 1-FB10, 2-FB100
|
has_update(telegram, hc->control, 1); // remote: 0-off, 1-FB10, 2-FB100
|
||||||
has_enumupdate(telegram, hc->program, 13, 1); // 1-6: 1 = A, 2 = B,...
|
has_enumupdate(telegram, hc->program, 13, 1); // 1-6: 1 = A, 2 = B,...
|
||||||
has_enumupdate(telegram, hc->mode, 14, 1); // 0 = nofrost, 1 = eco, 2 = heat, 3 = auto
|
has_enumupdate(telegram, hc->mode, 14, 1); // 0 = nofrost, 1 = eco, 2 = heat, 3 = auto
|
||||||
has_update(telegram, hc->roomsensor, 9); // 1-intern, 2-extern, 3-autoselect the lower value
|
has_enumupdate(telegram, hc->roomsensor, 9, 1); // 1-intern, 2-extern, 3-autoselect the lower value
|
||||||
}
|
}
|
||||||
|
|
||||||
// type 0x0179, ff
|
// type 0x0179, ff
|
||||||
@@ -1717,7 +1717,7 @@ bool Thermostat::set_roomsensor(const char * value, const int8_t id) {
|
|||||||
uint8_t ctrl = 0;
|
uint8_t ctrl = 0;
|
||||||
if (model() == EMS_DEVICE_FLAG_JUNKERS && !has_flags(EMS_DEVICE_FLAG_JUNKERS_OLD)) {
|
if (model() == EMS_DEVICE_FLAG_JUNKERS && !has_flags(EMS_DEVICE_FLAG_JUNKERS_OLD)) {
|
||||||
if (Helpers::value2enum(value, ctrl, FL_(enum_roomsensor))) {
|
if (Helpers::value2enum(value, ctrl, FL_(enum_roomsensor))) {
|
||||||
write_command(set_typeids[hc->hc()], 9, ctrl);
|
write_command(set_typeids[hc->hc()], 9, ctrl + 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user