From b83c5a90f8dbaaa75501f28609ad87108a1be4c6 Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Tue, 18 Jun 2024 18:48:59 +0200 Subject: [PATCH 1/2] SPLZB-132: read develco specific sw/hw versions --- src/devices/develco.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/devices/develco.ts b/src/devices/develco.ts index 9bf2542c7c418..08da4a3b211f1 100644 --- a/src/devices/develco.ts +++ b/src/devices/develco.ts @@ -354,6 +354,8 @@ const definitions: Definition[] = [ await reporting.currentSummDelivered(endpoint, {change: [0, 20]}); // Limit reports to once every 5m, or 0.02kWh await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); await reporting.acFrequency(endpoint); + // read develco specific attribute for sw and hw version + await develco.configure.read_sw_hw_version(device); }, endpoint: (device) => { return {default: 2}; @@ -380,6 +382,8 @@ const definitions: Definition[] = [ await reporting.readMeteringMultiplierDivisor(endpoint); await reporting.currentSummDelivered(endpoint, {change: [0, 20]}); // Limit reports to once every 5m, or 0.02kWh await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); + // read develco specific attribute for sw and hw version + await develco.configure.read_sw_hw_version(device); }, endpoint: (device) => { return {default: 2}; From 9e33283de6b71d992e36ea0d9ce2f219be529c8e Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Tue, 18 Jun 2024 20:06:12 +0200 Subject: [PATCH 2/2] SPLZB-132: seMetering.instantaneousDemand and haElectricalMeasurement.activePower both return the same thing --- src/devices/develco.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/devices/develco.ts b/src/devices/develco.ts index 08da4a3b211f1..15380e5dd9519 100644 --- a/src/devices/develco.ts +++ b/src/devices/develco.ts @@ -352,7 +352,11 @@ const definitions: Definition[] = [ await reporting.rmsVoltage(endpoint, {min: constants.repInterval.MINUTES_5, change: 400}); // Limit reports to every 5m, or 4V await reporting.readMeteringMultiplierDivisor(endpoint); await reporting.currentSummDelivered(endpoint, {change: [0, 20]}); // Limit reports to once every 5m, or 0.02kWh - await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); + /* + seMetering.instantaneousDemand and haElectricalMeasurement.activePower both return the same thing + spot checks indicate both return the exact same value, no point in having both report + */ + // await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); await reporting.acFrequency(endpoint); // read develco specific attribute for sw and hw version await develco.configure.read_sw_hw_version(device); @@ -381,7 +385,11 @@ const definitions: Definition[] = [ await reporting.rmsVoltage(endpoint, {min: constants.repInterval.MINUTES_5, change: 400}); // Limit reports to every 5m, or 4V await reporting.readMeteringMultiplierDivisor(endpoint); await reporting.currentSummDelivered(endpoint, {change: [0, 20]}); // Limit reports to once every 5m, or 0.02kWh - await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); + /* + seMetering.instantaneousDemand and haElectricalMeasurement.activePower both return the same thing + spot checks indicate both return the exact same value, no point in having both report + */ + // await reporting.instantaneousDemand(endpoint, {min: constants.repInterval.MINUTES_5, change: 10}); // read develco specific attribute for sw and hw version await develco.configure.read_sw_hw_version(device); },