From d7b51b8ac809d3f4d007751c526d74d90e77242f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 9 Sep 2026 14:16:25 +0200 Subject: [PATCH] shelly: Fix energy meter current reading for phase B --- shelly/integrationpluginshelly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index c844d6e6..e5d7e9dc 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -1933,7 +1933,7 @@ void IntegrationPluginShelly::setupGen2Plus(ThingSetupInfo *info) thing->setStateValue(shellyPro3EMCurrentPhaseAStateTypeId, em0.value("a_current").toDouble()); thing->setStateValue(shellyPro3EMCurrentPowerPhaseBStateTypeId, em0.value("b_act_power").toDouble()); thing->setStateValue(shellyPro3EMVoltagePhaseBStateTypeId, em0.value("b_voltage").toDouble()); - thing->setStateValue(shellyPro3EMCurrentPhaseCStateTypeId, em0.value("c_current").toDouble()); + thing->setStateValue(shellyPro3EMCurrentPhaseBStateTypeId, em0.value("b_current").toDouble()); thing->setStateValue(shellyPro3EMCurrentPowerPhaseCStateTypeId, em0.value("c_act_power").toDouble()); thing->setStateValue(shellyPro3EMVoltagePhaseCStateTypeId, em0.value("c_voltage").toDouble()); thing->setStateValue(shellyPro3EMCurrentPhaseCStateTypeId, em0.value("c_current").toDouble()); @@ -1944,7 +1944,7 @@ void IntegrationPluginShelly::setupGen2Plus(ThingSetupInfo *info) thing->setStateValue(shelly3EMCurrentPhaseAStateTypeId, em0.value("a_current").toDouble()); thing->setStateValue(shelly3EMCurrentPowerPhaseBStateTypeId, em0.value("b_act_power").toDouble()); thing->setStateValue(shelly3EMVoltagePhaseBStateTypeId, em0.value("b_voltage").toDouble()); - thing->setStateValue(shelly3EMCurrentPhaseCStateTypeId, em0.value("c_current").toDouble()); + thing->setStateValue(shelly3EMCurrentPhaseBStateTypeId, em0.value("b_current").toDouble()); thing->setStateValue(shelly3EMCurrentPowerPhaseCStateTypeId, em0.value("c_act_power").toDouble()); thing->setStateValue(shelly3EMVoltagePhaseCStateTypeId, em0.value("c_voltage").toDouble()); thing->setStateValue(shelly3EMCurrentPhaseCStateTypeId, em0.value("c_current").toDouble());