Tonyslogic / tout-compare

App that compares time of use tariffs for electricity with solar and battery options
Apache License 2.0
10 stars 0 forks source link

Half hour pricing #14

Open AndrewAkinson opened 5 months ago

AndrewAkinson commented 5 months ago

Thank you for what looks like a good start on an excellent utility. From your three repositories I get the strong impression you are in Ireland. Currently there are pricing by the hour. In England the pricing is by half hour. For example Octopus GO has cheap rate from 0030 to 0430, and the Octopus Agile is by half hour slots. It would be great if the pricing structure could be enhanced to the half hour

Tonyslogic commented 5 months ago

I am indeed. Thanks for the feedback and suggestion! Which are you using? I've been concentrating on the Android app for a while now. The python AlphaESS integration is broken for example. It's not a very high priority, and there are a lot more capabilities in the Android -- you could think of the python as a proof of concept. Load profile and costs can be loaded from the python config directory to the Android app, they use the same json format.

I do want to make this applicable to more markets... After I get it working the way I want in a small market. To do this well, support from folk in those markets will be needed. I will be working on the costs later in the year.

I need to add limitations to the costs, 'fair usage' types, for cheaper 'EV' rates. I was not aware that the UK used 1/2 hr intervals. That's a bit of a change as it was a pretty early decision to balance usability and flexibility. It's encoded in the DB, the json format, and the algorithms for costing and validation. Not a problem as such, just a lot of little changes. I will look at the two together.

Right now I'm taking a break to get my garden sorted, should be back in a few weeks all going well.

AndrewAkinson commented 5 months ago

The android is currently only available in Ireland, so I cannot look at that from the play store (Not sure if the APK is available)

I did look at the code with altering it in mind, but did find it was very heavily embedded into integer hours, plus I have a limited familiarity with json. My main aim is to simulate Octopus Agile which is a tariff that varies including negative. The prices are published 12 hours in advance in half hour price slots (not verified.) Using historic data I wanted to build on what you have written to see if with a battery (and weather information for solar, later) I could write a clever way to to charge the battery, which could also be used on historic data to calculate optimum battery size. With this in mind python is probably more useful than android so that it can be integrated into things like Home Assistant and ESPhome. However, I totally understand that the android app is very useful for people that do not what to go that far, therefore probably does have more appeal to more people.

Oh yes the garden, that will be taking my time as well.

Thanks for all your hard work

Tonyslogic commented 5 months ago

No problem, it's a fun diversion when I don't let it take all my time. I will take a look at this, no promises on timeline... Two options for the Android app:

  1. Join the alpha test, I need the email address of the email used to access the play store
  2. Download and install android studio, clone the repo, build and install on a phone via adb
Tonyslogic commented 3 months ago

I have added minute pricing to the android app (V1.32) -- and pushed to alpha testing. It should provide a good insight into how the python can also be adapted, if you are still interested.