Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
456 stars 89 forks source link

Daily Energy consumption #870

Open cazzoo opened 7 months ago

cazzoo commented 7 months ago

I'm tracking my both kia EV & PHEV cars and I wonder if we could implement a daily energy consumption (both KWH and fuel). Indeed, I'm trying to add my EV consumption in HA Energy tab but right now the only sensor is a mean value of the total KWH/km. This is not relevant.

Describe the solution you'd like Have a sensor tracking daily use of the electricity used by the car.

Include the logs of the end point from Data in HA if this is a sensor ?

ZuinigeRijder commented 2 months ago

You can use hyundai_kia_connect_monitor.

cazzoo commented 2 months ago

Cool but seems overkill for what I was looking to do. It seems there's no better way to handle it. Thanks for the link anyway

Triple-S commented 1 month ago

The data should already be provided by the integration via the daily driving stats sensor - It might be not available for specific regions, but for EU it is. In that case you just need a sensor extracting the consumtion of the current day from the attributes of the driving stats sensor which can be achieved by a template sensor:

{% set attr = state_attr("sensor.[vehicle]_daily_driving_stats", now().strftime("%Y-%m-%d")) %}
{{ attr["total_consumed"]|int(0) if attr != None else 0 }}

But you should keep in mind that these are the consumtion values from Bluelink which are more than unrealistically low for some reason.

cazzoo commented 1 month ago

That's an interesting sensor to put in place, let me try. Thanks for the hint