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
428 stars 85 forks source link

Charging state: charging / not charging #947

Open traxata opened 3 days ago

traxata commented 3 days ago

I appreciate that the 2024 vehicles are in a bit of a limbo state feature wise at the moment but I am wondering if there's an entity in the API that shows a binary state for if your vehicle is charging or not? I have one for plugged in and if anything is connected to the charge port but I would like to know if the vehicle is charging as I have a bunch of home batteries that are set up with automations based on if certain things are charging or not. I have this set up with my old vehicle (polestar 2), portable ecoflow batteries (charging via CCS2 connectors) and a Renault Zoë. My logic is checking to see if the Ohme wall charger is charging and then what device it is charging before doing anything.

This allows me to do safety checks (to make sure no one is charging who shouldn't be) and also trigger pauses and unpauses to charging for Intelligent Octopus Energy smart tariffs based on cheap electricity slots.

So basically all I'm looking for is a charging Yes / no sensor state anything else is a bonus but not needed for my use cases :)

erelke commented 3 days ago

binary_sensor.**_ev_battery_charge

cdnninja commented 3 days ago

What data shows for you today?

cdnninja commented 3 days ago

Also please check your data sensor for extended attributes to see if something in that answers this. If so can easily expose it.

traxata commented 2 days ago

Screenshot_20241017-064452 I do not have an EV battery charge with the EV9.

Will try and check if there's any extended that I'm missing by default

traxata commented 2 days ago

I see that

HyundaiKiaBinarySensorEntityDescription( key="ev_battery_is_charging", name="EV Battery Charge", is_on=lambda vehicle: vehicle.ev_battery_is_charging, device_class=BinarySensorDeviceClass.BATTERY_CHARGING, ),

Exists in the binary sensors.py but I don't have that sensor showing through to me in the entity in HA