Fix #79 add total energy returned to grid property
This commit is contained in:
parent
7c61c7ea8b
commit
c562a831b3
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user