BottlecapDave / HomeAssistant-OctopusEnergy

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

Query Over Rates #38

Closed BlueMoon23 closed 2 years ago

BlueMoon23 commented 2 years ago

Hi,

Thanks for working on this, I installed it using HACS and have got each of the entities, but have a query.

When I put the two electricity entities into HA's Developer page I get the figures for the Octopus Outgoing Rate (i.e. the cost of what I export to the grid), not the incoming rate (i.e. the cost I am charged).

For example sensor.octopus_energy_electricity_current_rate is giving me 0.1851, when I check my Octopus account, that is the outgoing rate, the import tariff should be 0.3500 at this time (6 Feb 1600-1630).

Am I doing something wrong, or do I have to do anything else to get the correct rates?

BottlecapDave commented 2 years ago

Hi there, sorry for the late response - Work life is busy at the moment.

You're not doing anything wrong. I currently only look at the first rate, which was fine but I didn't account for how exported data would be reported. There is currently an open PR that is meant to resolve this issue, however I haven't had the time to look at it, and is a bit more delicate as it will cause a breaking change.

I hope to within the next couple of weeks, sorry for the delay.

BottlecapDave commented 2 years ago

This should now be resolved in the latest update. Please check the changelog before you install as there's some breaking changes.

BlueMoon23 commented 2 years ago

Hi, Thanks for updating. I have looked at the entities and they look to be working for me.

BottlecapDave commented 2 years ago

Glad to hear it's working for you.