mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
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)
This commit is contained in:
@@ -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": [
|
||||
[
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user