Keba: fix vehicle connected status when only the cable is connected to the charging station (#8898)

This commit is contained in:
Konstantin 2023-07-10 20:35:28 +02:00 • committed by GitHub
parent 67238f5cb2
commit 4c72744c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,10 +168,10 @@ func (wb *Keba) Status() (api.ChargeStatus, error) {
}
switch status := binary.BigEndian.Uint32(b); status {
case 0, 3:
case 0, 1, 3:
return api.StatusA, nil
case 1, 5:
case 5:
return api.StatusB, nil
case 7: