28 lines
712 B
C++
28 lines
712 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/climate/climate.h"
|
|
#include "esphome/components/uart/uart.h"
|
|
#include "mitsubishi_cn105.h"
|
|
|
|
namespace esphome::mitsubishi_cn105 {
|
|
|
|
class MitsubishiCN105Climate : public climate::Climate, public Component, public uart::UARTDevice {
|
|
public:
|
|
explicit MitsubishiCN105Climate() : hp_(*this) {}
|
|
|
|
void setup() override;
|
|
void loop() override;
|
|
void dump_config() override;
|
|
|
|
climate::ClimateTraits traits() override;
|
|
void control(const climate::ClimateCall &call) override;
|
|
|
|
void set_update_interval(uint32_t ms) { hp_.set_update_interval(ms); }
|
|
|
|
protected:
|
|
MitsubishiCN105 hp_;
|
|
};
|
|
|
|
} // namespace esphome::mitsubishi_cn105
|