Skip to content

Commit

Permalink
Removing not working options for swing modes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Dudnytskyi committed Apr 25, 2024
1 parent 4d2f20f commit b1a9713
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
7 changes: 2 additions & 5 deletions components/haier/hon_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,18 @@ namespace hon_protocol {
enum class VerticalSwingMode : uint8_t {
HEALTH_UP = 0x01,
MAX_UP = 0x02,
MAX_UP_2 = 0x00,
HEALTH_DOWN = 0x03,
UP = 0x04,
CENTER = 0x06,
DOWN = 0x0A,
MAX_DOWN = 0x08,
DOWN = 0x08,
MAX_DOWN = 0x0A,
AUTO = 0x0C,
// Auto for special modes
AUTO_SPECIAL = 0x0E,
};

enum class HorizontalSwingMode : uint8_t {
CENTER = 0x00,
TEST_01 = 0x01,
TEST_02 = 0x02,
MAX_LEFT = 0x03,
LEFT = 0x04,
RIGHT = 0x05,
Expand Down
10 changes: 0 additions & 10 deletions configs/select/airflow_horizontal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ select:
- Right
- Max Right
- Auto
- Test 01
- Test 02
lambda: >-
switch (id(${device_id}).get_horizontal_airflow().value_or(esphome::haier::hon_protocol::HorizontalSwingMode::CENTER))
{
Expand All @@ -30,10 +28,6 @@ select:
return std::string("Max Right");
case esphome::haier::hon_protocol::HorizontalSwingMode::AUTO:
return std::string("Auto");
case esphome::haier::hon_protocol::HorizontalSwingMode::TEST_01:
return std::string("Test 01");
case esphome::haier::hon_protocol::HorizontalSwingMode::TEST_02:
return std::string("Test 02");
}
set_action:
- climate.haier.set_horizontal_airflow:
Expand All @@ -49,9 +43,5 @@ select:
return esphome::haier::hon_protocol::HorizontalSwingMode::MAX_RIGHT;
else if (x == "Auto")
return esphome::haier::hon_protocol::HorizontalSwingMode::AUTO;
else if (x == "Test 01")
return esphome::haier::hon_protocol::HorizontalSwingMode::TEST_01;
else if (x == "Test 02")
return esphome::haier::hon_protocol::HorizontalSwingMode::TEST_02;
else
return esphome::haier::hon_protocol::HorizontalSwingMode::CENTER;
1 change: 0 additions & 1 deletion configs/select/airflow_vertical.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ select:
case esphome::haier::hon_protocol::VerticalSwingMode::HEALTH_UP:
return std::string("Health Up");
case esphome::haier::hon_protocol::VerticalSwingMode::MAX_UP:
case esphome::haier::hon_protocol::VerticalSwingMode::MAX_UP_2:
return std::string("Max Up");
case esphome::haier::hon_protocol::VerticalSwingMode::UP:
return std::string("Up");
Expand Down

0 comments on commit b1a9713

Please sign in to comment.