19static constexpr uint8_t HAIER_TEMP_MIN = 16;
20static constexpr uint8_t HAIER_TEMP_MAX = 30;
23static constexpr uint8_t HAIER_SWING_V_OFF = 0x0;
24static constexpr uint8_t HAIER_SWING_V_2TOP = 0x1;
25static constexpr uint8_t HAIER_SWING_V_1TOP = 0x2;
26static constexpr uint8_t HAIER_SWING_V_2BOT = 0x3;
27static constexpr uint8_t HAIER_SWING_V_1BOT = 0xA;
28static constexpr uint8_t HAIER_SWING_V_AUTO = 0xC;
31static constexpr uint8_t HAIER_SWING_H_MIDDLE = 0x0;
32static constexpr uint8_t HAIER_SWING_H_LEFT = 0x3;
33static constexpr uint8_t HAIER_SWING_H_MIDDLE_LEFT = 0x4;
34static constexpr uint8_t HAIER_SWING_H_MIDDLE_RIGHT = 0x5;
35static constexpr uint8_t HAIER_SWING_H_RIGHT = 0x6;
36static constexpr uint8_t HAIER_SWING_H_AUTO = 0x7;
39static constexpr uint8_t HAIER_TIMER_MODE_DISABLED = 0x0;
40static constexpr uint8_t HAIER_TIMER_MODE_OFF = 0x1;
41static constexpr uint8_t HAIER_TIMER_MODE_ON = 0x2;
42static constexpr uint8_t HAIER_TIMER_MODE_ON_OFF = 0x4;
43static constexpr uint8_t HAIER_TIMER_MODE_OFF_ON = 0x5;
49static constexpr uint8_t HAIER_FAN_HIGH = 0x1;
50static constexpr uint8_t HAIER_FAN_MED = 0x2;
51static constexpr uint8_t HAIER_FAN_LOW = 0x3;
52static constexpr uint8_t HAIER_FAN_AUTO = 0x5;
60static constexpr uint8_t HAIER_MODE_AUTO = 0x0;
61static constexpr uint8_t HAIER_MODE_COOL = 0x1;
62static constexpr uint8_t HAIER_MODE_DRY = 0x2;
63static constexpr uint8_t HAIER_MODE_HEAT = 0x4;
64static constexpr uint8_t HAIER_MODE_FAN = 0x6;
72static constexpr uint8_t HAIER_BUTTON_TEMP_UP = 0x00;
73static constexpr uint8_t HAIER_BUTTON_TEMP_DOWN = 0x01;
74static constexpr uint8_t HAIER_BUTTON_SWING_V = 0x02;
75static constexpr uint8_t HAIER_BUTTON_SWING_H = 0x03;
76static constexpr uint8_t HAIER_BUTTON_FAN_SPEED = 0x04;
77static constexpr uint8_t HAIER_BUTTON_POWER = 0x05;
78static constexpr uint8_t HAIER_BUTTON_MODE = 0x06;
79static constexpr uint8_t HAIER_BUTTON_HEALTH = 0x07;
80static constexpr uint8_t HAIER_BUTTON_TURBO_QUIET = 0x08;
81static constexpr uint8_t HAIER_BUTTON_SLEEP = 0x0B;
82static constexpr uint8_t HAIER_BUTTON_TIMER = 0x10;
83static constexpr uint8_t HAIER_BUTTON_LIGHT = 0x15;
84static constexpr uint8_t HAIER_BUTTON_SELF_CLEAN = 0x19;
89 : climate_ir::
ClimateIR(HAIER_TEMP_MIN, HAIER_TEMP_MAX, 1.0f, true, true,
ClimateMode mode
The active mode of the climate device.
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, climate::ClimateFanModeMask fan_modes=climate::ClimateFanModeMask(), climate::ClimateSwingModeMask swing_modes=climate::ClimateSwingModeMask(), climate::ClimatePresetMask presets=climate::ClimatePresetMask())
void transmit_(uint8_t button)
void set_quiet_mode(bool quiet, bool transmit=true)
float get_temperature_(uint8_t temp)
climate::ClimateSwingMode get_swing_mode_(uint8_t swing_v, uint8_t swing_h)
bool on_haier_(const remote_base::HaierData &haier)
uint8_t operation_mode_()
void set_turbo_mode(bool turbo, bool transmit=true)
climate::ClimateFanMode get_fan_speed_(uint8_t fan)
climate::ClimateMode get_operation_mode_(uint8_t power, uint8_t mode)
void set_health_mode(bool health, bool transmit=true)
void transmit_state() override
uint8_t horizontal_swing_()
bool on_receive(remote_base::RemoteReceiveData data) override
uint8_t vertical_swing_()
ClimateSwingMode
Enum for all modes a climate swing can be in NOTE: If adding values, update ClimateSwingModeMask in c...
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_HORIZONTAL
The fan mode is set to Horizontal.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ CLIMATE_SWING_BOTH
The fan mode is set to Both.
ClimateMode
Enum for all modes a climate device can be in.
ClimateFanMode
NOTE: If adding values, update ClimateFanModeMask in climate_traits.h to use the new last value.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_AUTO
The fan mode is set to Auto.
@ CLIMATE_FAN_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.