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