Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore API availability to get Octopus Home Mini real-time meter readings #287

Open
ryanw-mobile opened this issue Aug 2, 2024 · 2 comments
Assignees
Labels
feature A new feature for the user, not a new feature for a build script.

Comments

@ryanw-mobile
Copy link
Owner

Octopus Energy sent us the home mini device that works.
Try to see if any existing GraphQL API can return if a home mini is registered under the customer account, and if it is possible to grab the real-time meter readings like their official app.

If so, there are many new features we can combine the real-time readings and the Agile tariff unit rates.

@ryanw-mobile ryanw-mobile added the feature A new feature for the user, not a new feature for a build script. label Aug 2, 2024
@ryanw-mobile ryanw-mobile self-assigned this Aug 2, 2024
@ryanw-mobile
Copy link
Owner Author

GraphQL Query:

query getSmartMeterTelemetry($meterDeviceId: String!, $start: DateTime, $end: DateTime, $grouping: TelemetryGrouping) {
  smartMeterTelemetry(
    deviceId: $meterDeviceId
    start: $start
    end: $end
    grouping: $grouping
  ) {
    readAt
    consumption
    demand
    __typename
  }
}

Data sample:

{
  "end":"2024-11-20T02:11:06.734Z",
"grouping": "TEN_SECONDS",
"meterDeviceId": "XX-XX-XX-XX-XX-XX-XX-XX",
"start": "2024-11-20T02:10:06.734Z"
}

@ryanw-mobile
Copy link
Owner Author

Getting device Id:

            meters {
                smartImportElectricityMeter {
                    deviceId
                    __typename
                }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for the user, not a new feature for a build script.
Projects
None yet
Development

No branches or pull requests

1 participant