ESPHome  2024.10.2
whirlpool.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace esphome {
6 namespace whirlpool {
7 
9 enum Model {
12 };
13 
14 // Temperature
15 const float WHIRLPOOL_DG11J1_3A_TEMP_MAX = 32.0;
16 const float WHIRLPOOL_DG11J1_3A_TEMP_MIN = 18.0;
17 const float WHIRLPOOL_DG11J1_91_TEMP_MAX = 30.0;
18 const float WHIRLPOOL_DG11J1_91_TEMP_MIN = 16.0;
19 
21  public:
23  : climate_ir::ClimateIR(temperature_min_(), temperature_max_(), 1.0f, true, true,
27 
28  void setup() override {
30 
32  }
33 
35  void control(const climate::ClimateCall &call) override {
38  }
39 
40  void set_model(Model model) { this->model_ = model; }
41 
42  // used to track when to send the power toggle command
44 
45  protected:
47  void transmit_state() override;
49  bool on_receive(remote_base::RemoteReceiveData data) override;
52 
53  bool send_swing_cmd_{false};
55 
56  float temperature_min_() {
58  }
59  float temperature_max_() {
61  }
62 };
63 
64 } // namespace whirlpool
65 } // namespace esphome
This class is used to encode all control actions on a climate device.
Definition: climate.h:33
The fan mode is set to Low.
Definition: climate_mode.h:54
ClimateMode mode
The active mode of the climate device.
Definition: climate.h:173
void transmit_state() override
Transmit via IR the state of this climate controller.
Definition: whirlpool.cpp:35
bool has_value() const
Definition: optional.h:87
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition: climate_ir.cpp:61
Model
Simple enum to represent models.
Definition: whirlpool.h:9
int32_t last_transmit_time_
Set the time of the last transmission.
Definition: whirlpool.h:51
Temperature range is from 18 to 32.
Definition: whirlpool.h:11
The fan mode is set to Auto.
Definition: climate_mode.h:52
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, std::set< climate::ClimateFanMode > fan_modes={}, std::set< climate::ClimateSwingMode > swing_modes={}, std::set< climate::ClimatePreset > presets={})
Definition: climate_ir.h:26
The fan mode is set to Vertical.
Definition: climate_mode.h:76
The fan mode is set to High.
Definition: climate_mode.h:58
The swing mode is set to Off.
Definition: climate_mode.h:72
The climate device is off.
Definition: climate_mode.h:12
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition: whirlpool.h:35
const float WHIRLPOOL_DG11J1_91_TEMP_MAX
Definition: whirlpool.h:17
const float WHIRLPOOL_DG11J1_3A_TEMP_MIN
Definition: whirlpool.h:16
const float WHIRLPOOL_DG11J1_3A_TEMP_MAX
Definition: whirlpool.h:15
const optional< ClimateSwingMode > & get_swing_mode() const
Definition: climate.cpp:282
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
The fan mode is set to Medium.
Definition: climate_mode.h:56
bool on_receive(remote_base::RemoteReceiveData data) override
Handle received IR Buffer.
Definition: whirlpool.cpp:152
const float WHIRLPOOL_DG11J1_91_TEMP_MIN
Definition: whirlpool.h:18