ESPHome 2025.5.0
Loading...
Searching...
No Matches
whirlpool.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace esphome {
6namespace whirlpool {
7
13
14// Temperature
19
21 public:
27
28 void setup() override {
30
32 }
33
35 void control(const climate::ClimateCall &call) override {
36 send_swing_cmd_ = call.get_swing_mode().has_value();
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;
52
53 bool send_swing_cmd_{false};
55
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
ClimateMode mode
The active mode of the climate device.
Definition climate.h:173
void control(const climate::ClimateCall &call) override
Override control to change settings 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, std::set< climate::ClimateFanMode > fan_modes={}, std::set< climate::ClimateSwingMode > swing_modes={}, std::set< climate::ClimatePreset > presets={})
Definition climate_ir.h:26
int32_t last_transmit_time_
Set the time of the last transmission.
Definition whirlpool.h:51
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition whirlpool.h:35
void transmit_state() override
Transmit via IR the state of this climate controller.
Definition whirlpool.cpp:35
bool on_receive(remote_base::RemoteReceiveData data) override
Handle received IR Buffer.
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ CLIMATE_MODE_OFF
The climate device is off.
@ 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.
const float WHIRLPOOL_DG11J1_91_TEMP_MIN
Definition whirlpool.h:18
const float WHIRLPOOL_DG11J1_3A_TEMP_MAX
Definition whirlpool.h:15
const float WHIRLPOOL_DG11J1_91_TEMP_MAX
Definition whirlpool.h:17
Model
Simple enum to represent models.
Definition whirlpool.h:9
@ MODEL_DG11J1_91
Temperature range is from 18 to 32.
Definition whirlpool.h:11
const float WHIRLPOOL_DG11J1_3A_TEMP_MIN
Definition whirlpool.h:16
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7