ESPHome  2024.12.2
yashima.h
Go to the documentation of this file.
1 #pragma once
2 
9 
10 namespace esphome {
11 namespace yashima {
12 
13 class YashimaClimate : public climate::Climate, public Component {
14  public:
15  void setup() override;
17  this->transmitter_ = transmitter;
18  }
19  void set_supports_cool(bool supports_cool) { this->supports_cool_ = supports_cool; }
20  void set_supports_heat(bool supports_heat) { this->supports_heat_ = supports_heat; }
22 
23  protected:
25  void control(const climate::ClimateCall &call) override;
27  climate::ClimateTraits traits() override;
28 
30  void transmit_state_();
31 
32  bool supports_cool_{true};
33  bool supports_heat_{true};
34 
37 };
38 
39 } // namespace yashima
40 } // namespace esphome
This class is used to encode all control actions on a climate device.
Definition: climate.h:33
This class contains all static data for climate devices.
void set_supports_heat(bool supports_heat)
Definition: yashima.h:20
void set_transmitter(remote_transmitter::RemoteTransmitterComponent *transmitter)
Definition: yashima.h:16
sensor::Sensor * sensor_
Definition: yashima.h:36
void transmit_state_()
Transmit via IR the state of this climate controller.
Definition: yashima.cpp:130
void set_sensor(sensor::Sensor *sensor)
Definition: yashima.h:21
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition: yashima.cpp:120
Base-class for all sensors.
Definition: sensor.h:57
remote_transmitter::RemoteTransmitterComponent * transmitter_
Definition: yashima.h:35
esphome::sensor::Sensor * sensor
Definition: statsd.h:38
ClimateDevice - This is the base class for all climate integrations.
Definition: climate.h:168
void set_supports_cool(bool supports_cool)
Definition: yashima.h:19
climate::ClimateTraits traits() override
Return the traits of this controller.
Definition: yashima.cpp:82