Skip to content

Commit

Permalink
ATW devices: fixed creation of report states
Browse files Browse the repository at this point in the history
  • Loading branch information
Black-Thunder committed Dec 11, 2024
1 parent fe5ad62 commit 8783cb8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/melcloudAtwDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 8783cb8

Please sign in to comment.