diff --git a/charger/wattpilot.go b/charger/wattpilot.go index 717ad7c9b..a276a1e8f 100644 --- a/charger/wattpilot.go +++ b/charger/wattpilot.go @@ -132,3 +132,14 @@ var _ api.Identifier = (*Wattpilot)(nil) func (c *Wattpilot) Identify() (string, error) { return c.api.GetRFID() } + +var _ api.PhaseSwitcher = (*Wattpilot)(nil) + +// Phases1p3p implements the api.PhaseSwitcher interface +func (c *Wattpilot) Phases1p3p(phases int) error { + if phases == 3 { + phases = 2 + } + + return c.api.SetProperty("psm", phases) +}