6static const char *
const TAG =
"daikin.climate";
9 uint8_t remote_state[35] = {0x11, 0xDA, 0x27, 0x00, 0xC5, 0x00, 0x00, 0xD7, 0x11, 0xDA, 0x27, 0x00,
10 0x42, 0x49, 0x05, 0xA2, 0x11, 0xDA, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00,
11 0x00, 0x00, 0x00, 0x06, 0x60, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00};
16 remote_state[24] = fan_speed >> 8;
17 remote_state[25] = fan_speed & 0xff;
20 for (
int i = 16; i < 34; i++) {
21 remote_state[34] += remote_state[i];
25 auto *data = transmit.get_data();
30 for (
int i = 0; i < 8; i++) {
31 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
33 bool bit = remote_state[i] & mask;
42 for (
int i = 8; i < 16; i++) {
43 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
45 bool bit = remote_state[i] & mask;
54 for (
int i = 16; i < 35; i++) {
55 for (uint8_t mask = 1; mask > 0; mask <<= 1) {
57 bool bit = remote_state[i] & mask;
91 return operating_mode;
133 switch (this->
mode) {
140 return temperature << 1;
151 uint8_t
mode = frame[5];
156 switch (
mode & 0xF0) {
220 for (int8_t bit = 0; bit < 8; bit++) {
227 state_frame[
pos] = byte;
232 }
else if (
pos == 1) {
236 }
else if (
pos == 2) {
240 }
else if (
pos == 3) {
244 }
else if (
pos == 4) {
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[])
uint8_t temperature_() const
uint8_t operation_mode_() const
uint16_t fan_speed_() const
void transmit_state() override
bool on_receive(remote_base::RemoteReceiveData data) override
RemoteTransmitterBase * transmitter_
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_HORIZONTAL
The fan mode is set to Horizontal.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ 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_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_QUIET
The fan mode is set to Quiet.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.
const uint8_t DAIKIN_MODE_AUTO
const uint8_t DAIKIN_MODE_OFF
const uint8_t DAIKIN_STATE_FRAME_SIZE
const uint32_t DAIKIN_BIT_MARK
const uint8_t DAIKIN_TEMP_MIN
const uint32_t DAIKIN_IR_FREQUENCY
const uint8_t DAIKIN_FAN_4
const uint32_t DAIKIN_HEADER_MARK
const uint8_t DAIKIN_MODE_COOL
const uint8_t DAIKIN_FAN_5
const uint32_t DAIKIN_MESSAGE_SPACE
const uint32_t DAIKIN_HEADER_SPACE
const uint8_t DAIKIN_FAN_SILENT
const uint32_t DAIKIN_ZERO_SPACE
const uint8_t DAIKIN_MODE_DRY
const uint32_t DAIKIN_ONE_SPACE
const uint8_t DAIKIN_FAN_2
const uint8_t DAIKIN_MODE_ON
const uint8_t DAIKIN_FAN_1
const uint8_t DAIKIN_FAN_AUTO
const uint8_t DAIKIN_FAN_3
const uint8_t DAIKIN_TEMP_MAX
const uint8_t DAIKIN_MODE_HEAT
const uint8_t DAIKIN_MODE_FAN