-
Notifications
You must be signed in to change notification settings - Fork 89
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
Comments
binary_sensor.******_ev_battery_charge |
What data shows for you today? |
Also please check your data sensor for extended attributes to see if something in that answers this. If so can easily expose it. |
I see that
Exists in the binary sensors.py but I don't have that sensor showing through to me in the entity in HA |
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. |
Go Developer Menu>States>select the "data" entity from this integration. It should show a list below of all sorts of data. |
Debug logs work for this too. |
I have KONA EV and don't see a charging indicator in the integration either. 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 ? |
Okay,.sorry this took so long cdnninja,
Here's a snippet from the data section about power:
Electronics:
Battery:
Auxiliary:
FailWarning: 0
Level: 88
Charging:
WarningLevel: 65
PowerStateAlert:
ClassC: 2
SensorReliability: 0
AutoCut:
PowerMode: 2
BatteryPreWarning: 0
DeliveryMode: 2
FOB:
LowBattery: 0
PowerSupply:
Accessory: 0
Ignition3: 1
Ignition1: 0
Green:
DrivingReady: 0
PowerConsumption:
Prediction:
Climate: 0
BatteryManagement:
SoH:
Ratio: 100
BatteryRemain:
Value: 144583.2
Ratio: 45
BatteryConditioning: 0
BatteryPreCondition:
Status: 0
TemperatureLevel: 7
BatteryCapacity:
Value: 359280
Electric:
SmartGrid:
VehicleToLoad:
DischargeLimitation:
SoC: 20
RemainTime: 0
VehicleToGrid:
Mode: 0
RealTimePower: 2.8
ChargingInformation:
EstimatedTime:
ICCB: 1510
Standard: 330
Quick: 52
Unit: 1
ExpectedTime:
StartDay: 7
StartHour: 31
StartMin: 63
EndDay: 7
EndHour: 31
EndMin: 63
DTE:
TargetSoC:
Standard: 439
Quick: 439
ConnectorFastening:
State: 1
SequenceDetails: 8
SequenceSubcode: 1
ElectricCurrentLevel:
State: 1
Charging:
RemainTime: 1330
RemainTimeUnit: 1
TargetSoC:
Standard: 100
Quick: 100
Setting:
CompleteAlarm:
'Off': 0
Before10min: 1
Before20min: 0
Before30min: 1
Charging is in that list but has no data... Maybe using the remaining time to indicate charge? Or a combination of that and and realtime.0ower (if that sensor is incoming power, I currently have the socket set to 12A so 2.8Kwh is about right.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: gcor71 ***@***.***>
Sent: Wednesday, November 13, 2024 2:08:08 PM
To: Hyundai-Kia-Connect/kia_uvo ***@***.***>
Cc: Ed Kirby ***@***.***>; Author ***@***.***>
Subject: Re: [Hyundai-Kia-Connect/kia_uvo] Charging state: charging / not charging (Issue #947)
Although on a different vehicle (KONA EV), I don't get a "charging" indication.
The enhanced data from KONA.data is as follows. Any pointers on what needs tweaking?
Location:
Date: '20241113124754.934'
GeoCoord:
Altitude: 0
Latitude: 50.799355
Longitude: -1.046861
Type: 0
Heading: 4.699999809265137
Offset: 0
Servicestate: 0
Speed:
Unit: 0
Value: 0
TimeStamp:
Day: 13
Hour: 12
Min: 47
Mon: 11
Sec: 54
Year: 2024
Version: HU2024111312475401
Body:
Windshield:
Rear:
Defog:
State: 0
Front:
Heat:
State: 0
Defog:
State: 0
WasherFluid:
LevelLow: 0
Lights:
DischargeAlert:
State: 0
Front:
HeadLamp:
SystemWarning: 0
Left:
Low:
Warning: 0
High:
Warning: 0
TurnSignal:
Warning: 0
LampState: 0
Right:
Low:
Warning: 0
High:
Warning: 0
TurnSignal:
Warning: 0
LampState: 0
Rear:
Left:
StopLamp:
Warning: 0
TurnSignal:
Warning: 0
Right:
StopLamp:
Warning: 0
TurnSignal:
Warning: 0
TailLamp:
Alert: 0
Hazard:
Alert: 0
Hood:
Open: 0
Trunk:
Open: 0
Cabin:
RestMode:
State: 0
HVAC:
Vent:
FineDust:
Level: 0
AirCleaning:
Indicator: 0
SymbolColor: 0
Row1:
Driver:
Temperature:
Value: '22.0'
Unit: 0
Blower:
SpeedLevel: 0
Temperature:
RangeType: 1
Door:
Row1:
Passenger:
Lock: 1
Open: 0
Driver:
Open: 0
Lock: 1
Row2:
Left:
Lock: 1
Open: 0
Right:
Lock: 1
Open: 0
Window:
Row1:
Driver:
Open: 0
OpenLevel: 0
Passenger:
Open: 0
OpenLevel: 0
Row2:
Left:
Open: 0
OpenLevel: 0
Right:
Open: 0
OpenLevel: 0
SteeringWheel:
Heat:
RemoteControl:
Step: 0
State: 0
Seat:
Row2:
Left:
Climate:
State: 2
Right:
Climate:
State: 2
Row1:
Passenger:
Climate:
State: 2
Driver:
Climate:
State: 2
Chassis:
DrivingMode:
State: Normal
Axle:
Row1:
Left:
Tire:
PressureLow: 0
Pressure: 0
Right:
Tire:
PressureLow: 0
Pressure: 0
Row2:
Left:
Tire:
PressureLow: 0
Pressure: 0
Right:
Tire:
PressureLow: 0
Pressure: 0
Tire:
PressureLow: 0
PressureUnit: 3
Brake:
Fluid:
Warning: 0
Drivetrain:
FuelSystem:
DTE:
Unit: 1
Total: 313
LowFuelWarning: 0
FuelLevel: 0
AverageFuelEconomy:
Unit: 6
Drive: 0
AfterRefuel: 3.4
Accumulated: 3.9
Odometer: 581.4
Transmission:
ParkingPosition: 1
GearPosition: 0
Electronics:
Battery:
Auxiliary:
FailWarning: 0
Level: 94
Charging:
WarningLevel: 65
PowerStateAlert:
ClassC: 2
SensorReliability: 0
AutoCut:
PowerMode: 2
BatteryPreWarning: 0
DeliveryMode: 2
FOB:
LowBattery: 0
PowerSupply:
Accessory: 0
Ignition3: 1
Ignition1: 0
Green:
DrivingReady: 0
PowerConsumption:
Prediction:
Climate: 0
BatteryManagement:
SoH:
Ratio: 100
BatteryRemain:
Value: 134164.8
Ratio: 61
BatteryConditioning: 0
BatteryPreCondition:
Status: 0
TemperatureLevel: 7
BatteryCapacity:
Value: 235440
Electric:
SmartGrid:
VehicleToLoad:
DischargeLimitation:
SoC: 20
RemainTime: 0
VehicleToGrid:
Mode: 0
RealTimePower: 4.4
ChargingInformation:
EstimatedTime:
ICCB: 1090
Standard: 285
Quick: 28
Unit: 1
ExpectedTime:
StartDay: 7
StartHour: 31
StartMin: 63
EndDay: 7
EndHour: 31
EndMin: 63
DTE:
TargetSoC:
Standard: 537
Quick: 418
ConnectorFastening:
State: 1
SequenceDetails: 7
SequenceSubcode: 1
ElectricCurrentLevel:
State: 3
Charging:
RemainTime: 440
RemainTimeUnit: 1
TargetSoC:
Standard: 100
Quick: 80
Reservation:
Departure:
Schedule1:
Hour: 7
Min: 20
Mon: 1
Tue: 1
Wed: 1
Thu: 1
Enable: 0
Fri: 1
Sat: 0
Sun: 0
Schedule2:
Hour: 0
Min: 0
Mon: 0
Tue: 0
Wed: 0
Thu: 0
Enable: 0
Fri: 0
Sat: 0
Sun: 0
Climate:
Defrost: 0
TemperatureHex: '14'
Temperature: '24.0'
Activation: 1
Climate:
Activation: 1
TemperatureHex: 0e
Defrost: 1
TemperatureUnit: 0
Temperature: '21.0'
Climate2:
Activation: 1
Defrost: 1
TemperatureUnit: 0
TemperatureHex: 0e
Temperature: '21.0'
OffPeakTime:
StartHour: 2
StartMin: 0
EndHour: 5
EndMin: 0
Mode: 3
OffPeakTime2:
StartHour: 2
StartMin: 0
EndHour: 5
EndMin: 0
EnergyInformation:
DTE:
Invalid: 0
PlugAndCharge:
ContractCertificate1:
Company: "\0\0\0\0\0"
CompanyMask: 0
State: 2
Year: 0
Mon: 0
ContractCertificate2:
Company: "\0\0\0\0\0"
CompanyMask: 0
State: 0
Year: 0
Mon: 0
ContractCertificate3:
Company: "\0\0\0\0\0"
CompanyMask: 0
State: 0
Year: 0
Mon: 0
ContractCertificate4:
Company: "\0\0\0\0\0"
CompanyMask: 0
State: 0
Year: 0
Mon: 0
ContractCertificate5:
CompanyMask: 0
State: 0
Company: "\0\0\0\0\0"
Year: 0
Mon: 0
ContractCertificate:
SelectedCert: 0
Changeable: 1
Mode: 1
ChargingDoor:
State: 1
ErrorState: 0
DrivingHistory:
Average: 3.4
Unit: 2
Service:
ConnectedCar:
RemoteControl:
Available: 1
WaitingTime: 336
ActiveAlert:
Available: 0
RemoteControl:
SleepMode: 0
DrivingReady: 0
Version: CCU2024111313465101
Date: '20241113134651.000'
Offset: '0'
ConnectedService:
OTA:
ControllerStatus: 0
—
Reply to this email directly, view it on GitHub<#947 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6SOH6TRX3OSLBDSKI3MCCT2ANMMRAVCNFSM6AAAAABQCJU7UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTG4ZDCOBTHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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 :)
The text was updated successfully, but these errors were encountered: