Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches

Parameter tables and lookup helpers for the tuning registry. More...

#include "tuning_registry.h"
#include "proto_codecs.h"
#include <cstddef>
#include <iterator>
Include dependency graph for tuning_registry.cpp:

Go to the source code of this file.

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Functions

const TuningNumberParamesphome::home_io_control::find_tuning_number (const std::string &name)
 Look up a numeric tuning parameter by name; returns nullptr if unknown.
const TuningSelectParamesphome::home_io_control::find_tuning_select (const std::string &name)
 Look up a select tuning parameter by name; returns nullptr if unknown.
Table iteration

Range accessors over the full parameter tables, for enumeration and tests.

const TuningNumberParamesphome::home_io_control::tuning_number_params_begin ()
const TuningNumberParamesphome::home_io_control::tuning_number_params_end ()
const TuningSelectParamesphome::home_io_control::tuning_select_params_begin ()
const TuningSelectParamesphome::home_io_control::tuning_select_params_end ()

Variables

static constexpr TuningNumberParam esphome::home_io_control::NUMBER_PARAMS []
static constexpr TuningSelectParam esphome::home_io_control::SELECT_PARAMS []

Detailed Description

Parameter tables and lookup helpers for the tuning registry.

The getter/setter lambdas below carry all per-parameter parsing (bandwidth enum decode, the comma-separated command list with whitespace trimming, the destination/payload/low-power mapping). Keeping them here makes the hub's tuning dispatch methods pure table lookups.

Definition in file tuning_registry.cpp.