7static const char *
const TAG =
"hoermann_hcp.cover";
36 ESP_LOGW(TAG,
"Command was not accepted by the door");
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_()
DoorState get_door_state() const
bool set_position(float position)
float get_current_position() const
void add_on_state_callback(F &&callback)
@ 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)