Fix #79 add total energy returned to grid property

pull/87/head
Simon Stürz 2022-09-29 17:02:34 +02:00
parent 7c61c7ea8b
commit c562a831b3
1 changed files with 1 additions and 1 deletions

View File

@ -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());