@@ -44,6 +44,8 @@ import {
44
44
windowCovering ,
45
45
} from '../lib/modernExtend' ;
46
46
import { DefinitionWithExtend } from '../lib/types' ;
47
+ import { repInterval } from '../lib/constants' ;
48
+
47
49
48
50
const definitions : DefinitionWithExtend [ ] = [
49
51
// #region light
@@ -608,7 +610,7 @@ const definitions: DefinitionWithExtend[] = [
608
610
// Enable reporting of powerDivisor, needs to change dynamically with the amount of power
609
611
// For details, see: https://github.com/Koenkk/zigbee2mqtt/issues/23961#issuecomment-2366733453
610
612
await endpoint . configureReporting ( 'haElectricalMeasurement' , [
611
- { attribute : 'acPowerDivisor' , minimumReportInterval : 10 , maximumReportInterval : 65000 , reportableChange : 1 } ,
613
+ { attribute : 'acPowerDivisor' , minimumReportInterval : 10 , maximumReportInterval : repInterval . MAX , reportableChange : 1 } ,
612
614
] ) ;
613
615
} ,
614
616
} ,
@@ -935,7 +937,7 @@ const definitions: DefinitionWithExtend[] = [
935
937
const endpoint = device . getEndpoint ( 2 ) ;
936
938
// This is required to prevent the device's reported state being stuck after it quickly changed back and forth
937
939
await endpoint . configureReporting ( 'ssIasZone' , [
938
- { attribute : 'zoneStatus' , minimumReportInterval : 0 , maximumReportInterval : 65000 , reportableChange : 0 } ,
940
+ { attribute : 'zoneStatus' , minimumReportInterval : 0 , maximumReportInterval : repInterval . MAX , reportableChange : 0 } ,
939
941
] ) ;
940
942
} ,
941
943
} ,
@@ -956,7 +958,7 @@ const definitions: DefinitionWithExtend[] = [
956
958
const endpoint = device . getEndpoint ( 1 ) ;
957
959
// This is required to prevent the device's reported state being stuck after it quickly changed back and forth
958
960
await endpoint . configureReporting ( 'ssIasZone' , [
959
- { attribute : 'zoneStatus' , minimumReportInterval : 0 , maximumReportInterval : 65000 , reportableChange : 0 } ,
961
+ { attribute : 'zoneStatus' , minimumReportInterval : 0 , maximumReportInterval : repInterval . MAX , reportableChange : 0 } ,
960
962
] ) ;
961
963
} ,
962
964
} ,
0 commit comments