Runtime-tunable select entity.
More...
#include <tuning_entities.h>
|
| | 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).
|
|
| void | control (const std::string &value) override |
| | Called by ESPHome when the user selects a new option in HA.
|
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.
◆ IOHomeTuningSelect()
| esphome::home_io_control::IOHomeTuningSelect::IOHomeTuningSelect |
( |
IOHomeControlComponent * | parent, |
|
|
std::string | name ) |
|
inline |
Construct a tuning select entity.
- Parameters
-
| parent | Hub component that owns the tuning configuration. |
| name | YAML key of the parameter this dropdown controls. |
Definition at line 60 of file tuning_entities.h.
◆ 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
-
| value | Selected 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.
◆ param_name_
| std::string esphome::home_io_control::IOHomeTuningSelect::param_name_ |
|
protected |
◆ parent_
The documentation for this class was generated from the following files: