ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
whirlpool.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace esphome::whirlpool {
6
12
13// Temperature
18
20 public:
22
23 void setup() override {
25
27 }
28
30 void control(const climate::ClimateCall &call) override {
31 send_swing_cmd_ = call.get_swing_mode().has_value();
33 }
34
35 void set_model(Model model) {
36 this->model_ = model;
39 }
40
41 // used to track when to send the power toggle command
43
44 protected:
46 void transmit_state() override;
51
52 bool send_swing_cmd_{false};
54
61};
62
63} // namespace esphome::whirlpool
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:30
uint32_t last_transmit_time_
Set the time of the last transmission.
Definition whirlpool.h:50
void transmit_state() override
Transmit via IR the state of this climate controller.
Definition whirlpool.cpp:41
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:17
const float WHIRLPOOL_DG11J1_3A_TEMP_MAX
Definition whirlpool.h:14
const float WHIRLPOOL_DG11J1_91_TEMP_MAX
Definition whirlpool.h:16
Model
Simple enum to represent models.
Definition whirlpool.h:8
@ MODEL_DG11J1_91
Temperature range is from 18 to 32.
Definition whirlpool.h:10
const float WHIRLPOOL_DG11J1_3A_TEMP_MIN
Definition whirlpool.h:15
static void uint32_t