diff --git a/lib/melcloudAtwDevice.js b/lib/melcloudAtwDevice.js index 9eaea039..14110cf9 100644 --- a/lib/melcloudAtwDevice.js +++ b/lib/melcloudAtwDevice.js @@ -883,6 +883,22 @@ class MelcloudAtwDevice { }, native: {} }); + + gthat.extendObjectAsync(lastReportDataPrefix + commonDefines.CommonDeviceStateIDs.TotalPowerProductionPrefix, { + type: "state", + common: { + name: `Total power production for mode '${mode}'`, + type: "number", + role: "value.power.consumption", + min: 0, + read: true, + write: false, + unit: "kWh", + def: 0, + desc: `Total power production for mode '${mode}'` + }, + native: {} + }); }); gthat.extendObjectAsync(lastReportDataPrefix + commonDefines.CommonDeviceStateIDs.TotalPowerConsumptionPrefix, {