mirror of
https://github.com/ElVit/esphome_components.git
synced 2026-10-09 15:55:34 +02:00
Update panasonic_heatpump_select.cpp
This commit is contained in:
@@ -58,38 +58,38 @@ void PanasonicHeatpumpSelect::publish_new_state(const std::vector<uint8_t>& data
|
||||
case SelectIds::CONF_SET9:
|
||||
new_state =
|
||||
PanasonicDecode::getTextState(PanasonicDecode::OperationMode, PanasonicDecode::getOperationMode(data[6]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET4:
|
||||
new_state = PanasonicDecode::getTextState(PanasonicDecode::PowerfulMode, PanasonicDecode::getBit6and7and8(data[7]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET3:
|
||||
new_state = PanasonicDecode::getTextState(PanasonicDecode::QuietMode, PanasonicDecode::getBit3and4and5(data[7]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET2:
|
||||
new_state = PanasonicDecode::getTextState(PanasonicDecode::HolidayState, PanasonicDecode::getBit3and4(data[5]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET17:
|
||||
new_state = PanasonicDecode::getTextState(PanasonicDecode::ZoneState, PanasonicDecode::getBit1and2(data[6]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET26:
|
||||
new_state =
|
||||
PanasonicDecode::getTextState(PanasonicDecode::ExtPadHeaterType, PanasonicDecode::getBit3and4(data[25]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
case SelectIds::CONF_SET35:
|
||||
new_state = PanasonicDecode::getTextState(PanasonicDecode::BivalentMode, PanasonicDecode::getBit5and6(data[26]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
if (this->has_state() && this->current_option() == new_state)
|
||||
return;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user