Skip to content

Duplicate "Space Open/Closed" API requests received from SMIBHID #119

Description

@samcorky

This is not the first time it's happened, but here is relevant data to the issue from yesterday

In this case, the space closed message was sent after the space temporarily closed message, even though the close button was pressed 3 times (20-minute closure)

SMIBHID UI Log

{"_id":{"$oid":"694302423ac516f7014ff0a9"},"event":{"button_name":"Space Open","button_id":"space_open"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:18:41Z"},"device":"SMIBHID-Door","received_timestamp":{"$date":"2025-12-17T19:19:30.730Z"}}
{"_id":{"$oid":"694302423ac516f7014ff0aa"},"event":{"button_name":"Space Open","button_id":"space_open"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:18:41Z"},"device":"SMIBHID-Door","received_timestamp":{"$date":"2025-12-17T19:19:30.730Z"}}
{"_id":{"$oid":"694302423ac516f7014ff0ab"},"event":{"button_name":"Space Open","button_id":"space_open"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:18:42Z"},"device":"SMIBHID-Door","received_timestamp":{"$date":"2025-12-17T19:19:30.730Z"}}
{"_id":{"$oid":"6942fe383ac516f7014ff092"},"event":{"button_name":"Space Closed","button_id":"space_closed"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:02:06Z"},"device":"SMIBHID-Corridor","received_timestamp":{"$date":"2025-12-17T19:02:16.826Z"}}
{"_id":{"$oid":"6942fe383ac516f7014ff093"},"event":{"button_name":"Space Closed","button_id":"space_closed"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:02:06Z"},"device":"SMIBHID-Corridor","received_timestamp":{"$date":"2025-12-17T19:02:16.826Z"}}
{"_id":{"$oid":"6942fe383ac516f7014ff094"},"event":{"button_name":"Space Closed","button_id":"space_closed"},"type":"button_press","timestamp":{"$date":"2025-12-17T19:02:07Z"},"device":"SMIBHID-Corridor","received_timestamp":{"$date":"2025-12-17T19:02:16.826Z"}}
{"_id":{"$oid":"6942ee583ac516f7014ff04b"},"event":{"button_name":"Space Open","button_id":"space_open"},"type":"button_press","timestamp":{"$date":"2025-12-17T17:53:41Z"},"device":"SMIBHID-Door","received_timestamp":{"$date":"2025-12-17T17:54:32.480Z"}}

Corresponding Slack messages

Image

Space State Event Log

{"_id":{"$oid":"694302153ac516f7014ff0a7"},"new_state":"open","previous_state":"closed","requested_duration_seconds":7200,"requested_state":"open","source":"http","timestamp":{"$date":"2025-12-17T19:18:45.673Z"}}
{"_id":{"$oid":"6942fe3c3ac516f7014ff095"},"new_state":"closed","previous_state":"closed","requested_duration_seconds":null,"requested_state":"closed","source":"http","timestamp":{"$date":"2025-12-17T19:02:20.020Z"}}
{"_id":{"$oid":"6942fe333ac516f7014ff091"},"new_state":"closed","previous_state":"open","requested_duration_seconds":1200,"requested_state":"closed","source":"http","timestamp":{"$date":"2025-12-17T19:02:11.282Z"}}
{"_id":{"$oid":"6942ee2a3ac516f7014ff049"},"new_state":"open","previous_state":"closed","requested_duration_seconds":null,"requested_state":"open","source":"http","timestamp":{"$date":"2025-12-17T17:53:46.151Z"}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem rightrefactorRequires refactoring or adjusting existing code

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions