Skip to content

Access to Historical Data via API or Webhook #432

@Riahiamirreza

Description

@Riahiamirreza

Current Situation

Currently, the API and webhook for Hub 2 and Indoor Meter devices only provide the latest state data.

In environments where the internet connection is unstable, the Hub 2 may temporarily go offline. During these periods, data is lost on the API side, even though the device continues to record it. This results in gaps when retrieving data via API or webhook.

Proposed Change

Since this historical data is eventually synced and available in the SwitchBot mobile application, we’d like to request a way to access it programmatically. Specifically:

  • Provide a method to query historical data via the API
  • Or extend webhook functionality to include backfilled data once the Hub 2 regains connectivity

This feature would be very useful for applications that require complete and continuous datasets (e.g., environmental monitoring), where missing values due to temporary disconnects can degrade the accuracy of analytics.

Additional Context

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions