9 this->source_number_->add_on_state_callback([
this](
float value) { this->
publish_state(value); });
15 if (this->source_number_->has_state())
19void CopyNumber::dump_config() { LOG_NUMBER(
"",
"Copy Number",
this); }
22 auto call2 = this->source_number_->make_call();
23 call2.set_value(
value);
virtual void setup()
Where the component's initialization should happen.
void control(float value) override
void publish_state(float state)
void set_min_value(float min_value)
void set_step(float step)
void set_max_value(float max_value)
ESPHOME_LOG_TAG(TAG, "copy.binary_sensor")