2019-05-27 15:17:12 -03:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-18 04:22:55 -03:00
|
|
|
#include "esphome/components/climate_ir/climate_ir.h"
|
2019-05-27 15:17:12 -03:00
|
|
|
|
|
|
|
namespace esphome {
|
|
|
|
namespace tcl112 {
|
|
|
|
|
2019-10-18 04:22:55 -03:00
|
|
|
// Temperature
|
|
|
|
const float TCL112_TEMP_MAX = 31.0;
|
|
|
|
const float TCL112_TEMP_MIN = 16.0;
|
|
|
|
|
2019-10-25 12:32:31 +03:00
|
|
|
class Tcl112Climate : public climate_ir::ClimateIR {
|
2019-05-27 15:17:12 -03:00
|
|
|
public:
|
2019-10-25 12:32:31 +03:00
|
|
|
Tcl112Climate() : climate_ir::ClimateIR(TCL112_TEMP_MIN, TCL112_TEMP_MAX, .5f) {}
|
2019-05-27 15:17:12 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/// Transmit via IR the state of this climate controller.
|
2019-10-18 04:22:55 -03:00
|
|
|
void transmit_state() override;
|
|
|
|
/// Handle received IR Buffer
|
|
|
|
bool on_receive(remote_base::RemoteReceiveData data) override;
|
2019-05-27 15:17:12 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace tcl112
|
|
|
|
} // namespace esphome
|