From 0146f03388b37b85d9dfa093a9afbaa51239c0e7 Mon Sep 17 00:00:00 2001 From: Sauttets <50888810+Sauttets@users.noreply.github.com> Date: Wed, 10 Jan 2024 18:15:17 +0100 Subject: [PATCH] Pulsatrix: fix 1p3p (#11588) --- charger/pulsatrix.go | 2 +- templates/definition/charger/pulsatrix.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charger/pulsatrix.go b/charger/pulsatrix.go index c2c256fd6..5ff0ee442 100644 --- a/charger/pulsatrix.go +++ b/charger/pulsatrix.go @@ -269,7 +269,7 @@ func (c *Pulsatrix) TotalEnergy() (float64, error) { // Phases1p3p implements the api.PhaseSwitcher interface func (c *Pulsatrix) Phases1p3p(phases int) error { - return c.write("set1p3p\n" + strconv.Itoa(phases)) + return c.write("set1p3p\n" + strconv.FormatBool(phases == 1)) } var _ api.PhaseCurrents = (*Pulsatrix)(nil) diff --git a/templates/definition/charger/pulsatrix.yaml b/templates/definition/charger/pulsatrix.yaml index e636cfd14..f9d79399f 100644 --- a/templates/definition/charger/pulsatrix.yaml +++ b/templates/definition/charger/pulsatrix.yaml @@ -1,6 +1,8 @@ template: pulsatrix products: - brand: Pulsatrix +requirements: + evcc: ["sponsorship"] params: - name: host #IP address or hostname (can be found on 3rd page of SECC display) required: true