ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
pd_pioneer_ir.h
Go to the documentation of this file.
1#pragma once
2
5#ifdef USE_SWITCH
7#endif
8#include "pd_pioneer_data.h"
9
10namespace esphome::pd_pioneer_ir {
11
13 public:
21
22 void setup() override;
23
24 void set_fahrenheit(bool value) { this->temperature_step_ = value ? 0.5f : 1.0f; }
26 void set_display_on(bool on);
27
28#ifdef USE_SWITCH
29 SUB_SWITCH(display)
30#endif
31
32 protected:
33 void transmit_state() override;
35
36 // Horizontal swing from the odd burst, applied to the even burst that follows it
38 bool display_on_{true};
39};
40
41} // namespace esphome::pd_pioneer_ir
virtual void transmit_state()=0
Transmit via IR the state of this climate controller.
SUB_SWITCH(display) protected bool on_receive(remote_base::RemoteReceiveData data) override
void set_display_on(bool on)
Turns the unit's display on or off.
@ CLIMATE_PRESET_NONE
No preset is active.
@ CLIMATE_PRESET_ECO
Device is running an energy-saving preset.
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_HORIZONTAL
The fan mode is set to Horizontal.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ CLIMATE_SWING_BOTH
The fan mode is set to Both.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_AUTO
The fan mode is set to Auto.
@ CLIMATE_FAN_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.
constexpr uint8_t PDPIONEER_TEMPC_MAX
constexpr uint8_t PDPIONEER_TEMPC_MIN
uint32_t value
Definition hal.cpp:59