Nexblue: remove broken 1p3p

This commit is contained in:
andig 2026-03-16 17:51:08 +01:00
parent 706b637b18
commit db1870021d
2 changed files with 2 additions and 19 deletions

View file

@ -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)

View file

@ -3,7 +3,6 @@ products:
- brand: Nexblue
description:
generic: Edge 2
capabilities: ["1p3p"]
requirements:
evcc: ["sponsorship"]
params: