Runtime-tunable number entity.
More...
#include <tuning_entities.h>
|
| | IOHomeTuningNumber (IOHomeControlComponent *parent, std::string name) |
| | Construct a tuning number entity.
|
| void | setup () override |
| | Publish the current tuning value so the HA slider reflects the active configuration on boot.
|
| void | dump_config () override |
| | Empty dump_config override (kept for compatibility).
|
|
| void | control (float value) override |
| | Called by ESPHome when the user changes the slider value in HA.
|
Runtime-tunable number entity.
Forwards HA slider changes to the hub via the YAML key name. The hub updates the matching TuningConfig field and applies the value to the radio driver when needed.
Definition at line 29 of file tuning_entities.h.
◆ IOHomeTuningNumber()
| esphome::home_io_control::IOHomeTuningNumber::IOHomeTuningNumber |
( |
IOHomeControlComponent * | parent, |
|
|
std::string | name ) |
|
inline |
Construct a tuning number entity.
- Parameters
-
| parent | Hub component that owns the tuning configuration. |
| name | YAML key of the parameter this slider controls (used for logs and dispatch). |
Definition at line 34 of file tuning_entities.h.
◆ control()
| void esphome::home_io_control::IOHomeTuningNumber::control |
( |
float | value | ) |
|
|
overrideprotected |
Called by ESPHome when the user changes the slider value in HA.
- Parameters
-
| value | New value from the UI. |
Definition at line 24 of file tuning_entities.cpp.
◆ dump_config()
| void esphome::home_io_control::IOHomeTuningNumber::dump_config |
( |
| ) |
|
|
inlineoverride |
Empty dump_config override (kept for compatibility).
Definition at line 40 of file tuning_entities.h.
◆ setup()
| void esphome::home_io_control::IOHomeTuningNumber::setup |
( |
| ) |
|
|
override |
Publish the current tuning value so the HA slider reflects the active configuration on boot.
Definition at line 11 of file tuning_entities.cpp.
◆ param_name_
| std::string esphome::home_io_control::IOHomeTuningNumber::param_name_ |
|
protected |
◆ parent_
The documentation for this class was generated from the following files: