-
Notifications
You must be signed in to change notification settings - Fork 9
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
Problem going from Octopus Agile to Go #18
Comments
You look to only have one underscore in the environment variable for EnergyProvider so TeslaMateAgile is defaulting to Octopus Agile integration, it should be |
Additionally the prices configuration should wrap all the way around 24 hours so set that last one to 00:00 instead of 23:59 🙂 |
So it was just luck that it worked previously ;-) |
I wasn't sure |
Thanks Matt, closed due to poor eyesight |
Glad I could help! As an additional tip you only actually need 2 price configurations for this scenario as the times can go beyond midnight, in your case it could be: - FixedPrice__Prices__0=23:30-20:30=13.8
- FixedPrice__Prices__1=20:30-23:30=4.5 It will work perfectly fine how you have it now just an fyi 🙂 |
I tried that originally, but it wasn't working for the lack of an underscore |
OK, something's gone horribly wrong, i get the cost calculation returning the following:
Which gives an effective rate of 7.467/kWh That's using:
|
Hmm, I'm assuming this is probably a timezone issue (https://xkcd.com/1883/ 😁) The charging times there are marked as UTC, which would make them 20:46 -> 23:02 BST, which makes the charge completely within the range of the 4.5p/kWh cost but it looks like it's calculating it as if your cost is 19:46 -> 22:02 BST which would result in approximately that cost. Would you be able to export the relevant data from the charging_processes and charges tables for this charging session and send it to me? Check out the troubleshooting section of the README for a little more info on how to access the database if you're not sure. I also noted in this comment how to do it as well #17 (comment) There is no personal information in those tables as location data for example is stored in a different table but be sure to read the output before sending it over just in case! I'll use the data to replicate the issue and prepare a fix, and if you're happy include it in the unit tests for this project. |
Sent, more than happy to help/give back to the community |
Thank you very much! I have tracked down the issue and fixed it, now released with version v1.5.1 Please update your TeslaMateAgile, and set the With your provided data I calculated a cost of 75.5p with 16.78kWh of energy, which comes out to 4.5p/kWh. Let me know how it goes, fingers crossed everything works perfectly! |
Thanks Matt, tested and all working Thanks for your great work and support |
That's great to hear! By the way I'll be publishing another new version shortly as all of this has reminded me to upgrade to .NET 5! |
Hi Matt,
I was on Octopus Agile which worked correctly, I've now moved to Go Faster.
I have edited the yml as follows:
but I receive the following error:
If I add in the region_code field I previously had then the pricing is derived from the Octopus API lookup ignoring the FixedPrice option.
Thanks
The text was updated successfully, but these errors were encountered: