Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::IOHomeTuningSelect Class Reference

Runtime-tunable select entity. More...

#include <tuning_entities.h>

Inheritance diagram for esphome::home_io_control::IOHomeTuningSelect:
Collaboration diagram for esphome::home_io_control::IOHomeTuningSelect:

Public Member Functions

 IOHomeTuningSelect (IOHomeControlComponent *parent, std::string name)
 Construct a tuning select entity.
void setup () override
 Publish the current tuning option so the HA dropdown reflects the active configuration on boot.
void dump_config () override
 Empty dump_config override (kept for compatibility).

Protected Member Functions

void control (const std::string &value) override
 Called by ESPHome when the user selects a new option in HA.

Protected Attributes

IOHomeControlComponentparent_ {nullptr}
std::string param_name_

Detailed Description

Runtime-tunable select entity.

Forwards HA dropdown selections to the hub via the YAML key name. The option strings match the YAML enumeration values so the user can copy the active value back to YAML.

Definition at line 55 of file tuning_entities.h.

Constructor & Destructor Documentation

◆ IOHomeTuningSelect()

esphome::home_io_control::IOHomeTuningSelect::IOHomeTuningSelect ( IOHomeControlComponent * parent,
std::string name )
inline

Construct a tuning select entity.

Parameters
parentHub component that owns the tuning configuration.
nameYAML key of the parameter this dropdown controls.

Definition at line 60 of file tuning_entities.h.

Member Function Documentation

◆ control()

void esphome::home_io_control::IOHomeTuningSelect::control ( const std::string & value)
overrideprotected

Called by ESPHome when the user selects a new option in HA.

Parameters
valueSelected option string.

Definition at line 30 of file tuning_entities.cpp.

◆ dump_config()

void esphome::home_io_control::IOHomeTuningSelect::dump_config ( )
inlineoverride

Empty dump_config override (kept for compatibility).

Definition at line 66 of file tuning_entities.h.

◆ setup()

void esphome::home_io_control::IOHomeTuningSelect::setup ( )
override

Publish the current tuning option so the HA dropdown reflects the active configuration on boot.

Definition at line 16 of file tuning_entities.cpp.

Member Data Documentation

◆ param_name_

std::string esphome::home_io_control::IOHomeTuningSelect::param_name_
protected

Definition at line 74 of file tuning_entities.h.

◆ parent_

IOHomeControlComponent* esphome::home_io_control::IOHomeTuningSelect::parent_ {nullptr}
protected

Definition at line 73 of file tuning_entities.h.


The documentation for this class was generated from the following files: