Skip to content

fix(vehicles/kia): populate odometer (Kilometerstand) in vehicle status - #3766

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
Gulaschcowboy:fix/kia-odometer
Aug 5, 2026
Merged

LKuemmel merged 1 commit into
openWB:masterfrom
Gulaschcowboy:fix/kia-odometer

Conversation

@Gulaschcowboy

Copy link
Copy Markdown
Contributor

The CCS2 status parser in getStatusFull() only extracted SoC and range, so CarState.odometer stayed None and the openWB status page showed an empty 'Kilometerstand - km'. Read the mileage from the same Drivetrain subtree the range is taken from (Vehicle.Drivetrain.Odometer, a direct km scalar, matching hyundai_kia_connect_api ApiImplType1 CCS2 parsing) and pass it into CarState. Wrapped in try/except so a missing field degrades gracefully instead of breaking the whole status update.

The CCS2 status parser in getStatusFull() only extracted SoC and range,
so CarState.odometer stayed None and the openWB status page showed an
empty 'Kilometerstand - km'. Read the mileage from the same Drivetrain
subtree the range is taken from (Vehicle.Drivetrain.Odometer, a direct
km scalar, matching hyundai_kia_connect_api ApiImplType1 CCS2 parsing)
and pass it into CarState. Wrapped in try/except so a missing field
degrades gracefully instead of breaking the whole status update.
@LKuemmel
LKuemmel merged commit e47e7e9 into openWB:master Aug 5, 2026
1 check passed
benderl pushed a commit that referenced this pull request Aug 6, 2026
…us (#3766)

The CCS2 status parser in getStatusFull() only extracted SoC and range,
so CarState.odometer stayed None and the openWB status page showed an
empty 'Kilometerstand - km'. Read the mileage from the same Drivetrain
subtree the range is taken from (Vehicle.Drivetrain.Odometer, a direct
km scalar, matching hyundai_kia_connect_api ApiImplType1 CCS2 parsing)
and pass it into CarState. Wrapped in try/except so a missing field
degrades gracefully instead of breaking the whole status update.
ndrsnhs pushed a commit to ndrsnhs/core that referenced this pull request Aug 24, 2026
…us (openWB#3766)

The CCS2 status parser in getStatusFull() only extracted SoC and range,
so CarState.odometer stayed None and the openWB status page showed an
empty 'Kilometerstand - km'. Read the mileage from the same Drivetrain
subtree the range is taken from (Vehicle.Drivetrain.Odometer, a direct
km scalar, matching hyundai_kia_connect_api ApiImplType1 CCS2 parsing)
and pass it into CarState. Wrapped in try/except so a missing field
degrades gracefully instead of breaking the whole status update.
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

Successfully merging this pull request may close these issues.

2 participants