From 96d5c05ad725bff282a425c8aa49bec238dce9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 29 Apr 2024 08:15:57 +0200 Subject: [PATCH] Solax: Fix invalid inverter power --- solax/integrationpluginsolax.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solax/integrationpluginsolax.cpp b/solax/integrationpluginsolax.cpp index 78e7a10..85c23b9 100644 --- a/solax/integrationpluginsolax.cpp +++ b/solax/integrationpluginsolax.cpp @@ -259,7 +259,7 @@ void IntegrationPluginSolax::setupThing(ThingSetupInfo *info) // Update inverter states - int inverterPower = solaxConnection->powerDc1() + solaxConnection->powerDc1(); + int inverterPower = solaxConnection->powerDc1() + solaxConnection->powerDc2(); int inverterVoltage = solaxConnection->pvVoltage1() + solaxConnection->pvVoltage2(); int inverterCurrent = solaxConnection->pvCurrent1() + solaxConnection->pvCurrent2(); thing->setStateValue(solaxInverterTcpCurrentPowerStateTypeId, -inverterPower);