diff --git a/README.md b/README.md index 9b8441c..ae191cf 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ Discussion: Placeholder for the next version (at the beginning of the line): ### __WORK IN PROGRESS__ --> + +### **WORK IN PROGRESS** + +- (Black-Thunder) Report data for ATW devices was fixed + ### 2.0.4 (2024-11-04) - (Black-Thunder) Responsive design for settings dialog was added diff --git a/lib/melcloudAtwDevice.js b/lib/melcloudAtwDevice.js index ad2afb1..3a3c818 100644 --- a/lib/melcloudAtwDevice.js +++ b/lib/melcloudAtwDevice.js @@ -883,6 +883,22 @@ class MelcloudAtwDevice { }, native: {} }); + + gthat.extendObjectAsync(lastReportDataPrefix + commonDefines.CommonDeviceStateIDs.TotalPowerProductionPrefix + mode, { + 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, {