21static constexpr uint8_t FLAG_DISPLAY = 0x80;
22static constexpr uint8_t FLAG_IONIZER = 0x40;
23static constexpr uint8_t FLAG_HEALTH = 0x10;
24static constexpr uint8_t FLAG_SLEEP = 0x02;
25static constexpr uint8_t FLAG_ECO = 0x01;
27static constexpr uint8_t MAX_FRAME_LEN = 64;
36 void setup()
override;
54 SUB_SENSOR_WITH_DEDUP(total_usage_time, uint16_t)
55 SUB_SENSOR_WITH_DEDUP(revision, uint16_t)
Climate on the Airton serial bus.
climate::ClimateTraits traits() override
void control(const climate::ClimateCall &call) override
uint16_t SUB_SENSOR_WITH_DEDUP(revision, uint16_t) protected void send_ab_()
void write_frame_(uint8_t *frame, size_t len)
std::array< uint8_t, MAX_FRAME_LEN > rx_buffer_
bool set_flag(uint8_t flag, bool state)
Set or clear one FLAG_* bit and send it to the unit; false until the unit has reported its state.
SUB_SWITCH(display) SUB_SWITCH(ionizer) SUB_SWITCH(sleep) SUB_SWITCH(eco) SUB_SWITCH(health) SUB_SENSOR_WITH_DEDUP(total_usage_time
void handle_byte_(uint8_t byte)
void handle_ac_(const uint8_t *data)
void dump_config() override
void handle_a3_(const uint8_t *data)
void handle_frame_(const uint8_t *data, size_t len)
This class is used to encode all control actions on a climate device.
ClimateDevice - This is the base class for all climate integrations.