diff --git a/components/samsung_ac/protocol.h b/components/samsung_ac/protocol.h index 10e928ee..a63d4bf1 100644 --- a/components/samsung_ac/protocol.h +++ b/components/samsung_ac/protocol.h @@ -71,7 +71,7 @@ namespace esphome virtual void set_target_temperature(const std::string address, float value) = 0; virtual void set_outdoor_temperature(const std::string address, float value) = 0; virtual void set_target_water_temperature(const std::string address, float value) = 0; - virtual void set_mode(const std::string address, Mode mode) = 0; + virtual void set_mode(const std::string address, Mode mode) = 0; virtual void set_fanmode(const std::string address, FanMode fanmode) = 0; virtual void set_altmode(const std::string address, AltMode altmode) = 0; virtual void set_swing_vertical(const std::string address, bool vertical) = 0; diff --git a/components/samsung_ac/protocol_nasa.cpp b/components/samsung_ac/protocol_nasa.cpp index 69913cd6..6dd9b8da 100644 --- a/components/samsung_ac/protocol_nasa.cpp +++ b/components/samsung_ac/protocol_nasa.cpp @@ -393,8 +393,8 @@ namespace esphome targettemp.value = request.target_temp.value() * 10.0; packet.messages.push_back(targettemp); } - - if (request.target_water_temp) + + if (request.target_water_temp) { MessageSet targetwatertemp(MessageNumber::VAR_in_temp_water_heater_target_f); targetwatertemp.value = request.target_water_temp.value() * 10.0; @@ -528,7 +528,7 @@ namespace esphome target->set_target_temperature(source, temp); return; } - case MessageNumber::VAR_in_temp_water_heater_target_f: // unit = 'Celsius' from XML + case MessageNumber::VAR_in_temp_water_heater_target_f: // unit = 'Celsius' from XML { double temp = (double)message.value / (double)10; ESP_LOGW(TAG, "s:%s d:%s VAR_in_temp_water_heater_target_f %f", source.c_str(), dest.c_str(), temp); diff --git a/components/samsung_ac/protocol_non_nasa.cpp b/components/samsung_ac/protocol_non_nasa.cpp index 80c93bfe..f1f1b03f 100644 --- a/components/samsung_ac/protocol_non_nasa.cpp +++ b/components/samsung_ac/protocol_non_nasa.cpp @@ -572,8 +572,8 @@ namespace esphome { last_command20s_[nonpacket_.src] = nonpacket_.command20; target->set_target_temperature(nonpacket_.src, nonpacket_.command20.target_temp); - // TODO - target->set_target_water_temperature(nonpacket_.src, false); + // TODO + target->set_target_water_temperature(nonpacket_.src, false); target->set_room_temperature(nonpacket_.src, nonpacket_.command20.room_temp); target->set_power(nonpacket_.src, nonpacket_.command20.power); target->set_mode(nonpacket_.src, nonnasa_mode_to_mode(nonpacket_.command20.mode));