18 " Supports Transmitter: %s\n"
19 " Supports Receiver: %s",
24 ESP_LOGCONFIG(TAG,
" Hardware Type: RF (%.3f MHz)", this->
frequency_khz_ / 1e3f);
26 ESP_LOGCONFIG(TAG,
" Hardware Type: Infrared");
34#ifdef USE_RADIO_FREQUENCY
45 " Supports Transmitter: %s\n"
46 " Supports Receiver: %s",
50 const auto &traits = this->
traits_;
51 if (traits.get_frequency_min_hz() > 0) {
52 if (traits.get_frequency_min_hz() == traits.get_frequency_max_hz()) {
53 ESP_LOGCONFIG(TAG,
" Frequency: %.3f MHz (fixed)", traits.get_frequency_min_hz() / 1e6f);
55 ESP_LOGCONFIG(TAG,
" Frequency Range: %.3f - %.3f MHz", traits.get_frequency_min_hz() / 1e6f,
56 traits.get_frequency_max_hz() / 1e6f);
const LogString * get_log_name() const
Get the name for a "%s" log argument (LOG_STR_ARG).
void setup() override
Reports the configured transports, listens on the receiver and hooks the transmitter's completion; a ...
bool get_supports_transmitter() const
What the entity can do; platforms with their own hardware set these from their own setup(),...
bool get_supports_receiver() const
bool transmit_raw_(const IrRfCallData &call, uint32_t carrier_frequency_hz)
Hands the call's timings to the transmitter; the default transmit path of both entity types.
void dump_config() override
bool is_rf() const
Check if this is RF mode (non-zero frequency)
bool control(const radio_frequency::RadioFrequencyCall &call) override
void dump_config() override
RadioFrequencyCall - Builder pattern for transmitting radio frequency signals.
RadioFrequencyTraits traits_
void add_supported_modulation(RadioFrequencyModulation mod)
ESPHOME_LOG_TAG(TAG, "ir_rf_proxy")
@ RADIO_FREQUENCY_MODULATION_OOK