ESPHome 2025.5.0
Loading...
Searching...
No Matches
yashima.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace esphome {
11namespace yashima {
12
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; }
21 void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; }
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
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
ClimateDevice - This is the base class for all climate integrations.
Definition climate.h:168
This class contains all static data for climate devices.
Base-class for all sensors.
Definition sensor.h:57
void transmit_state_()
Transmit via IR the state of this climate controller.
Definition yashima.cpp:131
climate::ClimateTraits traits() override
Return the traits of this controller.
Definition yashima.cpp:82
void set_transmitter(remote_transmitter::RemoteTransmitterComponent *transmitter)
Definition yashima.h:16
void set_sensor(sensor::Sensor *sensor)
Definition yashima.h:21
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:19
remote_transmitter::RemoteTransmitterComponent * transmitter_
Definition yashima.h:35
void set_supports_heat(bool supports_heat)
Definition yashima.h:20
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7