36 void setup()
override;
float get_setup_priority() const override
Trigger< float > * tilt_trigger_
void set_has_toggle(bool has_toggle)
Base class for all cover devices.
void set_has_position(bool has_position)
Trigger * toggle_trigger_
void dump_config() override
Trigger * get_toggle_trigger() const
Trigger< float > * position_trigger_
cover::CoverTraits get_traits() override
void set_has_tilt(bool has_tilt)
void set_tilt_lambda(std::function< optional< float >()> &&tilt_f)
void set_optimistic(bool optimistic)
void control(const cover::CoverCall &call) override
void set_restore_mode(TemplateCoverRestoreMode restore_mode)
void set_state_lambda(std::function< optional< float >()> &&f)
TemplateCoverRestoreMode restore_mode_
Trigger< float > * get_position_trigger() const
Trigger * prev_command_trigger_
void set_assumed_state(bool assumed_state)
optional< std::function< optional< float >)> > state_f_
Trigger * get_close_trigger() const
Trigger * get_stop_trigger() const
void stop_prev_trigger_()
optional< std::function< optional< float >)> > tilt_f_
Trigger< float > * get_tilt_trigger() const
void set_has_stop(bool has_stop)
Implementation of SPI Controller mode.
Trigger * get_open_trigger() const