BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
612 stars 61 forks source link

Flux Peak Rate not reporting correct value #666

Closed jwt99412 closed 10 months ago

jwt99412 commented 10 months ago

Describe the bug

Since swapping over from fixed to Flux Import and Export, I have noticed that the peak import rate value is being reported as 0.34 p/kWh rather than 0.391 p/kWh (correct up to 31/12). All the other rates are as per the rate tariff published by Octopus. I appreciate you may just be reporting data sent to you by Octopus so it might be something at their end. Screenshot 2024-01-01 at 14 48 01

Reproduction steps

As per the screenshot look at the history plot for the current rate. This anomaly is reproduced in the previous and next rate sensors also.

Expected behaviour

Expect the current rate to track the published Octopus tariff.

Tariff Code

sensor.octopus_energy_electricity_15k0018408_1012419776440_current_rate

Integration Version

9.2.1

Home Assistant Version

2023.12.3

Fresh Install?

After upgrading

Home Assistant Logs

I don't have any logs but if necessary I could enable debug logging. However this appears to be an issue which persists so not sure there is an event other than the rate should change to the peak rate value at 4:00pm and change back to the mid rate at 7:00pm

Confirmation

BottlecapDave commented 10 months ago

Hello. Can you please submit your tariff in the form of E-1R-xxx so I can take a closer look? Also have you previously set any pricing caps which might be doing this? This can be confirmed by looking at the attributes of your current rate sensor during the period which will be true if a manual pricing cap has been set.

jwt99412 commented 10 months ago

Screenshot 2024-01-02 at 10 36 13 Sorry didn't know how to get the correct tariff string but it is in here. There seems to be a price cap defined but I haven't explicitly set it. Maybe I have just swapped over from the standard flexible tariff and it is a hold over. I have the Octopuswatch app on my phone and it correctly shows the peak rate as 40.9p/kWh (as of 1 Jan)

jwt99412 commented 10 months ago

After re reading your comment above I went back to the configuration of the integration and found the optional caps in there. I don't recall setting them up in there myself. Should I blank them to remove the cap?

jwt99412 commented 10 months ago

Screenshot 2024-01-02 at 10 55 36 price cap removed and it is now showing the correct maximum in the attribute. Thanks for the pointer I am new to all this. I will close the thread :)

BottlecapDave commented 10 months ago

Glad this was the issue. You would have set them yourself (they're blank by default), but it was probably over a year ago :)