6#ifdef USE_BINARY_SENSOR
16 void setup()
override;
25#ifdef USE_BINARY_SENSOR
56#ifdef USE_BINARY_SENSOR
Base class for all binary_sensor-type classes.
Base class for all cover devices.
Trigger * get_close_trigger() const
cover::CoverTraits get_traits() override
cover::CoverOperation current_trigger_operation_
Trigger * prev_command_trigger_
binary_sensor::BinarySensor * open_endstop_
float get_setup_priority() const override
void start_direction_(cover::CoverOperation dir)
uint32_t update_interval_
void set_has_built_in_endstop(bool value)
void set_assumed_state(bool value)
void set_open_obstacle_sensor(binary_sensor::BinarySensor *open_obstacle)
void set_open_sensor(binary_sensor::BinarySensor *open_feedback)
void set_current_operation_(cover::CoverOperation operation, bool is_triggered)
binary_sensor::BinarySensor * close_endstop_
void set_close_endstop(binary_sensor::BinarySensor *close_endstop)
void stop_prev_trigger_()
optional< uint32_t > direction_change_waittime_
binary_sensor::BinarySensor * close_obstacle_
void set_close_obstacle_sensor(binary_sensor::BinarySensor *close_obstacle)
void control(const cover::CoverCall &call) override
binary_sensor::BinarySensor * open_feedback_
Trigger * get_open_trigger() const
bool is_at_target_() const
void set_max_duration(uint32_t max_duration)
bool has_built_in_endstop_
void set_open_duration(uint32_t duration)
void dump_config() override
uint32_t acceleration_wait_time_
Trigger * get_stop_trigger() const
void recompute_position_()
void set_direction_change_waittime(uint32_t waittime)
void endstop_reached_(bool open_endstop)
void set_open_endstop(binary_sensor::BinarySensor *open_endstop)
cover::CoverOperation last_operation_
binary_sensor::BinarySensor * open_obstacle_
uint32_t last_recompute_time_
void set_close_duration(uint32_t duration)
binary_sensor::BinarySensor * close_feedback_
void set_infer_endstop(bool infer_endstop)
uint32_t last_publish_time_
void update_operation_(cover::CoverOperation dir)
void set_update_interval(uint32_t interval)
void set_acceleration_wait_time(uint32_t waittime)
void set_obstacle_rollback(float obstacle_rollback)
void set_close_sensor(binary_sensor::BinarySensor *close_feedback)
CoverOperation
Enum encoding the current operation of a cover.
@ COVER_OPERATION_OPENING
The cover is currently opening.
@ COVER_OPERATION_IDLE
The cover is currently idle (not moving)
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.