cfos: expose temperature exceedance (#32514)

This commit is contained in:
Stefan Beyer 2026-08-04 12:41:32 +02:00 • committed by GitHub
parent 2abf3ac432
commit 37fa159d47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ package charger
import (
"context"
"encoding/binary"
"errors"
"fmt"
"github.com/evcc-io/evcc/api"
@ -123,6 +124,8 @@ func (wb *CfosPowerBrain) Status() (api.ChargeStatus, error) {
return api.StatusB, nil
case 2: // laden
return api.StatusC, nil
case 5: // Übertemperatur
return api.StatusNone, errors.New("temperature exceeded")
default:
return api.StatusNone, fmt.Errorf("invalid status: %d", b[1])
}