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

Changed export tariff but the integration has not detected this change #1184

Open
2 tasks done
gcoan opened this issue Jan 22, 2025 · 2 comments
Open
2 tasks done

Changed export tariff but the integration has not detected this change #1184

gcoan opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@gcoan
Copy link
Contributor

gcoan commented Jan 22, 2025

Describe the bug

Today I moved from Octopus Fixed Export to Octopus Agile Export.

In my Octopus account I can see the change and new tariff, in the OctoAid app I see the new tariff, and when I query the account API I can see the new tariff:

Image

According to the documentation https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/faq/ the account details are polled every 60 minutes so I was expecting the export tariff to change automatically (certainly when I moved from Flux to Agile about 15 months ago it all was reflected in HA automatically).

The export rates event is firing regularly but the tariff details are still reflecting my old tariff despite waiting about 5 hours for the change to take effect, but the start and end dates on the current export tariff make no sense, they don't match the API results at all:

Image

image

It has been suggested that I restart HA and to kick the integration into picking up the new details but I shouldn’t have to do this, it should be automatic.

Reproduction steps

Change outgoing tariff from Fixed to Agile outgoing

Check HA export_current_rate entity and events

Expected behaviour

New tariff automatically retrieved by the integration and made available via the normal entities without any user intervention being required

Tariff Code

E-1R-AGILE-OUTGOING-19-05-13-A

Integration Version

13.5.3

Home Assistant Version

2025.1.2

Fresh Install?

Not specified

Home Assistant Logs

Debug log:

home-assistant_octopus_energy_2025-01-22T19-00-37.822Z.log

Confirmation

  • I confirm that I cannot find my solution within the documentation
  • I confirm that I cannot find my solution within the FAQ
@gcoan gcoan added the bug Something isn't working label Jan 22, 2025
@gcoan
Copy link
Contributor Author

gcoan commented Jan 22, 2025

Update: Left it a few more hours and the new tariff still wasn’t being pulled through.

Turned debug mode on, reloaded the integration, and after about another 20 minutes the rates had then been loaded correctly.

Additional debug file for reloading the integration

home-assistant_octopus_energy_2025-01-22T22-48-24.902Z.log

@BottlecapDave
Copy link
Owner

Hello and sorry you've encountered this issue. The background updating of the accounts only seem to be occuring in certain scenarios, but I believe I know the reason/fix. Thank you for supplying the logs, as this should help further diagnose. I'm surprised the tariff didn't update straight away upon reload, but it might have used the cached account info instead of the fresh info. Will also look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants