Skip to content

Lock: silent first retry, report only if the retry fails (0.6.2) - #2

Merged
Jumpmaster2 merged 1 commit into
mainfrom
schloss-wiederholung-still
Nov 6, 2026
Merged

Jumpmaster2 merged 1 commit into
mainfrom
schloss-wiederholung-still

Conversation

@Jumpmaster2

Copy link
Copy Markdown
Owner

Some locks report "unlocked" a few seconds after "locked" on the first lock command and hold on the retry, so almost every arming produced a "door not locked" push.

  • First fallback or jam: logbook entry only, retry after 10 s
  • Push only if the retry falls back or jams, cannot run (door open, lock unavailable), or the lock is not "locked" 20 s after the retry
  • Disarming cancels retry and check
  • Tests: 97 passed, ruff clean, privacy check passed

🤖 Generated with Claude Code

Some locks report "unlocked" a few seconds after "locked" on the first
lock command and hold on the retry. The first fallback (or jam) now only
writes a logbook entry and retries; a push comes only if the retry falls
back, jams, cannot run (door open, lock unavailable) or the lock is not
"locked" LOCK_SETTLE seconds after the retry. Disarming cancels retry
and check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jumpmaster2
Jumpmaster2 merged commit bd1e1f3 into main Nov 6, 2026
6 checks passed
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