Ignore the EV if it is charging at a DC station (#1258)
This commit is contained in:
parent
02c8729ce7
commit
2b430ae9b0
1 changed files with 4 additions and 0 deletions
|
|
@ -187,6 +187,10 @@ func (v *EMobilityProvider) Status() (api.ChargeStatus, error) {
|
|||
case "DISCONNECTED":
|
||||
return api.StatusA, nil
|
||||
case "CONNECTED":
|
||||
// ignore if the car is connected to a DC charging station
|
||||
if res.BatteryChargeStatus.ChargingInDCMode {
|
||||
return api.StatusA, nil
|
||||
}
|
||||
switch res.BatteryChargeStatus.ChargingState {
|
||||
case "OFF", "COMPLETED":
|
||||
return api.StatusB, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue