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

Add support for Energi Data Service #1560

Open
woopstar opened this issue Oct 21, 2024 · 6 comments
Open

Add support for Energi Data Service #1560

woopstar opened this issue Oct 21, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@woopstar
Copy link

Is your feature request related to a problem? Please describe.
Energy Rates are needed to do the calculations. Currently, the UK market is supported.

We could quickly implement Energi Data Service as a provider to enable the DK market.

Everyone heavily uses it in Denmark.

https://github.com/MTrab/energidataservice

Describe the solution you'd like
Add support for Energy Data Service with the provided sensors.

@gcoan
Copy link
Collaborator

gcoan commented Oct 21, 2024

Predbat supports different energy rates, not specifically the UK (although yes it was developed in the UK)

https://springfall2008.github.io/batpred/energy-rates/

If you are able to create a template sensor to reformat the Energi Data Service output to one of the formats Predbat already accepts this would make it easier than extending Predbat for specific energy integrations. Happy to add it to the documentation as an example for other DK users.

@woopstar
Copy link
Author

@gcoan Can you provide the formats Predbat already accepts? Then I can look into creating a template sensor that reformats Energi Data Service to be supported.

@woopstar
Copy link
Author

@springfall2008 can you help me out here, so I can try to make a template sensor. Also on what properties they should be used in? I suspect its the rates_import and rates_export ?

@gcoan
Copy link
Collaborator

gcoan commented Nov 2, 2024

@gcoan Can you provide the formats Predbat already accepts? Then I can look into creating a template sensor that reformats Energi Data Service to be supported.

Sorry overlooked responding.

The format of the rates sensor is defined in the documentation for Bottle Cap Dave's Octopus integration. Here's a fragment of the event.octopus_energy_METERID_current_day_rates (import) sensor, the export_current_day_rates is the same:

event_types: octopus_energy_electricity_current_day_rates
event_type: octopus_energy_electricity_current_day_rates
rates: 
- start: '2024-11-02T00:00:00+00:00'
  end: '2024-11-02T00:30:00+00:00'
  value_inc_vat: 0.173985
  is_capped: false
- start: '2024-11-02T00:30:00+00:00'
  end: '2024-11-02T01:00:00+00:00'
  value_inc_vat: 0.196245
  is_capped: false
- start: '2024-11-02T01:00:00+00:00'
  end: '2024-11-02T01:30:00+00:00'
  value_inc_vat: 0.178815
  is_capped: false
- start: '2024-11-02T01:30:00+00:00'
  end: '2024-11-02T02:00:00+00:00'
  value_inc_vat: 0.17199
  is_capped: false

There's some more attributes after those but I think the key ones are the rates which comprise of start and end time and value. I have a fixed 15pence export rate and the export rate sensor also repeats all the 30 minute time blocks even though the rate is the same throughout the day.

@springfall2008
Copy link
Owner

Is your feature request related to a problem? Please describe. Energy Rates are needed to do the calculations. Currently, the UK market is supported.

We could quickly implement Energi Data Service as a provider to enable the DK market.

Everyone heavily uses it in Denmark.

https://github.com/MTrab/energidataservice

Describe the solution you'd like Add support for Energy Data Service with the provided sensors.

If you install this service and snapshot what the data is like I maybe able to help?

@springfall2008 springfall2008 added the enhancement New feature or request label Nov 2, 2024
@woopstar
Copy link
Author

woopstar commented Nov 4, 2024

image

Does this work ?

There is also forecast available in another attribute:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants