ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
yashima.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace esphome::yashima {
11
12class YashimaClimate final : public climate::Climate, public Component {
13 SUB_SENSOR(temperature)
14
15 public:
16 void setup() override;
17 void set_transmitter(remote_transmitter::RemoteTransmitterComponent *transmitter) {
18 this->transmitter_ = transmitter;
19 }
20 void set_supports_cool(bool supports_cool) { this->supports_cool_ = supports_cool; }
21 void set_supports_heat(bool supports_heat) { this->supports_heat_ = supports_heat; }
22
23 protected:
25 void control(const climate::ClimateCall &call) override;
28
30 void transmit_state_();
31
32 bool supports_cool_{true};
33 bool supports_heat_{true};
34
36};
37
38} // namespace esphome::yashima
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:84
This class is used to encode all control actions on a climate device.
Definition climate.h:31
ClimateDevice - This is the base class for all climate integrations.
Definition climate.h:192
void transmit_state_()
Transmit via IR the state of this climate controller.
Definition yashima.cpp:137
climate::ClimateTraits traits() override
Return the traits of this controller.
Definition yashima.cpp:85
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition yashima.cpp:125
remote_transmitter::RemoteTransmitterComponent * transmitter_
Definition yashima.h:35
uint16_t temperature
Definition sun_gtil2.cpp:12