Comments (5)
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.
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.
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.
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.
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)
- Multiple providers? HOT 2
- Feature request? Generic input of dynamic pricing HOT 2
- Calculation fails when the end time of a charge is very close to the beginning of the hour HOT 3
- Unable to calculate cost of some charges HOT 11
- Create REST endpoint to get price at specific datetime HOT 3
- Failed to update prices - System.ArgumentException: totalHours HOT 6
- Failed to calculate charging cost / energy for charging process HOT 6
- Enhancement / Feature Upgrade - integration of EMS evcc HOT 2
- Unable to download docker image HOT 2
- Feature request - Make available in Home Assitant hassio HOT 15
- Feature request: Day of week in FIxedPricing
- Updating price from Home Assistant fails because "The input string 'unavailable' was not in a correct format." HOT 3
- Tibber "Failed to calculate charging cost" HOT 8
- Feature Request: Fixed Pricing Based on Day of Week HOT 2
- TeslaMateAgile.PriceHelper Tibber fails HOT 6
- No data available if multiple homes exist HOT 10
- Feature request: monitoring multiple geofence IDs HOT 3
- Help needed: "number-based entity" in HomeAssistant clarification HOT 4
- TeslaMateAgile.PriceHelper Tibber fail HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamateagile.