mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-23 06:08:30 +02:00
6ae59bb43d
* new Fujitsu-General climate component * Refactor out climate_ir CC @glmnet Refactored out climate_ir python files too. Fixed invalid namespace name for climate_ir. * Add namespace lint check * Refactor Fujitsu Climate to climate_ir Co-authored-by: Otto Winter <otto@otto-winter.com>
25 lines
617 B
C++
25 lines
617 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_ir::ClimateIR {
|
|
public:
|
|
CoolixClimate() : climate_ir::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
|