7static const char *
const TAG =
"delonghi.climate";
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) {
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;
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_()
value_type const & value() const
bool expect_item(uint32_t mark, uint32_t space)
void set_carrier_frequency(uint32_t carrier_frequency)
RemoteTransmitterBase * transmitter_
RemoteTransmitData * get_data()
@ 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_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 uint32_t DELONGHI_ONE_SPACE
const uint8_t DELONGHI_TEMP_OFFSET_COOL
const uint32_t DELONGHI_ZERO_SPACE
const uint8_t DELONGHI_MODE_DRY
const uint8_t DELONGHI_MODE_COOL
const uint8_t DELONGHI_FAN_MEDIUM
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
Providing packet encoding functions for exchanging data with a remote host.