ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
mitsubishi_cn105_climate.h
Go to the documentation of this file.
1#pragma once
2
7#include "mitsubishi_cn105.h"
8
10
12 public:
13 explicit MitsubishiCN105Climate() : hp_(*this) {}
14
15 void setup() override;
16 void loop() override;
17 void dump_config() override;
18
20 void control(const climate::ClimateCall &call) override;
21
24
27
28 protected:
29 void apply_values_();
30
32};
33
34template<typename... Ts>
35class SetRemoteTemperatureAction : public Action<Ts...>, public Parented<MitsubishiCN105Climate> {
36 public:
38
39 void play(const Ts &...x) override { this->parent_->set_remote_temperature(this->temperature_.value(x...)); }
40};
41
42template<typename... Ts>
43class ClearRemoteTemperatureAction : public Action<Ts...>, public Parented<MitsubishiCN105Climate> {
44 public:
45 void play(const Ts &...x) override { this->parent_->clear_remote_temperature(); }
46};
47
48} // namespace esphome::mitsubishi_cn105
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
This class is used to encode all control actions on a climate device.
Definition climate.h:34
ClimateDevice - This is the base class for all climate integrations.
Definition climate.h:187
void control(const climate::ClimateCall &call) override
void set_room_temperature_min_interval(uint32_t interval_ms)
void set_update_interval(uint32_t interval_ms)
TEMPLATABLE_VALUE(float, temperature) void play(const Ts &...x) override
static void uint32_t
uint16_t temperature
Definition sun_gtil2.cpp:12
uint16_t x
Definition tt21100.cpp:5