-
Notifications
You must be signed in to change notification settings - Fork 747
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
Always show 0% and 100% on state of charge diagram #980
Conversation
grafana/dashboards/charge-level.json
Outdated
@@ -167,8 +167,8 @@ | |||
"format": "percent", | |||
"label": "Charge Level", | |||
"logBase": 1, | |||
"max": null, | |||
"min": null, | |||
"max": 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be "100" (with the quotes) - when editing in Grafana directly it also makes quotes around the numbers...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 170 and 171: the numbers should be with quotes.
This affects: - the charge level panel the overview dashboard - the charge level dashboard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
In the beginning of recording data with teslamate it's likely that the SoC hasn't gone down close to 0. However the minimum value in the diagram is determined by the minimum SoC recorded in TeslaMate. The resulting diagram is arguably misleading.
This PR fixes that by fixing the minimum and maximum values for the SoC diagram to 0 and 100 respectively.
Caveat: I didn't test this change.