ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
yashima.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace esphome::yashima {
11
13 public:
14 void setup() override;
16 this->transmitter_ = transmitter;
17 }
18 void set_supports_cool(bool supports_cool) { this->supports_cool_ = supports_cool; }
19 void set_supports_heat(bool supports_heat) { this->supports_heat_ = supports_heat; }
20 void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; }
21
22 protected:
24 void control(const climate::ClimateCall &call) override;
27
29 void transmit_state_();
30
31 bool supports_cool_{true};
32 bool supports_heat_{true};
33
36};
37
38} // namespace esphome::yashima
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
Base-class for all sensors.
Definition sensor.h:47
void transmit_state_()
Transmit via IR the state of this climate controller.
Definition yashima.cpp:133
climate::ClimateTraits traits() override
Return the traits of this controller.
Definition yashima.cpp:81
void set_transmitter(remote_transmitter::RemoteTransmitterComponent *transmitter)
Definition yashima.h:15
void set_sensor(sensor::Sensor *sensor)
Definition yashima.h:20
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
Definition yashima.cpp:121
void set_supports_cool(bool supports_cool)
Definition yashima.h:18
remote_transmitter::RemoteTransmitterComponent * transmitter_
Definition yashima.h:34
void set_supports_heat(bool supports_heat)
Definition yashima.h:19