Git Product home page Git Product logo

Comments (5)

MattJeanes avatar MattJeanes commented on July 18, 2024 1

It certainly can, check the Optional Environment Variables section in the README for how to enable debug logging. Hopefully that'll tell you what you need.

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 18, 2024 1

Not exactly no, there are two main problems that result in slightly inaccurate data. The first problem is that the Tesla does not provide detailed charging stats for each charging session via their API.

TeslaMate itself works around this by sampling the charger status frequently and adding up all that information at the end of a charge session to calculate the total energy used and energy added. It'll be close, but never exact. It also misses the very start of a charge too due to the polling so it will also miss that little bit too.

The second problem is that there is also minor electricity losses everywhere e.g. from your electricity meter/fuse box to the charger and then to the car lost as heat and the small induced electric field around the cables and for the power the charger itself uses too. This all means even that if Tesla did provide an exact measurement of the kWh received it would still be slightly out.

I also see the same problem for example with my home battery which measures all home power usage, it always records slightly less than we see on our bill / electricity meter and that does measure more accurately.

You may be able to compensate for these losses by setting the TeslaMate__FeePerKilowattHour setting (see README) but for most people they either don't notice or don't care about the small differences. Hope that helps!

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 18, 2024

Hey, I'm not sure that TeslaMateAgile is the right fit for this kind of thing. Doing something like this would require TeslaMateAgile to constantly be aware of the current energy prices and either store it somewhere in the database which would require making schema changes which is dangerous or to have a Grafana dashboard using some kind of JSON datasource plugin to ping TeslaMateAgile directly.

This project is intended to retrieve historical data to calculate a charging cost and that's it, unfortunately it's not just a quick easy addition to do this so I'll have to close this as not planned, but thank you for raising the issue to ask!

I would recommend for your use case to set up a dashboard in Home Assistant and use an integration such as this to get and display the values: https://github.com/MTrab/energidataservice

from teslamateagile.

stauffenberg2020 avatar stauffenberg2020 commented on July 18, 2024

Hi, The reason I asked is, The TeslaMateAgile calculated cost is not matching with the bill I have received.

So, Whenever a cost calculation is done for a completed charge, Can TeslaMateAgile at least print the calculation steps on the console so that I can verify it from Portainer about the values that it is using?

from teslamateagile.

stauffenberg2020 avatar stauffenberg2020 commented on July 18, 2024

Thanks @MattJeanes, That worked.

Just out of curiosity, Are you (all) able to exactly match with the bill you are getting?

Because my provider (in the bill) always gives me a (random) higher (though small) kwh than what the car sees. And Car/TeslaMate can never see this kwh (until it is mentioned sent via the bill) to do an exact calculation of the cost.

Is it the case with each one of us and simply decided to ignore the smal difference ?

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.