feat(doors): report selected doors' open time over a range #193

Open
opened 2026-09-30 15:26:06 +00:00 by gabogg · 0 comments
Owner

Part of #187 — milestone: Focused operator and supervisor door operations.

Intended outcome

Let a Supervisor select a set of doors and a time interval and see how long those doors were open. The current Open Longest panel ranks doors open now; door_access_cycles and door_hardware_state_transitions provide historical inputs but have different meanings.
Manual status records from #191 appear separately from hardware-derived durations while rules for using them in calculations remain undecided.

Triage questions

  1. Should the report show cumulative open time per door, longest opening, each opening interval, count of openings, or all of these? What is the primary answer the Supervisor needs?
  2. What date/time range and timezone rules apply? How are openings crossing range boundaries, still-open doors, offline periods, missing closing events, and sensorless doors treated?
  3. Should selection support individual doors, labels/groups, or saved lists? Are exports needed in the first release?
  4. Which data source is authoritative for physical open time versus commanded REMAIN_OPEN state? What coverage/quality warning should appear when history is incomplete?
  5. What future evidence and calculation rules, if any, would permit human-entered statuses from #191 to contribute to calculated open time? How should source changes within the interval be shown?

Ready-to-spec outcome

A precise duration formula, inclusion/quality rules, selection contract, and one worked example that can become an integration test.

Part of #187 — milestone: Focused operator and supervisor door operations. ## Intended outcome Let a Supervisor select a set of doors and a time interval and see how long those doors were open. The current Open Longest panel ranks doors open now; `door_access_cycles` and `door_hardware_state_transitions` provide historical inputs but have different meanings. Manual status records from #191 appear separately from hardware-derived durations while rules for using them in calculations remain undecided. ## Triage questions 1. Should the report show cumulative open time per door, longest opening, each opening interval, count of openings, or all of these? What is the primary answer the Supervisor needs? 2. What date/time range and timezone rules apply? How are openings crossing range boundaries, still-open doors, offline periods, missing closing events, and sensorless doors treated? 3. Should selection support individual doors, labels/groups, or saved lists? Are exports needed in the first release? 4. Which data source is authoritative for physical open time versus commanded REMAIN_OPEN state? What coverage/quality warning should appear when history is incomplete? 5. What future evidence and calculation rules, if any, would permit human-entered statuses from #191 to contribute to calculated open time? How should source changes within the interval be shown? ## Ready-to-spec outcome A precise duration formula, inclusion/quality rules, selection contract, and one worked example that can become an integration test.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gabogg/hikcentral#193
No description provided.