Pulsatrix: fix 1p3p (#11588)

This commit is contained in:
Sauttets 2024-01-10 18:15:17 +01:00 • committed by GitHub
parent 68da7ac98e
commit 0146f03388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

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

View file

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