Not sure how to explain it exactly, but let me try…
I have 3 devices:
-Tesla car (logging charging start/stop)
-Volco car (logging charging start/stop)
-Wallbox charger (logging start/stop/charged amount/energy price per KWH (changes per hour)
Now, since the wallbox is not logging which car is charging, I want to basically to create something like a sensor (can be per car) which logs charging sessions per car and calculates the energy price for that charging session from the wallbox data and then logs that in a way that I can create a monthly report.
I’m not sure if this is possible but if you have great ideas, let me know
Hi, if you wallbox shows a sensor for the current power output (watt), it can be done with a few helpers, but if not, then I do not know.
Helper1 overview: template sensor: Tesla Power
if tesla is charging and wallbox_power > 0
use wallbox power
else
0
Helper2 overview: template sensor: Volvo Power
if volvo is charging and wallbox_power > 0
use wallbox power
else
0
Helper3: Riemann sum integral sensor: Tesla Energy
Use helper1 as input with Prefix k and Left Riemann sum
Helper4: Riemann sum integral sensor: Volvo Energy
Use helper2 as input with Prefix k and Left Riemann sum
Helper3&4 can then be added to energy dashboard for nice stats/graphs
And oc, this will only work if you ONLY charge one at a time. If you sometimes charge both, you would need some additional logic to split the power between helper1&2.