Monthly charging costs for EV

Hi all,

as of yesterday I´m finally able to charge my Hyundai Kona EV in my garage at home.
I´m using a Go-E Charger as a Wallbox which has support for MQTT and luckily als has a custom compontent which makes things even easier. I can read out pretty much every sensor of the charger and I´m also able to start/stop charging.

I´m now in the need to calculate the monthly usage. I´m pretty sure this is something Home Assistant can do for me. The logic behind this should be pretty simple.
image
I do have the Total Charged sensor which comes with the custom component.
At the first day of every month I would then want to send out an email or message with the kWh used by the charger last month. So for example on April 1st I would want to receive a message with the energy use from March 1st-31st.

Ideally there should be also a second value for the costs produced. In this case I would need to multiplie the kWh used last mont with 0.287 (28,7 cents is my current energy price I pay).

I already tried using the https://www.home-assistant.io/integrations/utility_meter/ Utility Meter Integration. Unfortunately I´m only able to get the new values out of this. In this case it would mean that the 7 kWh I charged yesterday would not add up to this months consumption. For sure this wouldn´t be a dealbreaker and no problem for this month.

I configured the Utility Meter like this:

utility_meter:
  energy:
    source: sensor.goetotal
    cycle: monthly

I was just wondering if there is a smarter way to do this?

I would also like this to be very stable and not to dependent on the Home Assistant Database as I had to delete my database two time in the last year I´ve started using Home Assistant. This of course deletes all history and my guess would be that also the Utility Meter would then reset???

Thanks in advance for your help!

Anyone has an idea?

If you have total increasing data, just add it to energy dashboard, it will generate daily, weekly and monthly data for you.

Important thing is that data unit should be kwh (kilo watt hour) and sensor category should be ??? (I will let you know)

Didnt knew I had an open thread for this :grinning_face_with_smiling_eyes:
Back in the day when I searched for a solution the Energy Dashboard wasnt released and I had to search for a different solution. I actually did this with a few helpers, template sensors and Node Red Flows. Had no issues with it in the last 9 months and it was very stable.

If anyone is interested I’m happy to share it.

Will probably try and see if I can get all the things done with the energy dashboard some time in the future.

@anon63427907 Anyway, thanks for your reply!

2 Likes