Etrel: map charger status 0 (#22227)

This commit is contained in:
premultiply 2025-07-06 13:47:02 +02:00 • committed by GitHub
parent 5fbde958c8
commit 7cbaf2bd59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,7 +129,7 @@ func (wb *Etrel) Status() (api.ChargeStatus, error) {
// 10 Unavailable
switch u := binary.BigEndian.Uint16(b); u {
case 1, 2:
case 0, 1, 2:
return api.StatusA, nil
case 3, 5, 6, 7, 9:
return api.StatusB, nil