ESPHome 2026.5.0-dev
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:
23
24 void setup() override {
26
28 }
29
31 void control(const climate::ClimateCall &call) override {
32 send_swing_cmd_ = call.get_swing_mode().has_value();
34 }
35
36 void set_model(Model model) {
37 this->model_ = model;
40 }
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:34
ClimateMode mode
The active mode of the climate device.
Definition climate.h:293
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition whirlpool.h:31
uint32_t last_transmit_time_
Set the time of the last transmission.
Definition whirlpool.h:51
void transmit_state() override
Transmit via IR the state of this climate controller.
Definition whirlpool.cpp:42
bool on_receive(remote_base::RemoteReceiveData data) override
Handle received IR Buffer.
@ CLIMATE_MODE_OFF
The climate device is off.
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
static void uint32_t