Skip to content

Feature Request - agile predictions #88

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

Open
tomkerswill opened this issue Sep 30, 2024 · 5 comments
Open

Feature Request - agile predictions #88

tomkerswill opened this issue Sep 30, 2024 · 5 comments

Comments

@tomkerswill
Copy link

Would you consider adding the ability to include Octopus Agile predictions? It would be especially useful to have predicted rates for a day or two in the future.

This data is already easy to get into Home Assistant, so I think it would just be a case of adding another config item to set the sensor.

@elyobelyob
Copy link

FYI, the OE Greenness Forecast only gives a forecast for 23:00 to 06:00 each day.

@tomkerswill
Copy link
Author

The Agile Predict site, here, has a nice API, and it's easy to get that into HA:

https://prices.fly.dev/

This seems to stretch for a week - and is not official, but seems to be a good guide to what the prices could be.

@elyobelyob
Copy link

You could try this ... https://github.com/elyobelyob/octopus-energy-greenness-forecast-card ...

I didn't want to mention it myself, but it's what I use ...

@pcb1962
Copy link

pcb1962 commented Oct 4, 2024

or this:
image

type: custom:apexcharts-card
experimental:
  color_threshold: true
header:
  show: true
  title: Greenness Forecast
graph_span: 7d
span:
  start: hour
apex_config:
  chart:
    height: 135
  stroke:
    width: 4
  xaxis:
    labels:
      format: ddd
series:
  - entity: sensor.octopus_energy_a_xxxxxxxx_greenness_forecast_current_index
    name: Forecast
    show:
      in_header: false
      legend_value: false
    color_threshold:
      - value: 0
        color: red
      - value: 40
        color: orange
      - value: 80
        color: green
    data_generator: |
      return entity.attributes.forecast.slice(0, 7).map((entry) => {
      return [new Date(entry.start), entry.greenness_score];
        });type: ''

Not sure where I got this from so can't give credit unfortunately.

@tomkerswill
Copy link
Author

Thanks so much for the help. I like Apex charts, and use it to show price predictions from Agile Predict. However, I really like the octopus-energy-rates-card view - e.g. the colour-coded table with prices. I'd love it if there was the ability to add data for several days ahead --- e.g. just extending the chart beyond 11pm tomorrow.

I have the data for this - it comes from the Agile Predict API - but I think to add this there just needs to be another option in octopus-energy-rates-card; e.g. you could have an "agileEntity" property which would work in a similar way to "futureEntity" but just further into the future.

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

No branches or pull requests

3 participants