ESPHome 2026.1.0b1
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
10
11namespace esphome::ir_rf_proxy {
12
15 public:
16 IrRfProxy() = default;
17
18 void dump_config() override;
19
21 void set_frequency(uint32_t frequency_khz) { this->frequency_khz_ = frequency_khz; }
23 uint32_t get_frequency() const { return this->frequency_khz_; }
25 bool is_rf() const { return this->frequency_khz_ > 0; }
26
27 protected:
28 // RF frequency in kHz (Hz / 1000); 0 = infrared, non-zero = RF
29 uint32_t frequency_khz_{0};
30};
31
32} // namespace esphome::ir_rf_proxy
Infrared - Base class for infrared remote control implementations.
Definition infrared.h:85
IrRfProxy - Infrared platform implementation using remote_transmitter/receiver as backend.
Definition ir_rf_proxy.h:14
void set_frequency(uint32_t frequency_khz)
Set RF frequency in kHz (0 = infrared, non-zero = RF)
Definition ir_rf_proxy.h:21
uint32_t get_frequency() const
Get RF frequency in kHz.
Definition ir_rf_proxy.h:23
bool is_rf() const
Check if this is RF mode (non-zero frequency)
Definition ir_rf_proxy.h:25