cfos: expose temperature exceedance (#32514)
This commit is contained in:
parent
2abf3ac432
commit
37fa159d47
1 changed files with 3 additions and 0 deletions
|
|
@ -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])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue