29 accepted &= this->
parent_->stop_door();
31 accepted &= this->
parent_->impulse_door();
36 ESP_LOGW(TAG,
"Command was not accepted by the door");
42 if (!this->
parent_->is_valid()) {
56 const float current_position = this->
parent_->get_current_position();
57 switch (this->
parent_->get_door_state()) {
void status_set_warning()
void status_clear_warning()
const optional< bool > & get_toggle() const
const optional< float > & get_position() const
CoverOperation current_operation
The current operation of the cover (idle, opening, closing).
void publish_state(bool save=true)
Publish the current state of the cover.
float position
The position of the cover from 0.0 (fully closed) to 1.0 (fully open).
void set_supports_stop(bool supports_stop)
void set_supports_position(bool supports_position)
void set_supports_toggle(bool supports_toggle)
cover::CoverTraits get_traits() override
HoermannHcp *const parent_
void control(const cover::CoverCall &call) override
void dump_config() override
void update_from_state_()
@ COVER_OPERATION_OPENING
The cover is currently opening.
@ COVER_OPERATION_CLOSING
The cover is currently closing.
@ COVER_OPERATION_IDLE
The cover is currently idle (not moving)
ESPHOME_LOG_TAG(TAG, "hoermann_hcp.binary_sensor")