Skip to content

Commit 5c3262a

Browse files
committed
Update device PowerSource attributes
1 parent 69cb8cb commit 5c3262a

File tree

2 files changed

+118
-16
lines changed

2 files changed

+118
-16
lines changed

examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter

+8-2
Original file line numberDiff line numberDiff line change
@@ -2374,9 +2374,13 @@ endpoint 1 {
23742374
ram attribute status default = 1;
23752375
ram attribute order default = 1;
23762376
ram attribute description default = "Battery";
2377+
ram attribute batVoltage;
2378+
ram attribute batPercentRemaining;
2379+
ram attribute batTimeRemaining;
23772380
ram attribute batChargeLevel;
23782381
ram attribute batReplacementNeeded;
23792382
ram attribute batReplaceability;
2383+
ram attribute batPresent;
23802384
ram attribute batReplacementDescription;
23812385
ram attribute batQuantity default = 1;
23822386
callback attribute endpointList;
@@ -2397,7 +2401,9 @@ endpoint 1 {
23972401
ram attribute lockState default = 1;
23982402
ram attribute lockType default = 0;
23992403
ram attribute actuatorEnabled default = 0;
2400-
ram attribute doorState;
2404+
ram attribute doorState default = 1;
2405+
ram attribute doorOpenEvents;
2406+
ram attribute doorClosedEvents;
24012407
ram attribute numberOfTotalUsersSupported default = 10;
24022408
ram attribute numberOfPINUsersSupported default = 10;
24032409
ram attribute numberOfRFIDUsersSupported default = 10;
@@ -2411,7 +2417,7 @@ endpoint 1 {
24112417
ram attribute credentialRulesSupport default = 1;
24122418
ram attribute numberOfCredentialsSupportedPerUser default = 5;
24132419
ram attribute language default = "en";
2414-
ram attribute autoRelockTime default = 60;
2420+
ram attribute autoRelockTime default = 5;
24152421
ram attribute soundVolume default = 0;
24162422
ram attribute operatingMode default = 0;
24172423
ram attribute supportedOperatingModes default = 0xFFF6;

examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap

+110-14
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,7 @@
25372537
"singleton": 0,
25382538
"bounded": 0,
25392539
"defaultValue": "0x0",
2540-
"reportable": 0,
2540+
"reportable": 1,
25412541
"minInterval": 1,
25422542
"maxInterval": 65534,
25432543
"reportableChange": 0
@@ -2553,7 +2553,7 @@
25532553
"singleton": 0,
25542554
"bounded": 0,
25552555
"defaultValue": "0x0",
2556-
"reportable": 0,
2556+
"reportable": 1,
25572557
"minInterval": 1,
25582558
"maxInterval": 65534,
25592559
"reportableChange": 0
@@ -2600,7 +2600,7 @@
26002600
"storageOption": "External",
26012601
"singleton": 0,
26022602
"bounded": 0,
2603-
"defaultValue": "",
2603+
"defaultValue": null,
26042604
"reportable": 1,
26052605
"minInterval": 1,
26062606
"maxInterval": 65534,
@@ -2691,7 +2691,7 @@
26912691
"singleton": 0,
26922692
"bounded": 0,
26932693
"defaultValue": null,
2694-
"reportable": 0,
2694+
"reportable": 1,
26952695
"minInterval": 1,
26962696
"maxInterval": 65534,
26972697
"reportableChange": 0
@@ -2707,7 +2707,7 @@
27072707
"singleton": 0,
27082708
"bounded": 0,
27092709
"defaultValue": null,
2710-
"reportable": 0,
2710+
"reportable": 1,
27112711
"minInterval": 1,
27122712
"maxInterval": 65534,
27132713
"reportableChange": 0
@@ -2723,7 +2723,7 @@
27232723
"singleton": 0,
27242724
"bounded": 0,
27252725
"defaultValue": null,
2726-
"reportable": 0,
2726+
"reportable": 1,
27272727
"minInterval": 1,
27282728
"maxInterval": 65534,
27292729
"reportableChange": 0
@@ -2770,7 +2770,7 @@
27702770
"storageOption": "External",
27712771
"singleton": 0,
27722772
"bounded": 0,
2773-
"defaultValue": "",
2773+
"defaultValue": null,
27742774
"reportable": 1,
27752775
"minInterval": 1,
27762776
"maxInterval": 65534,
@@ -2882,6 +2882,54 @@
28822882
"maxInterval": 65534,
28832883
"reportableChange": 0
28842884
},
2885+
{
2886+
"name": "BatVoltage",
2887+
"code": 11,
2888+
"mfgCode": null,
2889+
"side": "server",
2890+
"type": "int32u",
2891+
"included": 1,
2892+
"storageOption": "RAM",
2893+
"singleton": 0,
2894+
"bounded": 0,
2895+
"defaultValue": null,
2896+
"reportable": 1,
2897+
"minInterval": 1,
2898+
"maxInterval": 65534,
2899+
"reportableChange": 0
2900+
},
2901+
{
2902+
"name": "BatPercentRemaining",
2903+
"code": 12,
2904+
"mfgCode": null,
2905+
"side": "server",
2906+
"type": "int8u",
2907+
"included": 1,
2908+
"storageOption": "RAM",
2909+
"singleton": 0,
2910+
"bounded": 0,
2911+
"defaultValue": null,
2912+
"reportable": 1,
2913+
"minInterval": 1,
2914+
"maxInterval": 65534,
2915+
"reportableChange": 0
2916+
},
2917+
{
2918+
"name": "BatTimeRemaining",
2919+
"code": 13,
2920+
"mfgCode": null,
2921+
"side": "server",
2922+
"type": "int32u",
2923+
"included": 1,
2924+
"storageOption": "RAM",
2925+
"singleton": 0,
2926+
"bounded": 0,
2927+
"defaultValue": null,
2928+
"reportable": 1,
2929+
"minInterval": 1,
2930+
"maxInterval": 65534,
2931+
"reportableChange": 0
2932+
},
28852933
{
28862934
"name": "BatChargeLevel",
28872935
"code": 14,
@@ -2924,7 +2972,23 @@
29242972
"storageOption": "RAM",
29252973
"singleton": 0,
29262974
"bounded": 0,
2927-
"defaultValue": "",
2975+
"defaultValue": null,
2976+
"reportable": 1,
2977+
"minInterval": 1,
2978+
"maxInterval": 65534,
2979+
"reportableChange": 0
2980+
},
2981+
{
2982+
"name": "BatPresent",
2983+
"code": 17,
2984+
"mfgCode": null,
2985+
"side": "server",
2986+
"type": "boolean",
2987+
"included": 1,
2988+
"storageOption": "RAM",
2989+
"singleton": 0,
2990+
"bounded": 0,
2991+
"defaultValue": null,
29282992
"reportable": 1,
29292993
"minInterval": 1,
29302994
"maxInterval": 65534,
@@ -2972,7 +3036,7 @@
29723036
"storageOption": "External",
29733037
"singleton": 0,
29743038
"bounded": 0,
2975-
"defaultValue": "",
3039+
"defaultValue": null,
29763040
"reportable": 1,
29773041
"minInterval": 1,
29783042
"maxInterval": 65534,
@@ -2988,7 +3052,7 @@
29883052
"storageOption": "External",
29893053
"singleton": 0,
29903054
"bounded": 0,
2991-
"defaultValue": "",
3055+
"defaultValue": null,
29923056
"reportable": 1,
29933057
"minInterval": 1,
29943058
"maxInterval": 65534,
@@ -3004,7 +3068,7 @@
30043068
"storageOption": "External",
30053069
"singleton": 0,
30063070
"bounded": 0,
3007-
"defaultValue": "",
3071+
"defaultValue": null,
30083072
"reportable": 1,
30093073
"minInterval": 1,
30103074
"maxInterval": 65534,
@@ -3020,7 +3084,7 @@
30203084
"storageOption": "External",
30213085
"singleton": 0,
30223086
"bounded": 0,
3023-
"defaultValue": "",
3087+
"defaultValue": null,
30243088
"reportable": 1,
30253089
"minInterval": 1,
30263090
"maxInterval": 65534,
@@ -3036,7 +3100,7 @@
30363100
"storageOption": "External",
30373101
"singleton": 0,
30383102
"bounded": 0,
3039-
"defaultValue": "",
3103+
"defaultValue": null,
30403104
"reportable": 1,
30413105
"minInterval": 1,
30423106
"maxInterval": 65534,
@@ -3344,6 +3408,38 @@
33443408
"storageOption": "RAM",
33453409
"singleton": 0,
33463410
"bounded": 0,
3411+
"defaultValue": "1",
3412+
"reportable": 1,
3413+
"minInterval": 1,
3414+
"maxInterval": 65534,
3415+
"reportableChange": 0
3416+
},
3417+
{
3418+
"name": "DoorOpenEvents",
3419+
"code": 4,
3420+
"mfgCode": null,
3421+
"side": "server",
3422+
"type": "int32u",
3423+
"included": 1,
3424+
"storageOption": "RAM",
3425+
"singleton": 0,
3426+
"bounded": 0,
3427+
"defaultValue": "",
3428+
"reportable": 1,
3429+
"minInterval": 1,
3430+
"maxInterval": 65534,
3431+
"reportableChange": 0
3432+
},
3433+
{
3434+
"name": "DoorClosedEvents",
3435+
"code": 5,
3436+
"mfgCode": null,
3437+
"side": "server",
3438+
"type": "int32u",
3439+
"included": 1,
3440+
"storageOption": "RAM",
3441+
"singleton": 0,
3442+
"bounded": 0,
33473443
"defaultValue": "",
33483444
"reportable": 1,
33493445
"minInterval": 1,
@@ -3568,7 +3664,7 @@
35683664
"storageOption": "RAM",
35693665
"singleton": 0,
35703666
"bounded": 0,
3571-
"defaultValue": "60",
3667+
"defaultValue": "5",
35723668
"reportable": 1,
35733669
"minInterval": 1,
35743670
"maxInterval": 65534,

0 commit comments

Comments
 (0)