Replies: 4 comments
-
Great idea. I am moving this to Discussions/Ideas as it is not an "issue" in GitHub sense.
You would need to consider how to hide these for those without lease vehicles. Maybe a flag in teslamate/settings for a lease that then shows end mileage. Grafana tiles would then be shown or hidden based upon the settings flag. Edit: rereading your post, I see you thought about that 😊 give the code build a go and it will be reviewed! |
Beta Was this translation helpful? Give feedback.
-
Yes, please, that was what I was thinking. I don't think, it is good to have info in the e.g. dashboard, which is irrelevant for most users. What about a separate leasing dashboard? |
Beta Was this translation helpful? Give feedback.
-
I'm liking the idea but how is this different from the "Extrapolated monthly mileage" and "Extrapolated annual mileage"? This are values I use to answer the same question: Do I still have remaining milage this year / Month. And thanks to this values I can even go OVER the limit and next month be a bit conservative and lower the extrapolated milage. What is missing are fixed time ranges for that dashboard that could be related to the lease parameters. |
Beta Was this translation helpful? Give feedback.
-
I have also created my own "Leasing Mileage Tracker". The Lease Deviation (in the example below it is -398km) tells you how much your car's actual mileage differs from the mileage your lease agreement expected it to have at this point in time. It's essentially a measure of whether you're driving more or less than your lease allows. Or in other words: A Lease Deviation of -398km means you've driven 398 kilometers less than your lease agreement projected you should have driven by this point. So, you're currently under your expected mileage. This is generally a good thing, as it gives you a buffer for the remaining lease term. You need to create two dashboard level variables:
Query for the chart is the following:
Query for the stat panel is this:
|
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
What happened?
As many Tesla drivers, at least in Netherlands, are leasing the car with a contract for X years and Y km per year, it'd be nice to add the max odometer value for today in the overview, together with the remaining km "balance" left on the car for today, to quickly see if you're driving too much or can go on a long road trip without causing extra costs or having to reduce driving later on.
I've copied the main dashboard and edited it a bit to include these values based on hard-coded dates.
The idea here is to have some extra input fields in car settings, lease start date, lease end date and yearly contract limit, in my case 35000km. We can then calculate the number of years in the start/end period, calculate the max odometer value at the end of the contract and average of km per day allowed to show the max/remaining km values.
For max mileage I've used the below query (hardcoded values as that's the easiest to implement)
For remaining mileage:
In the examples I've used 1826 as number of days between March 14 2024 - March 14 2029 and 175000 as the agreed 5 year * 35000 yearly kms
If this is something that would be merged, I'm happy to build code for this and submit a PR
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.28.4
Beta Was this translation helpful? Give feedback.
All reactions