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

Chart for battery temperature #594

Closed
thueske opened this issue Dec 19, 2023 · 3 comments
Closed

Chart for battery temperature #594

thueske opened this issue Dec 19, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@thueske
Copy link

thueske commented Dec 19, 2023

hello,

With the VW ID integration for homeassistant, it is now possible to display a sensor for the temperature of the HV battery.

https://github.com/mitch-dc/volkswagen_we_connect_id/pull/224/files

Is it also possible to have a chart for this in Grafana?

@tillsteinbach
Copy link
Owner

Yes, this will come soon. With the latest version the data is already being collected in the database.

@claesto
Copy link

claesto commented Jan 15, 2024

@thueske you can already add it if you want. I have this for my battery temperature graph:

SELECT
    "carCapturedTimestamp",
    "temperatureHvBatteryMin_K",
    "temperatureHvBatteryMax_K"
FROM
    battery_temperature
WHERE
    vehicle_vin = '$VIN'
ORDER BY
    "carCapturedTimestamp" DESC

Or use the following code if you'd like the temperatures to be in degrees Celsius instead of Kelvin.

SELECT
    "carCapturedTimestamp",
    ("temperatureHvBatteryMin_K" - 273.15) AS "temperatureHvBatteryMin_C",
    ("temperatureHvBatteryMax_K" - 273.15) AS "temperatureHvBatteryMax_C"
FROM
    battery_temperature
WHERE
    vehicle_vin = '$VIN'
ORDER BY
    "carCapturedTimestamp" DESC

Of course, yours will be overwritten once the dashboard is updated to include it from the source, but you can make a copy of it so it remains there (or you can use the new one once it's added of course)

@tillsteinbach tillsteinbach added the enhancement New feature or request label Mar 1, 2024
@tillsteinbach tillsteinbach self-assigned this Mar 1, 2024
@tillsteinbach
Copy link
Owner

Should be fixed in 0.24.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants