Tasmota: use phases for 3p only (#11366)

This commit is contained in:
andig 2023-12-31 15:15:44 +01:00 • committed by GitHub
parent 0130e39605
commit bc0b52d776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ func NewTasmota(uri, user, password, usage string, channels []int, cache time.Du
}
var currents, voltages func() (float64, float64, float64, error)
if usage != "grid" {
if usage != "grid" && len(channels) == 3 {
currents = c.currents
voltages = c.voltages
}