diff --git a/components/samsung_ac/protocol.h b/components/samsung_ac/protocol.h index ffd433cc..c848cff9 100644 --- a/components/samsung_ac/protocol.h +++ b/components/samsung_ac/protocol.h @@ -83,6 +83,7 @@ namespace esphome optional power; optional mode; optional swing_mode; + optional alt_mode; }; class Protocol diff --git a/components/samsung_ac/protocol_nasa.cpp b/components/samsung_ac/protocol_nasa.cpp index 29aaa10f..c8333b93 100644 --- a/components/samsung_ac/protocol_nasa.cpp +++ b/components/samsung_ac/protocol_nasa.cpp @@ -459,6 +459,13 @@ namespace esphome packet.messages.push_back(power); } + if (request.alt_mode) + { + MessageSet altmode(MessageNumber::ENUM_in_alt_mode); + altmode.value = altmode_to_nasa_altmode(request.alt_mode.value()); + packet.messages.push_back(altmode); + } + if (request.swing_mode) { MessageSet hl_swing(MessageNumber::ENUM_in_louver_hl_swing);