mirror of
https://github.com/esphome/esphome.git
synced 2025-04-13 22:30:31 +01:00
Add support for ZHLT01 heatpump IR protocol (#3655)
Co-authored-by: Chris Feenstra <chris@cfeenstra.nl>
This commit is contained in:
parent
03fca8d91e
commit
fe38b36c26
@ -58,6 +58,7 @@ PROTOCOLS = {
|
|||||||
"sharp": Protocol.PROTOCOL_SHARP,
|
"sharp": Protocol.PROTOCOL_SHARP,
|
||||||
"toshiba_daiseikai": Protocol.PROTOCOL_TOSHIBA_DAISEIKAI,
|
"toshiba_daiseikai": Protocol.PROTOCOL_TOSHIBA_DAISEIKAI,
|
||||||
"toshiba": Protocol.PROTOCOL_TOSHIBA,
|
"toshiba": Protocol.PROTOCOL_TOSHIBA,
|
||||||
|
"zhlt01": Protocol.PROTOCOL_ZHLT01,
|
||||||
}
|
}
|
||||||
|
|
||||||
CONF_HORIZONTAL_DEFAULT = "horizontal_default"
|
CONF_HORIZONTAL_DEFAULT = "horizontal_default"
|
||||||
|
@ -53,6 +53,7 @@ const std::map<Protocol, std::function<HeatpumpIR *()>> PROTOCOL_CONSTRUCTOR_MAP
|
|||||||
{PROTOCOL_SHARP, []() { return new SharpHeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_SHARP, []() { return new SharpHeatpumpIR(); }}, // NOLINT
|
||||||
{PROTOCOL_TOSHIBA_DAISEIKAI, []() { return new ToshibaDaiseikaiHeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_TOSHIBA_DAISEIKAI, []() { return new ToshibaDaiseikaiHeatpumpIR(); }}, // NOLINT
|
||||||
{PROTOCOL_TOSHIBA, []() { return new ToshibaHeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_TOSHIBA, []() { return new ToshibaHeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_ZHLT01, []() { return new ZHLT01HeatpumpIR(); }}, // NOLINT
|
||||||
};
|
};
|
||||||
|
|
||||||
void HeatpumpIRClimate::setup() {
|
void HeatpumpIRClimate::setup() {
|
||||||
|
@ -53,6 +53,7 @@ enum Protocol {
|
|||||||
PROTOCOL_SHARP,
|
PROTOCOL_SHARP,
|
||||||
PROTOCOL_TOSHIBA_DAISEIKAI,
|
PROTOCOL_TOSHIBA_DAISEIKAI,
|
||||||
PROTOCOL_TOSHIBA,
|
PROTOCOL_TOSHIBA,
|
||||||
|
PROTOCOL_ZHLT01,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Simple enum to represent horizontal directios
|
// Simple enum to represent horizontal directios
|
||||||
|
Loading…
x
Reference in New Issue
Block a user