From 533e4c0a232b402f4ea8841ca9dbe3bb178fbfb0 Mon Sep 17 00:00:00 2001 From: Lauri Andler Date: Fri, 30 Oct 2020 13:05:23 +0200 Subject: [PATCH] Fix unit of measurement for charge added shown in overview, documentation to be correct (#1061) * Fix units of charge energy added to be correct The name of the measurement didn't make sense, since it is plotting added energy but was using an unit of power (kW). Changed to make sense. * Fix unit of energy added Documentation was using the wrong unit for energy added, fixed. * Fix unit of energy added Documentation was using unit of power (kW) for measuring energy added. Fixed to use the correct unit (kWh) --- grafana/dashboards/overview.json | 2 +- website/docs/integrations/home_assistant.md | 2 +- website/docs/integrations/mqtt.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grafana/dashboards/overview.json b/grafana/dashboards/overview.json index 389d65fa..92adb186 100644 --- a/grafana/dashboards/overview.json +++ b/grafana/dashboards/overview.json @@ -1101,7 +1101,7 @@ "group": [], "metricColumn": "none", "rawQuery": true, - "rawSql": "SELECT\n $__time(date),\n charger_power as \"Power [kW]\",\n charger_actual_current as \"Current [A]\",\n c.charge_energy_added as \"kW Added\"\nFROM\n charges c\njoin\n charging_processes p ON p.id = c.charging_process_id \nWHERE\n $__timeFilter(date) and\n p.car_id = $car_id\nORDER BY\n date ASC", + "rawSql": "SELECT\n $__time(date),\n charger_power as \"Power [kW]\",\n charger_actual_current as \"Current [A]\",\n c.charge_energy_added as \"kWh Added\"\nFROM\n charges c\njoin\n charging_processes p ON p.id = c.charging_process_id \nWHERE\n $__timeFilter(date) and\n p.car_id = $car_id\nORDER BY\n date ASC", "refId": "B", "select": [ [ diff --git a/website/docs/integrations/home_assistant.md b/website/docs/integrations/home_assistant.md index cbbca286..66b10c48 100644 --- a/website/docs/integrations/home_assistant.md +++ b/website/docs/integrations/home_assistant.md @@ -101,7 +101,7 @@ tesla_location: - platform: mqtt name: tesla_charge_energy_added state_topic: "teslamate/cars/1/charge_energy_added" - unit_of_measurement: "kW" + unit_of_measurement: "kWh" icon: mdi:battery-80 - platform: mqtt diff --git a/website/docs/integrations/mqtt.md b/website/docs/integrations/mqtt.md index b147f80c..3a030dfc 100644 --- a/website/docs/integrations/mqtt.md +++ b/website/docs/integrations/mqtt.md @@ -55,7 +55,7 @@ Vehicle data will be published to the following topics: | `teslamate/cars/$car_id/battery_level` | 88 | Battery Level Percentage | | `teslamate/cars/$car_id/usable_battery_level` | 85 | Usable battery level percentage | | `teslamate/cars/$car_id/plugged_in` | true | If car is currently plugged into a charger | -| `teslamate/cars/$car_id/charge_energy_added` | 5.06 | Last added energy in kW | +| `teslamate/cars/$car_id/charge_energy_added` | 5.06 | Last added energy in kWh | | `teslamate/cars/$car_id/charge_limit_soc` | 90 | Charge Limit Configured in Percentage | | `teslamate/cars/$car_id/charge_port_door_open` | true | Indicates if the charger door is open | | `teslamate/cars/$car_id/charger_actual_current` | 2.05 | Current amperage supplied by charger |