Solax: Fix invalid inverter power
This commit is contained in:
parent
d27c72e0c5
commit
96d5c05ad7
@ -259,7 +259,7 @@ void IntegrationPluginSolax::setupThing(ThingSetupInfo *info)
|
|||||||
|
|
||||||
// Update inverter states
|
// Update inverter states
|
||||||
|
|
||||||
int inverterPower = solaxConnection->powerDc1() + solaxConnection->powerDc1();
|
int inverterPower = solaxConnection->powerDc1() + solaxConnection->powerDc2();
|
||||||
int inverterVoltage = solaxConnection->pvVoltage1() + solaxConnection->pvVoltage2();
|
int inverterVoltage = solaxConnection->pvVoltage1() + solaxConnection->pvVoltage2();
|
||||||
int inverterCurrent = solaxConnection->pvCurrent1() + solaxConnection->pvCurrent2();
|
int inverterCurrent = solaxConnection->pvCurrent1() + solaxConnection->pvCurrent2();
|
||||||
thing->setStateValue(solaxInverterTcpCurrentPowerStateTypeId, -inverterPower);
|
thing->setStateValue(solaxInverterTcpCurrentPowerStateTypeId, -inverterPower);
|
||||||
|
|||||||
Reference in New Issue
Block a user