From 911120ef0b24fb56efca6c027186b74ac2888a07 Mon Sep 17 00:00:00 2001 From: Sting Chang Date: Fri, 12 Apr 2024 05:20:34 +0800 Subject: [PATCH] update attributes --- .../rootnode_contactsensor_27f76aeaf5.matter | 3 +- .../rootnode_contactsensor_27f76aeaf5.zap | 18 ++++++++- .../rootnode_contactsensor_lFAGG1bfRO.matter | 10 +++-- .../rootnode_contactsensor_lFAGG1bfRO.zap | 40 +++++++++++++++++-- 4 files changed, 61 insertions(+), 10 deletions(-) diff --git a/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter b/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter index fe20115e80b024..9f2c7509031e86 100644 --- a/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter +++ b/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter @@ -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; diff --git a/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.zap b/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.zap index 86eaad870da23c..4a57e6a0b9e2fa 100644 --- a/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.zap +++ b/examples/chef/devices/rootnode_contactsensor_27f76aeaf5.zap @@ -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, @@ -2824,7 +2840,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 1, "maxInterval": 65534, diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter index d91dc2f29f42f6..b8026a69abb6e2 100644 --- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter +++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter @@ -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; diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap index 63c13dc7b2fd97..a47dc3a0b5c53e 100644 --- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap +++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap @@ -3090,7 +3090,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "120", + "defaultValue": "2590", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3106,7 +3106,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "100", + "defaultValue": "98", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3122,7 +3122,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "10", + "defaultValue": "52560000", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -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,