From c1be041a27141ebfb3576114217cfdf81ef8b029 Mon Sep 17 00:00:00 2001 From: Patrick Amrhein Date: Thu, 4 Apr 2024 10:23:33 +0200 Subject: [PATCH] ZE Bugfix: powermeter shelly pro 3em P --- src/plugins/zeroExport/powermeter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/zeroExport/powermeter.h b/src/plugins/zeroExport/powermeter.h index e3bea0f2..a3d2e987 100644 --- a/src/plugins/zeroExport/powermeter.h +++ b/src/plugins/zeroExport/powermeter.h @@ -161,6 +161,7 @@ class powermeter { result.P = doc["total_power"]; } else if (doc.containsKey(F("em:0"))) { // Shelly pro 3EM + result.P = doc["em:0"]["total_act_power"]; } else if (doc.containsKey(F("total_act_power"))) { // Shelly pro 3EM result.P = doc["total_act_power"];