Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charging state: charging / not charging #947

Open
traxata opened this issue Oct 16, 2024 · 11 comments
Open

Charging state: charging / not charging #947

traxata opened this issue Oct 16, 2024 · 11 comments

Comments

@traxata
Copy link

traxata commented Oct 16, 2024

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
Copy link
Contributor

erelke commented Oct 16, 2024

binary_sensor.******_ev_battery_charge

@cdnninja
Copy link
Collaborator

What data shows for you today?

@cdnninja
Copy link
Collaborator

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

@traxata
Copy link
Author

traxata commented Oct 17, 2024

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
Copy link
Author

traxata commented Oct 17, 2024

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

@cdnninja
Copy link
Collaborator

That implies vehicle.ev_battery_is_charging isn't populated. Need to dig into your raw data from the api and look at the mapping to see why. Extended attributes show the raw data.

@traxata
Copy link
Author

traxata commented Oct 31, 2024

Ok thank you.
Screenshot_20241031-064940
Weirdly the car card shows this but I think it must be calculating that from other sensors.

I cannot seem to work out how to show the extended attributes, would you be able to point me in the right direction? Then happy to show you what it says 😅

@cdnninja
Copy link
Collaborator

cdnninja commented Nov 1, 2024

Go Developer Menu>States>select the "data" entity from this integration. It should show a list below of all sorts of data.

@cdnninja
Copy link
Collaborator

cdnninja commented Nov 1, 2024

Debug logs work for this too.

@gcor71
Copy link

gcor71 commented Nov 13, 2024

I have KONA EV and don't see a charging indicator in the integration either.
Attaching debug log file extracts for both when the car is charging and when it is not.

I am looking at this because a) I'd like to know the charging state; and, b) I can not START charging from the integration - the STOP works as expected.

Any suggestions @cdnninja ?

log.txt

@traxata
Copy link
Author

traxata commented Nov 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants