Skip to content

kraken EON import tariff lookup failing #3763

Description

@skunkworxdark

Describe the bug
Retrieval of my EDF import tariff rates and standing charge is failing but the export tariff rate is working. The import and export tariff names are both been identified correctly.

Import Tariff: Next Smart Saver Fixed 12m V8
Export Tariff: Next Flex Export v1

History of previous issues with getting Kraken to work with EDF.
#3733 #3681

Below is the URL it uses to try and retrieve the import rates which returns {"detail":"Not found."} when you put it in a browser. I had done some research on this and reported it in my first issue post on #3733 .
https://api.eonnext-kraken.energy/v1/products/NEXT_SMART_SAVER_FIXED_12M_V8/electricity-tariffs/E-TOU-NEXT_SMART_SAVER_FIXED_12M_V8-M/standard-unit-rates/

Expected behaviour
The import tariff rates and standing charge to be retrieved correctly.

Predbat version

8.36.1

Screenshots
Image

Image Image Image

Log file
Initial rates lookup failure

2026-04-08 12:40:05.358803: Initialising Kraken Energy (EDF/E.ON) interface
2026-04-08 12:40:05.358858: Kraken: Export account configured — [REDACTED] MPAN auto
2026-04-08 12:40:05.358952: Initialising Axle Energy interface
2026-04-08 12:40:05.359084: Starting Kraken Energy (EDF/E.ON) interface
2026-04-08 12:40:05.359114: Creating task: <coroutine object ComponentBase.start at 0x7f0ee9894300>
2026-04-08 12:40:05.360659: KrakenAPI: Waiting for API to start
2026-04-08 12:40:06.303907: Kraken: Export tariff discovered on account [REDACTED] — E-1R-NEXT_FLEX_EXPORT_V1-M
2026-04-08 12:40:06.303994: Kraken: Tariff discovered — E-TOU-NEXT_SMART_SAVER_FIXED_12M_V8-M (product NEXT_SMART_SAVER_FIXED_12M_V8)
2026-04-08 12:40:06.378255: Warn: Kraken: Rates HTTP 404 for https://api.eonnext-kraken.energy/v1/products/NEXT_SMART_SAVER_FIXED_12M_V8/electricity-tariffs/E-TOU-NEXT_SMART_SAVER_FIXED_12M_V8-M/standard-unit-rates/
2026-04-08 12:40:06.441172: Warn: Kraken: Standing charges HTTP 404
2026-04-08 12:40:06.514678: Kraken: Fetched 1 rate periods for E-1R-NEXT_FLEX_EXPORT_V1-M
2026-04-08 12:40:06.538296: KrakenAPI: Started

Later in the logfile failure to read the missing rates

2026-04-08 12:40:14.503974: Warn: Validation of apps.yaml found configuration item 'metric_octopus_import' element sensor.predbat_kraken_[REDACTED]_import_rates returned value 'None', not a valid value
2026-04-08 12:40:14.504211: Error: Validation of apps.yaml found 1 configuration errors
...
2026-04-08 12:40:23.831896: Error: metric_octopus_import is not set correctly in apps.yaml, or no energy rates can be read
2026-04-08 12:40:23.841366: Warn: record_status Error: metric_octopus_import not set correctly in apps.yaml, or no energy rates can be read
2026-04-08 12:40:23.841438: Error: Exception raised 
2026-04-08 12:40:23.843074: Error: Traceback (most recent call last):
  File "/config/predbat.py", line 1704, in update_time_loop
    self.update_pred(scheduled=False)
  File "/config/predbat.py", line 814, in update_pred
    sensor_force_replan = self.fetch_sensor_data()
                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/fetch.py", line 829, in fetch_sensor_data
    raise ValueError
ValueError
...
2026-04-08 12:45:04.297649: Warn: Octopus: No Octopus data in sensor sensor.predbat_kraken_[REDACTED]_import_rates attribute 'all_rates' / 'rates' / 'raw_today' / 'prices'
2026-04-08 12:45:04.297678: Error: metric_octopus_import is not set correctly in apps.yaml, or no energy rates can be read
2026-04-08 12:45:04.308331: Warn: record_status Error: metric_octopus_import not set correctly in apps.yaml, or no energy rates can be read
2026-04-08 12:45:04.308403: Error: Exception raised 
2026-04-08 12:45:04.310325: Error: Traceback (most recent call last):
  File "/config/predbat.py", line 1781, in run_time_loop
    self.update_pred(scheduled=True)
  File "/config/predbat.py", line 814, in update_pred
    sensor_force_replan = self.fetch_sensor_data()
                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/fetch.py", line 829, in fetch_sensor_data
    raise ValueError
ValueError

Activity

  1. skunkworxdark commented on Apr 10, 2026

    @skunkworxdark
    Author

    I've been doing a little research, and it seems like the Kraken portal for EON doesn't have some of the older tariffs

    Using the EON Kraken product page (https://api.eonnext-kraken.energy/v1/products/), the NEXT_SMART_SAVER_FIXED_12M_V8 is NOT present, but NEXT_SMART_SAVER_FIXED_12M_V16 is. V16 is the only smart saver variant.

    So, it seems like it is not an issue with Predbat; EON isn't fully populating their products.

  2. skunkworxdark commented on Apr 11, 2026

    @skunkworxdark
    Author

    Update for v8.36.3 - with the #3776 fix.

    I was hoping this might fix the tariff rate retrieval issue I had been seeing. However it is still failing to get the rates for my EON tariff.

    Log file:

    2026-04-11 14:55:41.366186: Initialising Kraken Energy (EDF/E.ON) interface
    2026-04-11 14:55:41.366238: Kraken: Export account configured — [REDACTED] MPAN auto
    2026-04-11 14:55:41.366325: Initialising Axle Energy interface
    2026-04-11 14:55:41.366452: Starting Kraken Energy (EDF/E.ON) interface
    2026-04-11 14:55:41.366499: Creating task: <coroutine object ComponentBase.start at 0x7f0d955c01a0>
    2026-04-11 14:55:41.366965: KrakenAPI: Waiting for API to start
    2026-04-11 14:55:42.377878: Kraken: Export tariff discovered on account [REDACTED] — E-1R-NEXT_FLEX_EXPORT_V1-M
    2026-04-11 14:55:42.377963: Kraken: Tariff discovered — E-TOU-NEXT_SMART_SAVER_FIXED_12M_V8-M (product NEXT_SMART_SAVER_FIXED_12M_V8)
    2026-04-11 14:55:42.472068: Warn: Kraken: Rates HTTP 404 for https://api.eonnext-kraken.energy/v1/products/NEXT_SMART_SAVER_FIXED_12M_V8/electricity-tariffs/E-TOU-NEXT_SMART_SAVER_FIXED_12M_V8-M/standard-unit-rates/
    2026-04-11 14:55:42.472929: Kraken: REST rates returned HTTP 404, falling back to GraphQL applicableRates for MPAN 2363820829312
    2026-04-11 14:55:42.552785: Warn: Kraken: GraphQL HTTP 400 for applicable-rates-graphql
    2026-04-11 14:55:42.627952: Warn: Kraken: Standing charges HTTP 404
    2026-04-11 14:55:42.708945: Kraken: Fetched 1 rate periods for E-1R-NEXT_FLEX_EXPORT_V1-M
    2026-04-11 14:55:42.730400: KrakenAPI: Started
    
    ...
    
    2026-04-11 14:55:50.576606: Warn: Validation of apps.yaml found configuration item 'metric_octopus_import' element sensor.predbat_kraken_[REDACTED]_import_rates returned value 'None', not a valid value
    2026-04-11 14:55:50.577075: Error: Validation of apps.yaml found 1 configuration errors
    2026-04-11 14:55:50.577254: --------------- PredBat - update at 2026-04-11 14:55:00+01:00 with clock skew 0 minutes, minutes now 895
    2026-04-11 14:55:50.577625: Saved current settings to /addon_configs/6adb4f0d_predbat/predbat_config.json
    2026-04-11 14:55:50.894241: Predbat /config/predbat.py repository springfall2008/batpred version v8.36.3 currently running, latest version is v8.36.3, latest beta is v8.36.3
    2026-04-11 14:55:50.894309: Autoupdate: Currently up to date
    2026-04-11 14:55:50.928596: Configuration: forecast_hours 30, num_cars 0, debug enable is False, calculate_plan_every 10 minutes
    2026-04-11 14:55:50.929011: Predbat mode is set to Monitor
    2026-04-11 14:55:50.929079: Info: Read-only mode is enabled, the inverter controls will not be used!!
    2026-04-11 14:55:51.901838: Found 11521 load_today datapoints going back 7 days
    2026-04-11 14:55:51.901923: Using load_power data to fill gaps in load_today data
    2026-04-11 14:56:01.298628: Processing 385 30-minute periods for power integration
    2026-04-11 14:56:03.008554: Car charging hold True, threshold 6.0kWh
    2026-04-11 14:56:03.008616: Current data so far today: load 5.36kWh, import 0.6kWh, export 0.12kWh, PV 8.8kWh
    2026-04-11 14:56:03.008666: Warn: Octopus: No Octopus data in sensor sensor.predbat_kraken_[REDACTED]_import_rates attribute 'all_rates' / 'rates' / 'raw_today' / 'prices'
    2026-04-11 14:56:03.008694: Error: metric_octopus_import is not set correctly in apps.yaml, or no energy rates can be read
    2026-04-11 14:56:03.018187: Warn: record_status Error: metric_octopus_import not set correctly in apps.yaml, or no energy rates can be read
    2026-04-11 14:56:03.018242: Error: Exception raised 
    2026-04-11 14:56:03.023952: Error: Traceback (most recent call last):
      File "/config/predbat.py", line 1704, in update_time_loop
        self.update_pred(scheduled=False)
      File "/config/predbat.py", line 814, in update_pred
        sensor_force_replan = self.fetch_sensor_data()
                              ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/fetch.py", line 829, in fetch_sensor_data
        raise ValueError
    ValueError
    
    2026-04-11 14:56:03.034286: Warn: record_status Error: Exception raised 
    
  3. mkwan5 commented on Apr 25, 2026

    @mkwan5

    Still reproducible in v8.37.4 – persists after split‑account history
    I can confirm this is still occurring in Predbat v8.37.4.
    System background:

    Previously configured with split import/export Kraken accounts
    Export account has since been fully removed
    export_enable: false explicitly set
    Predbat fully restarted after all config changes

    Current behaviour (even with import‑only Kraken):
    Warn: Kraken: Auth not available for find-tariffs
    Warn: KrakenAPI: run() returned False

    This does not appear to be related to credentials or YAML formatting. It also persists after disabling export, which suggests that systems which have ever run in split‑account mode may still enter a state where no valid auth token is available at find‑tariffs time, even when operating import‑only later.
    For context, this looks like the same failure mode previously discussed in #3681 and #3733, but still present in the latest release.
    Happy to provide logs or test any changes if helpful.

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions