Git Product home page Git Product logo

Comments (5)

erlingjd avatar erlingjd commented on August 17, 2024 1

Thank you! All short charges are now calculated

from teslamateagile.

MattJeanes avatar MattJeanes commented on August 17, 2024

Yeah so this is also a limitation in TeslaMate itself as the code is pretty much ported directly from there, A possible way to work around this would be to provide a way to manually specify the amount of phases in the config, then it will calculate them for everything hopefully. Will keep this issue open to track implementation of this, and also open to any suggestions for better ways to do it.

from teslamateagile.

erlingjd avatar erlingjd commented on August 17, 2024

I have a similar issue with longer charges not able to determine phases:

2023-04-11 07:06:25.251 info: TeslaMateAgile.PriceHelper[0]
Looking for finished charging processes with no cost set in the 'Hjemme' geofence (id: 1)
2023-04-11 07:06:25.294 info: TeslaMateAgile.PriceHelper[0]
Calculating cost for charges 04/10/2023 22:05:23 UTC - 04/11/2023 03:17:55 UTC
2023-04-11 07:06:25.714 warn: TeslaMateAgile.PriceHelper[0]
Unable to determine phases for charges
2023-04-11 07:06:25.714 info: TeslaMateAgile.PriceHelper[0]
Calculated cost 0 and energy 0 kWh for charging process 468

But sometimes it works and I haven't figured out why:

2023-04-10 14:06:23.316 info: TeslaMateAgile.PriceHelper[0]
Calculating cost for charges 04/10/2023 09:32:11 UTC - 04/10/2023 12:01:17 UTC
2023-04-10 14:06:23.756 info: TeslaMateAgile.PriceHelper[0]
Phase correction: 2 -> 3
2023-04-10 14:06:23.765 info: TeslaMateAgile.PriceHelper[0]
Calculated cost 6.68 and energy 9.81 kWh for charging process 466

Any suggestions?

from teslamateagile.

erlingjd avatar erlingjd commented on August 17, 2024

I also have this error from the Tibber API sometimes:

2023-04-11 06:06:25.227 info: TeslaMateAgile.PriceHelper[0]
Calculating cost for charges 04/10/2023 22:05:23 UTC - 04/11/2023 03:17:55 UTC
2023-04-11 06:06:26.091 fail: TeslaMateAgile.PriceHelper[0]
Failed to calculate charging cost / energy for charging process 468
System.Exception: Mismatch of requested price info from Tibber API (expected: 7, actual: 6)
at TeslaMateAgile.Services.TibberService.GetPriceData(DateTimeOffset from, DateTimeOffset to) in /src/TeslaMateAgile/Services/TibberService.cs:line 105
at TeslaMateAgile.PriceHelper.CalculateChargeCost(IEnumerable`1 charges) in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 86
at TeslaMateAgile.PriceHelper.Update() in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 79

If these happen, they are OK the next time TeslaMateAgile is Looking for finished charging processes with no cost set and doesn't seem to affect the error in my previous post

from teslamateagile.

MattJeanes avatar MattJeanes commented on August 17, 2024

v1.12.0 is now released with a new TeslaMate__Phases setting which will allow these short charges to be calculated 🙂

from teslamateagile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.