@@ -36,7 +36,7 @@ import matter.tlv.TlvReader
36
36
37
37
class EnergyCalendarCluster (
38
38
private val controller : MatterController ,
39
- private val endpointId : UShort
39
+ private val endpointId : UShort ,
40
40
) {
41
41
class CalendarIDAttribute (val value : UInt? )
42
42
@@ -244,7 +244,7 @@ class EnergyCalendarCluster(
244
244
245
245
suspend fun subscribeCalendarIDAttribute (
246
246
minInterval : Int ,
247
- maxInterval : Int
247
+ maxInterval : Int ,
248
248
): Flow <CalendarIDAttributeSubscriptionState > {
249
249
val ATTRIBUTE_ID : UInt = 0u
250
250
val attributePaths =
@@ -257,7 +257,7 @@ class EnergyCalendarCluster(
257
257
eventPaths = emptyList(),
258
258
attributePaths = attributePaths,
259
259
minInterval = Duration .ofSeconds(minInterval.toLong()),
260
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
260
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
261
261
)
262
262
263
263
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -337,7 +337,7 @@ class EnergyCalendarCluster(
337
337
338
338
suspend fun subscribeNameAttribute (
339
339
minInterval : Int ,
340
- maxInterval : Int
340
+ maxInterval : Int ,
341
341
): Flow <NameAttributeSubscriptionState > {
342
342
val ATTRIBUTE_ID : UInt = 1u
343
343
val attributePaths =
@@ -350,7 +350,7 @@ class EnergyCalendarCluster(
350
350
eventPaths = emptyList(),
351
351
attributePaths = attributePaths,
352
352
minInterval = Duration .ofSeconds(minInterval.toLong()),
353
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
353
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
354
354
)
355
355
356
356
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -430,7 +430,7 @@ class EnergyCalendarCluster(
430
430
431
431
suspend fun subscribeProviderIDAttribute (
432
432
minInterval : Int ,
433
- maxInterval : Int
433
+ maxInterval : Int ,
434
434
): Flow <ProviderIDAttributeSubscriptionState > {
435
435
val ATTRIBUTE_ID : UInt = 2u
436
436
val attributePaths =
@@ -443,7 +443,7 @@ class EnergyCalendarCluster(
443
443
eventPaths = emptyList(),
444
444
attributePaths = attributePaths,
445
445
minInterval = Duration .ofSeconds(minInterval.toLong()),
446
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
446
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
447
447
)
448
448
449
449
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -523,7 +523,7 @@ class EnergyCalendarCluster(
523
523
524
524
suspend fun subscribeEventIDAttribute (
525
525
minInterval : Int ,
526
- maxInterval : Int
526
+ maxInterval : Int ,
527
527
): Flow <EventIDAttributeSubscriptionState > {
528
528
val ATTRIBUTE_ID : UInt = 3u
529
529
val attributePaths =
@@ -536,7 +536,7 @@ class EnergyCalendarCluster(
536
536
eventPaths = emptyList(),
537
537
attributePaths = attributePaths,
538
538
minInterval = Duration .ofSeconds(minInterval.toLong()),
539
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
539
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
540
540
)
541
541
542
542
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -616,7 +616,7 @@ class EnergyCalendarCluster(
616
616
617
617
suspend fun subscribeStartDateAttribute (
618
618
minInterval : Int ,
619
- maxInterval : Int
619
+ maxInterval : Int ,
620
620
): Flow <StartDateAttributeSubscriptionState > {
621
621
val ATTRIBUTE_ID : UInt = 4u
622
622
val attributePaths =
@@ -629,7 +629,7 @@ class EnergyCalendarCluster(
629
629
eventPaths = emptyList(),
630
630
attributePaths = attributePaths,
631
631
minInterval = Duration .ofSeconds(minInterval.toLong()),
632
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
632
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
633
633
)
634
634
635
635
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -715,7 +715,7 @@ class EnergyCalendarCluster(
715
715
716
716
suspend fun subscribeCalendarPeriodsAttribute (
717
717
minInterval : Int ,
718
- maxInterval : Int
718
+ maxInterval : Int ,
719
719
): Flow <CalendarPeriodsAttributeSubscriptionState > {
720
720
val ATTRIBUTE_ID : UInt = 5u
721
721
val attributePaths =
@@ -728,7 +728,7 @@ class EnergyCalendarCluster(
728
728
eventPaths = emptyList(),
729
729
attributePaths = attributePaths,
730
730
minInterval = Duration .ofSeconds(minInterval.toLong()),
731
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
731
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
732
732
)
733
733
734
734
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -822,7 +822,7 @@ class EnergyCalendarCluster(
822
822
823
823
suspend fun subscribeSpecialDaysAttribute (
824
824
minInterval : Int ,
825
- maxInterval : Int
825
+ maxInterval : Int ,
826
826
): Flow <SpecialDaysAttributeSubscriptionState > {
827
827
val ATTRIBUTE_ID : UInt = 6u
828
828
val attributePaths =
@@ -835,7 +835,7 @@ class EnergyCalendarCluster(
835
835
eventPaths = emptyList(),
836
836
attributePaths = attributePaths,
837
837
minInterval = Duration .ofSeconds(minInterval.toLong()),
838
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
838
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
839
839
)
840
840
841
841
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -921,7 +921,7 @@ class EnergyCalendarCluster(
921
921
922
922
suspend fun subscribeCurrentDayAttribute (
923
923
minInterval : Int ,
924
- maxInterval : Int
924
+ maxInterval : Int ,
925
925
): Flow <CurrentDayAttributeSubscriptionState > {
926
926
val ATTRIBUTE_ID : UInt = 7u
927
927
val attributePaths =
@@ -934,7 +934,7 @@ class EnergyCalendarCluster(
934
934
eventPaths = emptyList(),
935
935
attributePaths = attributePaths,
936
936
minInterval = Duration .ofSeconds(minInterval.toLong()),
937
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
937
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
938
938
)
939
939
940
940
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1014,7 +1014,7 @@ class EnergyCalendarCluster(
1014
1014
1015
1015
suspend fun subscribeNextDayAttribute (
1016
1016
minInterval : Int ,
1017
- maxInterval : Int
1017
+ maxInterval : Int ,
1018
1018
): Flow <NextDayAttributeSubscriptionState > {
1019
1019
val ATTRIBUTE_ID : UInt = 8u
1020
1020
val attributePaths =
@@ -1027,7 +1027,7 @@ class EnergyCalendarCluster(
1027
1027
eventPaths = emptyList(),
1028
1028
attributePaths = attributePaths,
1029
1029
minInterval = Duration .ofSeconds(minInterval.toLong()),
1030
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1030
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1031
1031
)
1032
1032
1033
1033
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1107,7 +1107,7 @@ class EnergyCalendarCluster(
1107
1107
1108
1108
suspend fun subscribeCurrentTransitionAttribute (
1109
1109
minInterval : Int ,
1110
- maxInterval : Int
1110
+ maxInterval : Int ,
1111
1111
): Flow <CurrentTransitionAttributeSubscriptionState > {
1112
1112
val ATTRIBUTE_ID : UInt = 9u
1113
1113
val attributePaths =
@@ -1120,7 +1120,7 @@ class EnergyCalendarCluster(
1120
1120
eventPaths = emptyList(),
1121
1121
attributePaths = attributePaths,
1122
1122
minInterval = Duration .ofSeconds(minInterval.toLong()),
1123
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1123
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1124
1124
)
1125
1125
1126
1126
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1206,7 +1206,7 @@ class EnergyCalendarCluster(
1206
1206
1207
1207
suspend fun subscribeCurrentPeakPeriodAttribute (
1208
1208
minInterval : Int ,
1209
- maxInterval : Int
1209
+ maxInterval : Int ,
1210
1210
): Flow <CurrentPeakPeriodAttributeSubscriptionState > {
1211
1211
val ATTRIBUTE_ID : UInt = 10u
1212
1212
val attributePaths =
@@ -1219,7 +1219,7 @@ class EnergyCalendarCluster(
1219
1219
eventPaths = emptyList(),
1220
1220
attributePaths = attributePaths,
1221
1221
minInterval = Duration .ofSeconds(minInterval.toLong()),
1222
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1222
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1223
1223
)
1224
1224
1225
1225
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1309,7 +1309,7 @@ class EnergyCalendarCluster(
1309
1309
1310
1310
suspend fun subscribeNextPeakPeriodAttribute (
1311
1311
minInterval : Int ,
1312
- maxInterval : Int
1312
+ maxInterval : Int ,
1313
1313
): Flow <NextPeakPeriodAttributeSubscriptionState > {
1314
1314
val ATTRIBUTE_ID : UInt = 11u
1315
1315
val attributePaths =
@@ -1322,7 +1322,7 @@ class EnergyCalendarCluster(
1322
1322
eventPaths = emptyList(),
1323
1323
attributePaths = attributePaths,
1324
1324
minInterval = Duration .ofSeconds(minInterval.toLong()),
1325
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1325
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1326
1326
)
1327
1327
1328
1328
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1409,7 +1409,7 @@ class EnergyCalendarCluster(
1409
1409
1410
1410
suspend fun subscribeGeneratedCommandListAttribute (
1411
1411
minInterval : Int ,
1412
- maxInterval : Int
1412
+ maxInterval : Int ,
1413
1413
): Flow <GeneratedCommandListAttributeSubscriptionState > {
1414
1414
val ATTRIBUTE_ID : UInt = 65528u
1415
1415
val attributePaths =
@@ -1422,7 +1422,7 @@ class EnergyCalendarCluster(
1422
1422
eventPaths = emptyList(),
1423
1423
attributePaths = attributePaths,
1424
1424
minInterval = Duration .ofSeconds(minInterval.toLong()),
1425
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1425
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1426
1426
)
1427
1427
1428
1428
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1506,7 +1506,7 @@ class EnergyCalendarCluster(
1506
1506
1507
1507
suspend fun subscribeAcceptedCommandListAttribute (
1508
1508
minInterval : Int ,
1509
- maxInterval : Int
1509
+ maxInterval : Int ,
1510
1510
): Flow <AcceptedCommandListAttributeSubscriptionState > {
1511
1511
val ATTRIBUTE_ID : UInt = 65529u
1512
1512
val attributePaths =
@@ -1519,7 +1519,7 @@ class EnergyCalendarCluster(
1519
1519
eventPaths = emptyList(),
1520
1520
attributePaths = attributePaths,
1521
1521
minInterval = Duration .ofSeconds(minInterval.toLong()),
1522
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1522
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1523
1523
)
1524
1524
1525
1525
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1603,7 +1603,7 @@ class EnergyCalendarCluster(
1603
1603
1604
1604
suspend fun subscribeEventListAttribute (
1605
1605
minInterval : Int ,
1606
- maxInterval : Int
1606
+ maxInterval : Int ,
1607
1607
): Flow <EventListAttributeSubscriptionState > {
1608
1608
val ATTRIBUTE_ID : UInt = 65530u
1609
1609
val attributePaths =
@@ -1616,7 +1616,7 @@ class EnergyCalendarCluster(
1616
1616
eventPaths = emptyList(),
1617
1617
attributePaths = attributePaths,
1618
1618
minInterval = Duration .ofSeconds(minInterval.toLong()),
1619
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1619
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1620
1620
)
1621
1621
1622
1622
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1698,7 +1698,7 @@ class EnergyCalendarCluster(
1698
1698
1699
1699
suspend fun subscribeAttributeListAttribute (
1700
1700
minInterval : Int ,
1701
- maxInterval : Int
1701
+ maxInterval : Int ,
1702
1702
): Flow <AttributeListAttributeSubscriptionState > {
1703
1703
val ATTRIBUTE_ID : UInt = 65531u
1704
1704
val attributePaths =
@@ -1711,7 +1711,7 @@ class EnergyCalendarCluster(
1711
1711
eventPaths = emptyList(),
1712
1712
attributePaths = attributePaths,
1713
1713
minInterval = Duration .ofSeconds(minInterval.toLong()),
1714
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1714
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1715
1715
)
1716
1716
1717
1717
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1786,7 +1786,7 @@ class EnergyCalendarCluster(
1786
1786
1787
1787
suspend fun subscribeFeatureMapAttribute (
1788
1788
minInterval : Int ,
1789
- maxInterval : Int
1789
+ maxInterval : Int ,
1790
1790
): Flow <UIntSubscriptionState > {
1791
1791
val ATTRIBUTE_ID : UInt = 65532u
1792
1792
val attributePaths =
@@ -1799,7 +1799,7 @@ class EnergyCalendarCluster(
1799
1799
eventPaths = emptyList(),
1800
1800
attributePaths = attributePaths,
1801
1801
minInterval = Duration .ofSeconds(minInterval.toLong()),
1802
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1802
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1803
1803
)
1804
1804
1805
1805
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1867,7 +1867,7 @@ class EnergyCalendarCluster(
1867
1867
1868
1868
suspend fun subscribeClusterRevisionAttribute (
1869
1869
minInterval : Int ,
1870
- maxInterval : Int
1870
+ maxInterval : Int ,
1871
1871
): Flow <UShortSubscriptionState > {
1872
1872
val ATTRIBUTE_ID : UInt = 65533u
1873
1873
val attributePaths =
@@ -1880,7 +1880,7 @@ class EnergyCalendarCluster(
1880
1880
eventPaths = emptyList(),
1881
1881
attributePaths = attributePaths,
1882
1882
minInterval = Duration .ofSeconds(minInterval.toLong()),
1883
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1883
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1884
1884
)
1885
1885
1886
1886
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
0 commit comments