Nexblue: remove broken 1p3p
This commit is contained in:
parent
706b637b18
commit
db1870021d
2 changed files with 2 additions and 19 deletions
|
|
@ -262,21 +262,5 @@ func (wb *Nexblue) TotalEnergy() (float64, error) {
|
|||
return res.LifetimeEnergy, err
|
||||
}
|
||||
|
||||
var _ api.PhaseSwitcher = (*Nexblue)(nil)
|
||||
|
||||
// Phases1p3p implements the api.PhaseSwitcher interface
|
||||
func (wb *Nexblue) Phases1p3p(phases int) error {
|
||||
if phases != 1 && phases != 3 {
|
||||
return fmt.Errorf("invalid phases: %d", phases)
|
||||
}
|
||||
|
||||
uri := fmt.Sprintf("%s/chargers/command/%s/switch_phase_mode", nexblueHost, wb.serial)
|
||||
req, _ := request.New(http.MethodPost, uri, request.MarshalJSON(struct {
|
||||
EnforceSinglePhase bool `json:"enforce_single_phase"`
|
||||
}{
|
||||
phases == 1,
|
||||
}), request.JSONEncoding)
|
||||
|
||||
_, err := wb.DoBody(req)
|
||||
return err
|
||||
}
|
||||
// https://github.com/evcc-io/evcc/issues/27975
|
||||
// var _ api.PhaseSwitcher = (*Nexblue)(nil)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ products:
|
|||
- brand: Nexblue
|
||||
description:
|
||||
generic: Edge 2
|
||||
capabilities: ["1p3p"]
|
||||
requirements:
|
||||
evcc: ["sponsorship"]
|
||||
params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue