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

Runtime-tunable number entity. More...

#include <tuning_entities.h>

Inheritance diagram for esphome::home_io_control::IOHomeTuningNumber:
Collaboration diagram for esphome::home_io_control::IOHomeTuningNumber:

Public Member Functions

 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).

Protected Member Functions

void control (float value) override
 Called by ESPHome when the user changes the slider value in HA.

Protected Attributes

IOHomeControlComponentparent_ {nullptr}
std::string param_name_

Detailed Description

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.

Constructor & Destructor Documentation

◆ IOHomeTuningNumber()

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

Construct a tuning number entity.

Parameters
parentHub component that owns the tuning configuration.
nameYAML key of the parameter this slider controls (used for logs and dispatch).

Definition at line 34 of file tuning_entities.h.

Member Function Documentation

◆ control()

void esphome::home_io_control::IOHomeTuningNumber::control ( float value)
overrideprotected

Called by ESPHome when the user changes the slider value in HA.

Parameters
valueNew 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.

Member Data Documentation

◆ param_name_

std::string esphome::home_io_control::IOHomeTuningNumber::param_name_
protected

Definition at line 48 of file tuning_entities.h.

◆ parent_

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

Definition at line 47 of file tuning_entities.h.


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