10 if ((uint16_t) min_gate > this->
parent_->new_config.max_gate) {
11 min_gate = this->
parent_->get_min_gate_distance_value();
13 this->
parent_->new_config.min_gate = (uint16_t) min_gate;
19 if ((uint16_t) max_gate < this->
parent_->new_config.min_gate) {
20 max_gate = this->
parent_->get_max_gate_distance_value();
22 this->
parent_->new_config.max_gate = (uint16_t) max_gate;
28 const uint8_t gate = (uint8_t) gate_select;
30 this->
parent_->publish_gate_move_threshold(gate);
31 this->
parent_->publish_gate_still_threshold(gate);
LD2420Component * parent_
void control(float gate_select) override
void control(float max_gate) override
void control(float min_gate) override
void publish_state(float state)
ESPHOME_LOG_TAG(TAG, "ld2420.number")