feature request: kWhDelivered/kWhCounter in WebUI, HASS status and MQTT
See original GitHub issueI’m working on a solution for a simple view of the consumed/charged kwh, preferably recorded by car/model (M3 and non tesla), just to get an overview of how much kwh each of the cars consumed in a year.
I think this fork is the closest to beginn with and fits quite good, as my idea was to integrate it in HASS anyway and/or make it available via MQTT.
I use TWCManager in a passive way, in fakemaster = 2
mode and like to capture the consumed kwh (on newer fw). As a second step I’m planing to readout part of the VIN to figure out if its a telsa or not to assign from-to charged kwh to the individual car.
is it possible to integrate kWhDelivered/kWhCounter msgpart from debug output in HASS and MQTT the same was as “total_amps_in_use”, “totalAmpsInUse” ?
22:23:40 TWCManager 1 TWC Manager starting as fake Master with id 7777 and sign 77
22:23:41 TWCManager 9 Rx@: () FD EB 25 87 00 00 03 9C 00 F6 00 F0 00 F6 00 00 00 00 00 12
22:23:41 TWCManager 1 VRS XXX: 924kWh 246V 240V 246V
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:26 (10 by maintainers)
@nean-and-i, to your last question, if a non-Tesla car is charging the result will be all zeros.
With 6365098 we add VIN polling for TWCs which support this in their firmware. When a vehicle is detected charging on a Slave TWC, we will send the command to prompt the TWC to send the first 7 bytes of the attached vehicle. If it responds, we then go on to request the next 7 bytes and finally the last 3 bytes.
This is stored as current VIN and last VIN for each Slave TWC. This is now visible in the built-in web interface, and is published via MQTT and HASS:
I am going to use this opportunity to do some work on the two Status module docs pages now to reflect all of the various published values. They are: