ESPHome  2021.11.3
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;
50 
51  bool send_swing_cmd_{false};
53 
54  float temperature_min_() {
56  }
57  float temperature_max_() {
59  }
60 };
61 
62 } // namespace whirlpool
63 } // 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:175
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:59
Model
Simple enum to represent models.
Definition: whirlpool.h:9
Temperature range is from 18 to 32.
Definition: whirlpool.h:11
The fan mode is set to Auto.
Definition: climate_mode.h:52
The fan mode is set to Vertical.
Definition: climate_mode.h:74
The fan mode is set to High.
Definition: climate_mode.h:58
The swing mode is set to Off.
Definition: climate_mode.h:70
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:272
Library based on https://github.com/miguelbalboa/rfid and adapted to ESPHome by . ...
Definition: a4988.cpp:4
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:151
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={})
Definition: climate_ir.h:23
const float WHIRLPOOL_DG11J1_91_TEMP_MIN
Definition: whirlpool.h:18