ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
ir_rf_proxy.h
Go to the documentation of this file.
1#pragma once
2
3// WARNING: This component is EXPERIMENTAL. The API may change at any time
4// without following the normal breaking changes policy. Use at your own risk.
5// Once the API is considered stable, this warning will be removed.
6
8
9namespace esphome::ir_rf_proxy {
10
13 public:
14 IrRfProxy() = default;
15
16 void dump_config() override;
17
19 void set_frequency(uint32_t frequency_khz) { this->frequency_khz_ = frequency_khz; }
21 uint32_t get_frequency() const { return this->frequency_khz_; }
23 bool is_rf() const { return this->frequency_khz_ > 0; }
24
25 protected:
26 // RF frequency in kHz (Hz / 1000); 0 = infrared, non-zero = RF
27 uint32_t frequency_khz_{0};
28};
29
30} // namespace esphome::ir_rf_proxy
Infrared - Base class for infrared remote control implementations.
Definition infrared.h:110
IrRfProxy - Infrared platform implementation using remote_transmitter/receiver as backend.
Definition ir_rf_proxy.h:12
void set_frequency(uint32_t frequency_khz)
Set RF frequency in kHz (0 = infrared, non-zero = RF)
Definition ir_rf_proxy.h:19
uint32_t get_frequency() const
Get RF frequency in kHz.
Definition ir_rf_proxy.h:21
bool is_rf() const
Check if this is RF mode (non-zero frequency)
Definition ir_rf_proxy.h:23