diff --git a/packages/examples/src/examples/MeasuredSocketDevice.ts b/packages/examples/src/examples/MeasuredSocketDevice.ts index d50e3f4b40..2ee9a602bd 100644 --- a/packages/examples/src/examples/MeasuredSocketDevice.ts +++ b/packages/examples/src/examples/MeasuredSocketDevice.ts @@ -108,7 +108,8 @@ const fakeMeasurementTimer = Time.getPeriodicTimer("fakeMeasurement", 10_000, as voltage: voltage * 1000, frequency: frequency * 1000, }, - // For Energy Measurement the set could be done this way but then you need to take about needed events to be sent yourself! + // For Energy Measurement the set could be done this way but this would only update the values as provided. + // The required events needs to be triggered manually. /* electricalEnergyMeasurement: { cumulativeEnergyImported: { diff --git a/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts b/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts index f3b24cb3e5..5b7ede9197 100644 --- a/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts +++ b/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts @@ -42,7 +42,7 @@ type AtomicElectricalEnergyMeasurement = { export class ElectricalEnergyMeasurementServerLogic extends ElectricalEnergyMeasurementServerBase { /** * Convenience method to set the measurement values for the cluster in an atomic way. This method updates the - * attributes and also sends the events for the imported and exported energy values. + * attributes with the provided data and also sends the events for the imported and exported energy values. */ setMeasurement(measurement: AtomicElectricalEnergyMeasurement) { if (this.features.cumulativeEnergy) {