Skip to content

Commit

Permalink
Volvo: improve charge state detection
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 2, 2021
1 parent e8c9405 commit 1be3025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vehicle/volvo.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ func (v *Volvo) Status() (api.ChargeStatus, error) {
switch res.HvBattery.HvBatteryChargeStatusDerived {
case "CableNotPluggedInCar":
return api.StatusA, nil
case "CablePluggedInCar", "CablePluggedInCar_FullyCharged":
case "CablePluggedInCar", "CablePluggedInCar_FullyCharged", "CablePluggedInCar_ChargingPaused":
return api.StatusB, nil
case "Charging":
case "Charging", "CablePluggedInCar_Charging":
return api.StatusC, nil
}
}
Expand Down

0 comments on commit 1be3025

Please sign in to comment.