34 if (current_op == OP) {
35 if (!this->
last_operation_.has_value() || this->last_operation_.value() != OP) {
void trigger(const Ts &...x) ESPHOME_ALWAYS_INLINE
Base class for all cover devices.
CoverOperation current_operation
The current operation of the cover (idle, opening, closing).
void add_on_state_callback(F &&f)
float position
The position of the cover from 0.0 (fully closed) to 1.0 (fully open).
CoverPositionTrigger(Cover *a_cover)
optional< CoverOperation > last_operation_
CoverTrigger(Cover *a_cover)