#Calculating power used by 2 ev’s

1 messages · Page 1 of 1 (latest)

edgy token
#

I’m trying to find a way to track the power charged into my ev based on the power of the charger in “W” ,my al in energy price and a button pres to start the automation.

The ideal situation would be that I had 2 buttons on my screen to start the charge for 1 of my Ev’s and calculate a total cost based on wich button is pressed(button 1= ev 1 , button 2= ev2)After the charger gives the disconnected signal there schools be a log to get al the charged data per car in a excel or something that I can exces/get in a notification on the fietst of the month.

Is this something that is possible? Kinda new to home asist and lost in al the possibilities…..

fathom pawn
#

you're describing 3 or 4 different things

#

tracking energy consumption you can do in the energy dashboard

#

if you have the SOC% of your car, then you could calculate with a template how much it would cost to charge from SOC% to 100%

#

I recommend to start simple and just build out from there

rocky rain
#

"power charged" does not exist. It's the "power charging" or the "energy charged" 🙂

What device / integration is giving you that power value? It does not provide an entity for energy? As thatś always more accurate. If not, you could use an integral helper (type: left) to calculate the energy.

Once you have an entity which has the energy, you could make a utility meter helper with 2 "tariffs", one for each car. That will add a sensor per car and a select entity to indicated which utility meter sensor is active (aka, the car thatś charging). Now you can make two buttons that do a call to select.select_option to select the right car.

edgy token
#

I get a value in kWh and in W direct from the charger. problem with the kWh would be that that doesn’t reset after stoping the charge, it only resets at 00:00. so when charging them after each other they as al there energy charged (thanks for the info!) into one big pile

waxen haven
#

As Septillion was alluding to, I think that the best way to achieve this would be using the utility_meter integration. You would set up a meter that takes the single charger as the "source" for the energy used (you can set this up as daily resetting to account for the midnight reset). You'd set one of your "tariffs" to Car A, the other to Car B. This would give you an entity for energy consumption for each car. Then you would make an automation to switch between the cars using your proposed button solution (or if you want to get fancy you could use image/license plate/colour recognition to automatically change using a camera in your garage).

Home Assistant

Instructions on how to integrate the Utility Meter into Home Assistant.

edgy token
#

thanks for the help!

abstract linden
#

Give evcc a go. It seems to do everything you’re describing. Plus it integrates with HA over MQTT, or via its own third party integration.

https://evcc.io/en