ESPHome 2026.9.0-dev
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
10
12
14 public Component,
15 public Parented<MitsubishiCN105Component> {
16 public:
17 void setup() override;
18 void dump_config() override;
19
21 void control(const climate::ClimateCall &call) override;
22
24 // Legacy climate action compatibility. Remove in 2027.2.0.
25 void set_remote_temperature(float temperature) { this->parent_->set_remote_temperature(temperature); }
26 void clear_remote_temperature() { this->parent_->clear_remote_temperature(); }
27
28 protected:
29 void apply_values_();
30
32};
33
34// Legacy climate action compatibility. Remove in 2027.2.0.
35template<typename... Ts>
36class LegacySetRemoteTemperatureAction final : public Action<Ts...>, public Parented<MitsubishiCN105Climate> {
37 public:
39
40 void play(const Ts &...x) override { this->parent_->set_remote_temperature(this->temperature_.value(x...)); }
41};
42
43// Legacy climate action compatibility. Remove in 2027.2.0.
44template<typename... Ts>
45class LegacyClearRemoteTemperatureAction final : public Action<Ts...>, public Parented<MitsubishiCN105Climate> {
46 public:
47 void play(const Ts &...x) override { this->parent_->clear_remote_temperature(); }
48};
49
50} // 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:1910
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:304
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