Comments (5)
Thanks very much - I've taken one of your examples and added it as a test case to re-create your error and added extra safeguards around the code in this area.
This is now released as v1.9.1 if you'd like to give it a go! Let me know if it solves your problem and then we can close this off 🙂
from teslamateagile.
Hi @brombomb thanks for the error logs and zip very useful!
It seems that your charge was very very short so much so that there wasn't actually any records in the database where the charger current and voltage was recorded.
Would you mind sending me over the relevant data from the charges table as well as the charging_processes table? As a CSV would be perfect if you don't mind! Then I can see exactly what happened and add some code to at least prevent it throwing an error in this scenario.
To workaround this issue, you can manually set the cost for the charge to 0 in the database to stop TeslaMateAgile from trying to calculate it.
from teslamateagile.
Here is a list of all the charges associated with the charging processes from the zip/csv above. Not all of these were errors but I included them because I couldn't tell at a glance what the common issue/thread was. If you need more data I'm happy to supply more rows.
from teslamateagile.
Looks good to me. No more errors in my logs! Thanks for the quick fix.
from teslamateagile.
Awesome! Thanks for trying it out 🙂
from teslamateagile.
Related Issues (20)
- Costs not calculated after upgrade to 1.8.0 HOT 6
- Specifying an invalid GeofenceID does not throw errors HOT 4
- Configured geofence 'Home' (id: 1) has a cost per unit set which will prevent TeslaMateAgile from working properly HOT 5
- Entsoe transparency API provider support HOT 4
- Very short top-up charges don't get costed. HOT 5
- Provider feature request : EDF Tempo French Provider HOT 3
- Error calculating costs with Tibber provider HOT 3
- Feature Request: Octopus Intelligent HOT 7
- UTC time issue HOT 4
- 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
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.