ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
ir_rf_proxy.cpp
Go to the documentation of this file.
1#include "ir_rf_proxy.h"
2#include "esphome/core/log.h"
3
5
6static const char *const TAG = "ir_rf_proxy";
7
9 ESP_LOGCONFIG(TAG,
10 "IR/RF Proxy '%s'\n"
11 " Supports Transmitter: %s\n"
12 " Supports Receiver: %s",
13 this->get_name().c_str(), YESNO(this->traits_.get_supports_transmitter()),
14 YESNO(this->traits_.get_supports_receiver()));
15
16 if (this->is_rf()) {
17 ESP_LOGCONFIG(TAG, " Hardware Type: RF (%.3f MHz)", this->frequency_khz_ / 1e3f);
18 } else {
19 ESP_LOGCONFIG(TAG, " Hardware Type: Infrared");
20 }
21}
22
23} // namespace esphome::ir_rf_proxy
const StringRef & get_name() const
bool get_supports_transmitter() const
Definition infrared.h:73
bool is_rf() const
Check if this is RF mode (non-zero frequency)
Definition ir_rf_proxy.h:25