From c562a831b31f10205948fe8cc8d4e423dad2dd9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 29 Sep 2022 17:02:34 +0200 Subject: [PATCH] Fix #79 add total energy returned to grid property --- kostal/integrationpluginkostal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kostal/integrationpluginkostal.cpp b/kostal/integrationpluginkostal.cpp index f2e4cc3..78cb8d4 100644 --- a/kostal/integrationpluginkostal.cpp +++ b/kostal/integrationpluginkostal.cpp @@ -454,8 +454,8 @@ void IntegrationPluginKostal::setupKostalConnection(ThingSetupInfo *info) meterThing->setStateValue(kostalMeterFrequencyStateTypeId, kostalConnection->gridFrequencyPowerMeter()); - // TODO: Not sure where to get the exported energy meterThing->setStateValue(kostalMeterTotalEnergyConsumedStateTypeId, kostalConnection->totalHomeConsumptionFromGrid() / 1000.0); // kWh + meterThing->setStateValue(kostalMeterTotalEnergyProducedStateTypeId, kostalConnection->totalEnergyAcToGrid() / 1000.0); // kWh // Set the power as last value meterThing->setStateValue(kostalMeterCurrentPowerStateTypeId, kostalConnection->powerMeterTotalActivePower());