ESPHome 2026.8.2
Loading...
Searching...
No Matches
mitsubishi_cn105_climate.h
Go to the documentation of this file.
1#pragma once
2
4#include "mitsubishi_cn105.h"
5
9
11
12class MitsubishiCN105Climate : public climate::Climate, public Component, public Parented<MitsubishiCN105Component> {
13 public:
14 void setup() override;
15 void dump_config() override;
16
18 void control(const climate::ClimateCall &call) override;
19
21 // Legacy climate action compatibility. Remove in 2027.2.0.
22 void set_remote_temperature(float temperature) { this->parent_->set_remote_temperature(temperature); }
23 void clear_remote_temperature() { this->parent_->clear_remote_temperature(); }
24
25 protected:
26 void apply_values_();
27
31};
32
33// Legacy climate action compatibility. Remove in 2027.2.0.
34template<typename... Ts>
35class LegacySetRemoteTemperatureAction : 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
42// Legacy climate action compatibility. Remove in 2027.2.0.
43template<typename... Ts>
44class LegacyClearRemoteTemperatureAction : public Action<Ts...>, public Parented<MitsubishiCN105Climate> {
45 public:
46 void play(const Ts &...x) override { this->parent_->clear_remote_temperature(); }
47};
48
49} // 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:1907
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
ClimateMode mode
The active mode of the climate device.
Definition climate.h:293
TEMPLATABLE_VALUE(float, temperature) void play(const Ts &...x) override
void control(const climate::ClimateCall &call) override
void set_supported_swing_mode(climate::ClimateSwingMode mode)
ClimateSwingMode
Enum for all modes a climate swing can be in NOTE: If adding values, update ClimateSwingModeMask in c...
uint16_t temperature
Definition sun_gtil2.cpp:12
uint16_t x
Definition tt21100.cpp:5