Skip to content

Fix cover not reaching end stops after a power outage - #536

Open
danielpinto8zz6 wants to merge 1 commit into
romasku:mainfrom
danielpinto8zz6:fix/cover-position-power-loss
Open

danielpinto8zz6 wants to merge 1 commit into
romasku:mainfrom
danielpinto8zz6:fix/cover-position-power-loss

Conversation

@danielpinto8zz6

Copy link
Copy Markdown

motor_position was only persisted when a Zigbee attribute was written, so a reboot restored a stale tracker value and open/close ran only the remaining tracked distance. Persist position on every clean stop, and mark the tracker untrusted when a move starts so a mid-move power loss triggers a full-travel re-home on the next open/close.

motor_position was only persisted when a Zigbee attribute was written, so a reboot restored a stale tracker value and open/close ran only the remaining tracked distance. Persist position on every clean stop, and mark the tracker untrusted when a move starts so a mid-move power loss triggers a full-travel re-home on the next open/close.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant