From ee8bfd341ed03e699a4fa62710bdcdd774b9cccc Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Fri, 23 Jul 2021 20:20:31 +1200 Subject: [PATCH] Change type of summation for reporting configuration Signed-off-by: Chris Jackson --- .../converter/ZigBeeConverterMeteringSummationDelivered.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeConverterMeteringSummationDelivered.java b/org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeConverterMeteringSummationDelivered.java index 3d59adf6b..5decf73a9 100644 --- a/org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeConverterMeteringSummationDelivered.java +++ b/org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeConverterMeteringSummationDelivered.java @@ -78,7 +78,7 @@ public boolean initializeDevice() { ZclAttribute attribute = serverClusterMeasurement .getAttribute(ZclMeteringCluster.ATTR_CURRENTSUMMATIONDELIVERED); // Configure reporting - no faster than once per second - no slower than 2 hours. - CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1).get(); + CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1L).get(); handleReportingResponse(reportingResponse, POLLING_PERIOD_HIGH, REPORTING_PERIOD_DEFAULT_MAX); } else { pollingPeriod = POLLING_PERIOD_HIGH;