esphome/esphome/components/mitsubishi/mitsubishi.h
Guillermo Ruffino eea78531a1
Climate Mitsubishi (#725)
* add climate

* Mitsubishi updates

* refactor mitsubishi to use climate_ir

* lint
2019-12-30 22:02:55 -03:00

22 lines
552 B
C++

#pragma once
#include "esphome/components/climate_ir/climate_ir.h"
namespace esphome {
namespace mitsubishi {
// Temperature
const uint8_t MITSUBISHI_TEMP_MIN = 16; // Celsius
const uint8_t MITSUBISHI_TEMP_MAX = 31; // Celsius
class MitsubishiClimate : public climate_ir::ClimateIR {
public:
MitsubishiClimate() : climate_ir::ClimateIR(MITSUBISHI_TEMP_MIN, MITSUBISHI_TEMP_MAX) {}
protected:
/// Transmit via IR the state of this climate controller.
void transmit_state() override;
};
} // namespace mitsubishi
} // namespace esphome