7 static const char *
const TAG =
"delonghi.climate";
17 remote_state[DELONGHI_STATE_FRAME_SIZE - 1] += remote_state[i];
26 for (
unsigned char b : remote_state) {
27 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
62 return operating_mode;
99 if (temperature > 0x0F) {
108 checksum += frame[i];
113 uint8_t
mode = frame[2] & 0x0F;
115 switch (mode & 0x0E) {
167 for (int8_t bit = 0; bit < 8; bit++) {
174 state_frame[pos] = byte;
The fan mode is set to Low.
value_type const & value() const
uint8_t operation_mode_()
float target_temperature
The target temperature of the climate device.
void set_carrier_frequency(uint32_t carrier_frequency)
const uint32_t DELONGHI_IR_FREQUENCY
The climate device is set to heat to reach the target temperature.
bool parse_state_frame_(const uint8_t frame[])
ClimateMode mode
The active mode of the climate device.
const uint32_t DELONGHI_ONE_SPACE
The climate device is set to dry/humidity mode.
const uint8_t DELONGHI_ADDRESS
const uint8_t DELONGHI_FAN_MEDIUM
const uint32_t DELONGHI_BIT_MARK
const uint8_t DELONGHI_TEMP_OFFSET_HEAT
const uint32_t DELONGHI_HEADER_MARK
The climate device is set to cool to reach the target temperature.
The fan mode is set to Auto.
const uint8_t DELONGHI_FAN_LOW
const uint8_t DELONGHI_FAN_HIGH
const uint8_t DELONGHI_TEMP_OFFSET_COOL
RemoteTransmitterBase * transmitter_
const uint8_t DELONGHI_MODE_DRY
const uint8_t DELONGHI_MODE_OFF
const uint32_t DELONGHI_ZERO_SPACE
const uint32_t DELONGHI_HEADER_SPACE
The climate device is set to heat/cool to reach the target temperature.
bool on_receive(remote_base::RemoteReceiveData data) override
void publish_state()
Publish the state of the climate device, to be called from integrations.
const uint8_t DELONGHI_MODE_ON
The fan mode is set to High.
RemoteTransmitData * get_data()
The climate device is off.
optional< ClimateFanMode > fan_mode
The active fan mode of the climate device.
const uint8_t DELONGHI_MODE_HEAT
const uint8_t DELONGHI_MODE_COOL
const uint8_t DELONGHI_FAN_AUTO
Implementation of SPI Controller mode.
const uint8_t DELONGHI_MODE_AUTO
The fan mode is set to Medium.
const uint8_t DELONGHI_MODE_FAN
void transmit_state() override
const uint8_t DELONGHI_STATE_FRAME_SIZE
bool expect_item(uint32_t mark, uint32_t space)
The climate device only has the fan enabled, no heating or cooling is taking place.