36 this->publish_state();
43 this->current_operation =
46 this->set_timeout(
"move", 2000, [
this, target]() {
49 this->publish_state();
56 this->cancel_timeout(
"move");
59 this->publish_state();
65 traits.set_is_assumed_state(
true);
68 traits.set_supports_position(
true);
71 traits.set_supports_position(
true);
72 traits.set_supports_tilt(
true);
75 traits.set_supports_stop(
true);
76 traits.set_is_assumed_state(
true);
77 traits.set_supports_tilt(
true);
Base class for all cover devices.
The cover is currently closing.
void set_type(DemoCoverType type)
The cover is currently idle (not moving)
void control(const cover::CoverCall &call) override
Implementation of SPI Controller mode.
cover::CoverTraits get_traits() override
The cover is currently opening.
const optional< float > & get_tilt() const
const optional< float > & get_position() const