Skip to content

Commit

Permalink
update attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stingchang committed Apr 11, 2024
1 parent ab67cf9 commit 911120e
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,8 @@ endpoint 1 {
ram attribute batReplacementNeeded default = 0;
ram attribute batReplaceability default = 1;
ram attribute batPresent default = 1;
ram attribute batChargeState default = 2;
ram attribute batCapacity default = 350;
ram attribute batChargeState default = 4;
ram attribute batFunctionalWhileCharging default = 1;
callback attribute endpointList;
callback attribute generatedCommandList;
Expand Down
18 changes: 17 additions & 1 deletion examples/chef/devices/rootnode_contactsensor_27f76aeaf5.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2814,6 +2814,22 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "BatCapacity",
"code": 24,
"mfgCode": null,
"side": "server",
"type": "int32u",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "350",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "BatChargeState",
"code": 26,
Expand All @@ -2824,7 +2840,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "2",
"defaultValue": "4",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
10 changes: 6 additions & 4 deletions examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1857,14 +1857,16 @@ endpoint 1 {
ram attribute status default = 1;
ram attribute order default = 1;
ram attribute description default = "Battery";
ram attribute batVoltage default = 120;
ram attribute batPercentRemaining default = 100;
ram attribute batTimeRemaining default = 10;
ram attribute batVoltage default = 2590;
ram attribute batPercentRemaining default = 98;
ram attribute batTimeRemaining default = 52560000;
ram attribute batChargeLevel default = 0;
ram attribute batReplacementNeeded default = 0;
ram attribute batReplaceability default = 2;
ram attribute batPresent default = 1;
ram attribute batReplacementDescription default = "ReplaceBattery";
ram attribute batReplacementDescription default = "2x AA/LR6 Alkaline";
ram attribute batCommonDesignation default = 2;
ram attribute batApprovedChemistry default = 1;
ram attribute batQuantity;
callback attribute endpointList;
callback attribute generatedCommandList;
Expand Down
40 changes: 36 additions & 4 deletions examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3090,7 +3090,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "120",
"defaultValue": "2590",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3106,7 +3106,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "100",
"defaultValue": "98",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3122,7 +3122,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "10",
"defaultValue": "52560000",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3202,7 +3202,39 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "ReplaceBattery",
"defaultValue": "2x AA/LR6 Alkaline",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "BatCommonDesignation",
"code": 20,
"mfgCode": null,
"side": "server",
"type": "BatCommonDesignationEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "BatApprovedChemistry",
"code": 23,
"mfgCode": null,
"side": "server",
"type": "BatApprovedChemistryEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down

0 comments on commit 911120e

Please sign in to comment.