#Cover Button States
1 messages · Page 1 of 1 (latest)
Cover button states are not dependent on CoverOperation
COVER_OPERATION_IDLE
■ button state
■ button is always enabled (when stop_action is set) regardless of the cover state and operation (even when COVER_OPERATION_IDLE)
Cover Open
Cover Closed
■ button is expected to be
- disabled when
COVER_OPERATION_IDLE - enabled otherwise (
COVER_OPERATION_OPENINGorCOVER_OPERATION_CLOSING)
Stop direction change
The cover stop direction should be configurable.
After stopping, covers may
- ↓ ■ ↓ ■ ↓ ■ ↓ / continue in the same direction , or
- ↓ ■ ↑ ■ ↓ ■ ↑ / continue in the opposite direction
COVER_OPERATION_OPENING / COVER_OPERATION_CLOSING
Instant operations
The current behaviour has the opposite direction enabled when the cover is opening or closing.
↑ button is enabled during COVER_OPERATION_CLOSING
↓ button is enabled during COVER_OPERATION_OPENING
Not all covers can instantly switch direction from opening to closing. A window blind may be able to go from opening to closing without stopping, but a garage door motors may first needs to stop before operating in the opposite direction.
↑ and ↓ buttons should be configurable to enable/disable instant operations.
↑ and ↓ buttons are expected to be
- enabled when
COVER_OPERATION_IDLE - disabled otherwise (when
CoverOperationis eitherCOVER_OPERATION_OPENINGorCOVER_OPERATION_CLOSING)