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