fix(doors): investigate doors reported opening twice #198
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#198
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported symptom
Some doors appear to report an opening twice. The affected door IDs, timestamps, and whether the duplicate appears in HikCentral, this app's activity log, transition history, or live UI still need to be captured. Investigate before choosing a deduplication rule; two genuine openings must remain distinct.
Reported sequence (second-hand, not yet verified)
When someone opens a door, the system reports an opening and a closing and identifies the person who passed the card. Immediately afterward, the door reports open again and does not promptly report another close. Capture the actual event IDs and times before assuming these are duplicate events or a real second opening.
The first question is where this sequence begins: does HikCentral itself send/show the second OPEN, or does our polling, reconciliation, persistence, or UI create it from otherwise correct HikCentral data?
Investigation
acsDoorListstate.Ready-to-spec outcome
One reproducible example, evidence assigning the second OPEN to HikCentral or this app, the responsible path, the intended deduplication/transition rule, and a test that fails on the duplicate but preserves distinct openings.
Related: #196 investigates stale Open Longest states and poll/webhook ordering. This issue concerns duplicate opening reports and should be triaged independently unless the same cause is demonstrated.