Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enter cost per kWh to more than 2 decimal places #1540

Closed
bigjools opened this issue Apr 14, 2021 · 5 comments
Closed

Cannot enter cost per kWh to more than 2 decimal places #1540

bigjools opened this issue Apr 14, 2021 · 5 comments
Labels
area:teslamate Related to TeslaMate core note:good first issue Good for newcomers Stale

Comments

@bigjools
Copy link

Describe the bug

When entering a cost per kWh in the charge-cost page, I need to use 4 decimal places as my supplier charges in fractions of cents. For example, if I enter 0.1446, it responds with:
Please enter a valid value. The two nearest valid values are 0.14 and 0.15.

Expected behavior

I should be able to precisely enter my charge cost rates.

How to reproduce it (as minimally and precisely as possible):

  1. Go to a charge session
  2. Click on "cost" to set the cost
  3. Set the drop-down to per-kwh and enter the cost to more than 2 decimal places
  4. See error

Relevant entries from the logs

Screenshots
image

Environment

  • TeslaMate version: 1.21.6
  • Type of installation: Docker
  • OS TeslaMate is installed on: Ubuntu
  • User OS & Browser: Ubuntu / Chrome
  • Others:
@bigjools
Copy link
Author

This is possibly related to #1064

@adriankumpf adriankumpf added the note:good first issue Good for newcomers label Apr 16, 2021
@Ed-M72
Copy link
Contributor

Ed-M72 commented Apr 29, 2021

@bigjools - Would you mind upgrading and testing with 1.22.0 please. In my testing v1.22.0 has the ability to save to 4 decimal places.

image

@bigjools
Copy link
Author

Sadly not working, it still has the same error.

@bigjools
Copy link
Author

Ok I see where the problem is - you can set this to 4 places on the geofence page, but not when you click through from the charges cost link in the Grafana dashboard.

@adriankumpf adriankumpf added the area:teslamate Related to TeslaMate core label Oct 1, 2021
@Dulanic Dulanic added the Stale label Nov 12, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@AkshayRao27
Copy link

When responding to #4454, I remembered that this ticket existed and wanted to ask if this is something that can be reconsidered.

Some charging providers have minute-based prices that have three decimals. These prices are valid throughout Austria, and sometimes, even in other countries. An example of such a provider is WienEnergie, the Energy Provider for the city of Vienna:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:teslamate Related to TeslaMate core note:good first issue Good for newcomers Stale
Projects
None yet
Development

No branches or pull requests

5 participants