Skip to content

Some of the Octopus energy rate are not downloading #2758

@davidallcock-byte

Description

@davidallcock-byte

Describe the bug
In the Compare tab, I see Tariff data for current, cap_seg, agile-agile, but none of the others.

If I copy the url and replace the {octopus_region} with a 'J', I get the tariff data.

This what I have in my app.yaml file:

Tariff comparison feature

Adjust this list to the tariffs you want to compare, include your current tariff also

Octopus region code (https://energy-stats.uk/dno-region-codes-explained/)

octopus_region: "J"
compare_list:
- id: 'current'
name: 'Current Tariff'
- id: 'cap_seg'
name: 'Price cap import/Seg export'
rates_import:
- rate: 24.86
rates_export:
- rate: 4.1
- id: 'igo_fixed'
name: 'Intelligent GO import/Fixed export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'
- id: 'igo_agile'
name: 'Intelligent GO import/Agile export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'
- id: 'go_fixed'
name: 'GO import/Fixed export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'
- id: 'go_agile'
name: 'GO import/Agile export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'
- id: 'agile_fixed'
name: 'Agile import/Fixed export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-24-10-01/electricity-tariffs/E-1R-AGILE-24-10-01-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'
- id: 'agile_agile'
name: 'Agile import/Agile export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-24-10-01/electricity-tariffs/E-1R-AGILE-24-10-01-{octopus_region}/standard-unit-rates/'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'
- id: 'flux'
name: 'Flux import/Export'
rates_import_octopus_url: 'https://api.octopus.energy/v1/products/FLUX-IMPORT-23-02-14/electricity-tariffs/E-1R-FLUX-IMPORT-23-02-14-J/standard-unit-rates'
rates_export_octopus_url: 'https://api.octopus.energy/v1/products/FLUX-EXPORT-BB-23-02-14/electricity-tariffs/E-1R-FLUX-EXPORT-BB-23-02-14-J/standard-unit-rates'

- id: 'cosy_fixed'

name: 'Cosy import/Fixed export'

rates_import_octopus_url: 'https://api.octopus.energy/v1/products/COSY-22-12-08/electricity-tariffs/E-1R-COSY-22-12-08-{octopus_region}/standard-unit-rates'

rates_export_octopus_url: 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'

- id: 'cosy_agile'

name: 'Cosy import/Agile export'

rates_import_octopus_url: 'https://api.octopus.energy/v1/products/COSY-22-12-08/electricity-tariffs/E-1R-COSY-22-12-08-{octopus_region}/standard-unit-rates'

rates_export_octopus_url: 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'

- id: 'snug_fixed'

name: 'Snug import/Fixed export'

rates_import_octopus_url: 'https://api.octopus.energy/v1/products/SNUG-24-11-07/electricity-tariffs/E-1R-SNUG-24-11-07-{octopus_region}/standard-unit-rates/'

rates_export_octopus_url: 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'

Expected behaviour
To see all the tariffs I have configured.

Predbat version

v8.25.9

Environment details

  • G2 Givenergy 5kW Hybrid Inverter and G2 8.2kWh battery
    Standard HAOS installer

Screenshots
If applicable, add screenshots to help explain your problem. The most useful ones can be your battery chart, the Predbat HTML plan and your current settings in HA.

Image

Log file
Can you capture a log file from the time of the issue, debug mode is not normally required.

2025-10-13 00:00:29.684219: Warn fetching rates during comparison of tariff {'id': 'flux', 'name': 'Flux import/Export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/FLUX-IMPORT-23-02-14/electricity-tariffs/E-1R-FLUX-IMPORT-23-02-14-{octopus_region}/standard-unit-rates', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/FLUX-EXPORT-BB-23-02-14/electricity-tariffs/E-1R-FLUX-EXPORT-BB-23-02-14-{octopus_region}/standard-unit-rates'}:

8362 | 2025-10-13 00:00:29.684117: Warn: record_status Warn: Unable to download Octopus data from cloud
8361 | 2025-10-13 00:00:29.670492: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/FLUX-EXPORT-BB-23-02-14/electricity-tariffs/E-1R-FLUX-EXPORT-BB-23-02-14-J/standard-unit-rates (data empty)
8354 | 2025-10-13 00:00:27.174404: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8286 | 2025-10-13 00:00:25.060097: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8255 | 2025-10-13 00:00:24.006505: Warn fetching rates during comparison of tariff {'id': 'agile_fixed', 'name': 'Agile import/Fixed export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/AGILE-24-10-01/electricity-tariffs/E-1R-AGILE-24-10-01-{octopus_region}/standard-unit-rates/', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'}:
8254 | 2025-10-13 00:00:24.006419: Warn: record_status Warn: Unable to download Octopus data from cloud
8253 | 2025-10-13 00:00:23.993230: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-J/standard-unit-rates/ (data empty)
8246 | 2025-10-13 00:00:22.646951: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8215 | 2025-10-13 00:00:21.664505: Warn fetching rates during comparison of tariff {'id': 'go_agile', 'name': 'GO import/Agile export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-{octopus_region}/standard-unit-rates/', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'}:
8214 | 2025-10-13 00:00:21.664400: Warn: record_status Warn: Unable to download Octopus data from cloud
8213 | 2025-10-13 00:00:21.650184: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-J/standard-unit-rates/ (data empty)
8207 | 2025-10-13 00:00:19.904250: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8176 | 2025-10-13 00:00:18.895773: Warn fetching rates during comparison of tariff {'id': 'go_fixed', 'name': 'GO import/Fixed export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-{octopus_region}/standard-unit-rates/', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'}:
8175 | 2025-10-13 00:00:18.895533: Warn: record_status Warn: Unable to download Octopus data from cloud
8174 | 2025-10-13 00:00:18.882877: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/GO-VAR-BB-23-02-07/electricity-tariffs/E-1R-GO-VAR-BB-23-02-07-J/standard-unit-rates/ (data empty)
8168 | 2025-10-13 00:00:17.261941: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8137 | 2025-10-13 00:00:16.273387: Warn fetching rates during comparison of tariff {'id': 'igo_agile', 'name': 'Intelligent GO import/Agile export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-{octopus_region}/standard-unit-rates/', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-{octopus_region}/standard-unit-rates/'}:
8136 | 2025-10-13 00:00:16.272812: Warn: record_status Warn: Unable to download Octopus data from cloud
8135 | 2025-10-13 00:00:16.258873: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-J/standard-unit-rates/ (data empty)
8129 | 2025-10-13 00:00:14.625113: Warn: Historical day 7 has 480 minutes of gap in the data, filled from 9.76 kWh to make new average 14.64 kWh (percent 67%)
8098 | 2025-10-13 00:00:13.617008: Warn fetching rates during comparison of tariff {'id': 'igo_fixed', 'name': 'Intelligent GO import/Fixed export', 'rates_import_octopus_url': 'https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-{octopus_region}/standard-unit-rates/', 'rates_export_octopus_url': 'https://api.octopus.energy/v1/products/OUTGOING-VAR-BB-24-10-26/electricity-tariffs/E-1R-OUTGOING-VAR-BB-24-10-26-{octopus_region}/standard-unit-rates/'}:
8097 | 2025-10-13 00:00:13.616892: Warn: record_status Warn: Unable to download Octopus data from cloud
8096 | 2025-10-13 00:00:13.604237: Warn: Unable to download Octopus data from URL https://api.octopus.energy/v1/products/INTELLI-BB-VAR-23-03-01/electricity-tariffs/E-1R-INTELLI-BB-VAR-23-03-01-J/standard-unit-rates/ (data empty)

You can download the logfile from the WebUI on the Dash tab select predbat_debug.log

Predbat debug yaml file
This is important for any plan related issues.

Once you have captured the issue go to the Web UI, in the Dash tab click on predbat_debug.yaml and wait 30 seconds for it to download. Select 'keep' if your Web Browser thinks the file is dangerous.

Rename the download file to predbat_debug.yaml.txt and upload it to Github. This will allow your plan to be reproduced and also stores all your settings for review.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions