10namespace current_based {
14 void setup()
override;
Base class for all cover devices.
float close_moving_current_threshold_
sensor::Sensor * close_sensor_
void start_direction_(cover::CoverOperation dir)
float open_obstacle_current_threshold_
void recompute_position_()
void set_open_moving_current_threshold(float open_moving_current_threshold)
void set_close_obstacle_current_threshold(float close_obstacle_current_threshold)
void set_close_sensor(sensor::Sensor *close_sensor)
bool is_closing_blocked_() const
Trigger * prev_command_trigger_
void set_start_sensing_delay(uint32_t start_sensing_delay)
void set_close_duration(uint32_t close_duration)
Trigger * get_close_trigger() const
float get_setup_priority() const override
bool is_at_target_() const
void set_open_duration(uint32_t open_duration)
uint32_t last_publish_time_
float open_moving_current_threshold_
Trigger * get_stop_trigger() const
Trigger * get_malfunction_trigger() const
void set_open_sensor(sensor::Sensor *open_sensor)
float close_obstacle_current_threshold_
bool is_initial_delay_finished_() const
cover::CoverTraits get_traits() override
bool is_opening_blocked_() const
uint32_t start_sensing_delay_
void set_close_moving_current_threshold(float close_moving_current_threshold)
void dump_config() override
void control(const cover::CoverCall &call) override
void set_open_obstacle_current_threshold(float open_obstacle_current_threshold)
cover::CoverOperation last_operation_
Trigger * malfunction_trigger_
bool malfunction_detection_
Trigger * get_open_trigger() const
void set_obstacle_rollback(float obstacle_rollback)
void set_max_duration(uint32_t max_duration)
void stop_prev_trigger_()
void set_malfunction_detection(bool malfunction_detection)
uint32_t last_recompute_time_
void direction_idle_(float new_position=FLT_MAX)
sensor::Sensor * open_sensor_
Base-class for all sensors.
CoverOperation
Enum encoding the current operation of a cover.
@ COVER_OPERATION_OPENING
The cover is currently opening.
Providing packet encoding functions for exchanging data with a remote host.