mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-23 06:08:30 +02:00
578e5a0d7a
* add ClimateIR * update climate ir * update class comment * lint * moved to climate_ir * fix include path * use climateir * updates * update include path * lint * fixed variable assigned to itself
25 lines
611 B
C++
25 lines
611 B
C++
#pragma once
|
|
|
|
#include "esphome/components/climate_ir/climate_ir.h"
|
|
|
|
namespace esphome {
|
|
namespace coolix {
|
|
|
|
// Temperature
|
|
const uint8_t COOLIX_TEMP_MIN = 17; // Celsius
|
|
const uint8_t COOLIX_TEMP_MAX = 30; // Celsius
|
|
|
|
class CoolixClimate : public climate::ClimateIR {
|
|
public:
|
|
CoolixClimate() : climate::ClimateIR(COOLIX_TEMP_MIN, COOLIX_TEMP_MAX) {}
|
|
|
|
protected:
|
|
/// Transmit via IR the state of this climate controller.
|
|
void transmit_state() override;
|
|
/// Handle received IR Buffer
|
|
bool on_receive(remote_base::RemoteReceiveData data) override;
|
|
};
|
|
|
|
} // namespace coolix
|
|
} // namespace esphome
|