From bc0b52d776a1d64156446a3ea870aa2a4f0f9d3e Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 31 Dec 2023 15:15:44 +0100 Subject: [PATCH] Tasmota: use phases for 3p only (#11366) --- meter/tasmota.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meter/tasmota.go b/meter/tasmota.go index f046b8089..933cdc137 100644 --- a/meter/tasmota.go +++ b/meter/tasmota.go @@ -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 }