21 auto *data = transmit.get_data();
56 return operating_mode;
93 if (temperature > 0x0F) {
104 uint8_t
mode = frame[2] & 0x0F;
106 switch (
mode & 0x0E) {
ClimateMode mode
The active mode of the climate device.
optional< ClimateFanMode > fan_mode
The active fan mode of the climate device.
float target_temperature
The target temperature of the climate device.
void publish_state()
Publish the state of the climate device, to be called from integrations.
bool parse_state_frame_(const uint8_t frame[])
void transmit_state() override
bool on_receive(remote_base::RemoteReceiveData data) override
uint8_t operation_mode_()
RemoteTransmitterBase * transmitter_
@ CLIMATE_MODE_DRY
The climate device is set to dry/humidity mode.
@ CLIMATE_MODE_FAN_ONLY
The climate device only has the fan enabled, no heating or cooling is taking place.
@ CLIMATE_MODE_HEAT
The climate device is set to heat to reach the target temperature.
@ CLIMATE_MODE_COOL
The climate device is set to cool to reach the target temperature.
@ CLIMATE_MODE_HEAT_COOL
The climate device is set to heat/cool to reach the target temperature.
@ CLIMATE_MODE_OFF
The climate device is off.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_ON
The fan mode is set to On.
@ 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 uint32_t DELONGHI_HEADER_SPACE
const uint8_t DELONGHI_FAN_HIGH
const uint32_t DELONGHI_BIT_MARK
const uint8_t DELONGHI_FAN_AUTO
const uint8_t DELONGHI_MODE_ON
const uint8_t DELONGHI_TEMP_OFFSET_COOL
const uint8_t DELONGHI_MODE_DRY
const uint8_t DELONGHI_MODE_COOL
const uint8_t DELONGHI_FAN_MEDIUM
ESPHOME_LOG_TAG(TAG, "delonghi.climate")
const uint8_t DELONGHI_TEMP_OFFSET_HEAT
const uint32_t DELONGHI_IR_FREQUENCY
const uint8_t DELONGHI_MODE_FAN
const uint8_t DELONGHI_FAN_LOW
const uint8_t DELONGHI_STATE_FRAME_SIZE
const uint8_t DELONGHI_ADDRESS
const uint32_t DELONGHI_HEADER_MARK
const uint8_t DELONGHI_MODE_AUTO
const uint8_t DELONGHI_MODE_HEAT
const uint8_t DELONGHI_MODE_OFF
constexpr uint8_t sum_bytes(const uint8_t *data, size_t len, uint8_t sum=0)
Add up the bytes of data with size len, truncated to 8 bits: the checksum many serial and IR protocol...