capabilities.work

Pull Device History

A 4-step recipe with Tibber. We can help you get access.

Recipe · 4 steps

Pull Device History

with Tibber

Resolve a home and device, then retrieve a page of device history at a supported resolution.

  1. List the homes the authenticated user has granted this client access to, and capture the first home id to operate on.
  2. List every linked device in the selected home and capture the first device id to inspect.
  3. Read the device to confirm its identity, capabilities, and which history resolutions it supports before requesting telemetry.
  4. Pull a page of historical telemetry for the device at the requested resolution, bounded by the optional since/until window.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token carrying the required Data API read scopes.
  • resolution: History resolution to request.
  • since: Inclusive lower bound (date-time) for forward pagination.
  • until: Inclusive upper bound (date-time) for backward pagination.
For your developer

Arazzo workflow tibber:pull-device-history, 4 operations: listHomes → listDevicesForHome → getDevice → getDeviceHistory. Specs on APIs.io.