Octopus Energy UK: Usage

Collect usage data from Octopus Energy UK and persist locally.

Language: DSL

Dependencies:

  • You need to be a customer of Octopus Energy UK!
  • Login to your Octopus account, go to “Personal details” then “API access” and note down your API key, MPAN, MPRN and serial numbers for your meters.
  • Create Items to receive the data and set the units appropriately - for electricity, Wh or kWh and for gas, m³ (SMETS2 meter) or Wh or kWh (SMETS1 meter)

Changelog

Version 1.0

  • Initial release

Resources

octopusenergy-usage.yaml

Do you know if this also works in Germany? I don’t have an API key for example so I guess this is probably limited to the UK?!

This uses the REST API whereas I think countries other than the UK only have the GraphQL API so, no, it won’t work in Germany.

Hi, I can’t get this to work. Trying to use my default persistence as you advise (RRD4j) but the logs just keep returning “There is no modifiable persistence service registered with the id ‘null’”. I have set service to null in the config. My item is not populated with data from Octopus and I get no other warnings.

You misread it. RRD will NOT work. You’re best using a SQL DB via JDBC. Personally I use PostgreSQL with the timescaledb extensions.