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

Octopus Energy Integration #175

Open
glynhudson opened this issue Apr 17, 2018 · 3 comments
Open

Octopus Energy Integration #175

glynhudson opened this issue Apr 17, 2018 · 3 comments

Comments

@glynhudson
Copy link
Contributor

Octopus Energy have recently launched an electricity tariff in the UK with dynamic pricing Octapus Agile Tariff which included 'Plunge' pricing which occurs when energy prices go negative when there is too much power! At these times a user would get paid to use electricity.

Octopus Energy have a developer API: https://developer.octopus.energy/docs/api/

It would be great to be able to integrate with the API to set the OpenEVSE to charge at the cheapest time of day and start charging when a 'Plunge' event occurs.

@beaylott
Copy link

beaylott commented Apr 17, 2018

The relevant API call is:
https://api.octopus.energy/v1/products/{product_code}/electricity-tariffs/E-1R-AGILE-18-02-21-{gsp_id}/standard-unit-rates/

Where product_code for the Agile tariff is AGILE-18-02-21 (I dont think this will change but worth bearing in mind it is a parameter) and where gsp_id corresponds to the GSP Group ID as found in the MPAN (
https://en.wikipedia.org/wiki/Meter_Point_Administration_Number#Metered_Supply_Point). Note that some DNO's are associated with more than one GSP group.

So for a customer in GSP Group D (Merseyside and Northern Wales) the URL would be:

https://api.octopus.energy/v1/products/AGILE-18-02-21/electricity-tariffs/E-1R-AGILE-18-02-21-D/standard-unit-rates/

This should return a JSON with the unit prices for each 30 minute period.

@NickJenkey
Copy link

Really helpful thanks, now to incorporate it into the script to control the battery storage...

@glynhudson glynhudson changed the title Octapus Energy Integration Octopus Energy Integration Jan 21, 2019
@glynhudson
Copy link
Contributor Author

Octopus also make available an API to obtain your history consumption:

See: https://octopus.energy/dashboard/developer/

e.g

curl -u "API KEY:" https://api.octopus.energy/v1/electricity-meter-points/1300012035212/meters/18P6806936/consumption/

[{"consumption":0.087,"interval_start":"2019-03-27T23:30:00Z","interval_end":"2019-03-28T00:00:00Z"},{"consumption":0.089,"interval_start":"2019-03-27T23:00:00Z","interval_end":"2019-03-27T23:30:00Z"},{"consumption":0.423,"interval_start":"2019-03-27T22:30:00Z","interval_end":"2019-03-27T23:00:00Z"},{"consumption":1.31,"interval_start":"2019-03-27T22:00:00Z","interval_end":"2019-03-27T22:30:00Z"},{"consumption":0.117,"interval_start":"2019-03-27T21:30:00Z","interval_end":"2019-03-27T22:00:00Z"},{"consumption":0.111,"interval_start":"2019-03

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

No branches or pull requests

3 participants