7static const char *
const TAG =
"daikin_brc.climate";
15 ClimateIR::control(
call);
20 0xDA, 0x17, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
21 0x00, 0x00, 0x00, 0x00, 0x20, 0x00};
41 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
43 bool bit = remote_state[i] & mask;
53 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
55 bool bit = remote_state[i] & mask;
67 uint8_t alt_mode = 0x00;
109 return operating_mode;
142 switch (this->
mode) {
154 temperature = (uint8_t) roundf(
169 ESP_LOGCONFIG(TAG,
"Bad CheckSum %x",
checksum);
173 uint8_t
mode = frame[7];
175 switch (
mode & 0xF0) {
239 for (int8_t bit = 0; bit < 8; bit++) {
246 state_frame[pos] = byte;
251 }
else if (pos == 1) {
255 }
else if (pos == 2) {
259 }
else if (pos == 3) {
263 }
else if (pos == 4) {
This class is used to encode all control actions on a climate device.
const optional< ClimateMode > & get_mode() const
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.
ClimateSwingMode swing_mode
The active swing mode 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
void control(const climate::ClimateCall &call) override
uint8_t operation_mode_()
bool on_receive(remote_base::RemoteReceiveData data) override
uint8_t fan_speed_swing_()
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_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_BOTH
The fan mode is set to Both.
@ 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_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.
const uint8_t DAIKIN_BRC_FAN_2
const uint8_t DAIKIN_BRC_MODE_FAN
const uint8_t DAIKIN_BRC_MODE_OFF
const uint32_t DAIKIN_BRC_ONE_SPACE
const uint8_t DAIKIN_BRC_IR_SWING_OFF
const uint8_t DAIKIN_BRC_TEMP_MIN_F
const uint32_t DAIKIN_BRC_HEADER_MARK
const uint8_t DAIKIN_BRC_FAN_1
const uint8_t DAIKIN_BRC_MODE_DRY
const uint8_t DAIKIN_BRC_TEMP_MAX_F
const uint8_t DAIKIN_BRC_IR_DRY_FAN_TEMP_C
const uint8_t DAIKIN_BRC_MODE_COOL
const uint8_t DAIKIN_BRC_TRANSMIT_FRAME_SIZE
const uint8_t DAIKIN_BRC_IR_MODE_BUTTON
const uint8_t DAIKIN_BRC_FAN_3
const uint32_t DAIKIN_BRC_HEADER_SPACE
const uint8_t DAIKIN_BRC_IR_SWING_ON
const uint8_t DAIKIN_BRC_PREAMBLE_SIZE
const uint8_t DAIKIN_BRC_MODE_AUTO
const float DAIKIN_BRC_TEMP_MIN_C
const uint32_t DAIKIN_BRC_BIT_MARK
const float DAIKIN_BRC_TEMP_MAX_C
const uint8_t DAIKIN_BRC_STATE_FRAME_SIZE
const uint32_t DAIKIN_BRC_MESSAGE_SPACE
const uint8_t DAIKIN_BRC_MODE_ON
const uint8_t DAIKIN_BRC_MODE_HEAT
const uint32_t DAIKIN_BRC_ZERO_SPACE
const uint32_t DAIKIN_BRC_IR_FREQUENCY
const uint8_t DAIKIN_BRC_IR_DRY_FAN_TEMP_F
Providing packet encoding functions for exchanging data with a remote host.
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)