Skip to content

Commit

Permalink
Set all StartUpOnOff, StartUpCurrentLevel to null
Browse files Browse the repository at this point in the history
And also StartUpColorTemperatureMireds
Setting them to null will set the behavior to restore last stored value when
the power cycle
  • Loading branch information
erwinpan1 committed Sep 30, 2024
1 parent 7565e09 commit 60128dc
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ endpoint 1 {
ram attribute colorTempPhysicalMinMireds default = 0x0001;
ram attribute colorTempPhysicalMaxMireds default = 0xFEFF;
ram attribute coupleColorTempToLevelMinMireds;
persist attribute startUpColorTemperatureMireds default = 0xFEFF;
persist attribute startUpColorTemperatureMireds;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3485,7 +3485,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFEFF",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ endpoint 1 {
ram attribute globalSceneControl default = 1;
ram attribute onTime default = 0;
ram attribute offWaitTime default = 0;
persist attribute startUpOnOff default = 0;
persist attribute startUpOnOff;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand All @@ -1828,7 +1828,7 @@ endpoint 1 {
ram attribute maxLevel default = 0xFE;
ram attribute options default = 0x03;
ram attribute onLevel default = 0xFE;
persist attribute startUpCurrentLevel default = 0x00;
persist attribute startUpCurrentLevel;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
6 changes: 3 additions & 3 deletions examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2953,7 +2953,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3221,7 +3221,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3568,4 +3568,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2953,7 +2953,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3237,7 +3237,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3861,4 +3861,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ endpoint 1 {
ram attribute globalSceneControl default = 1;
ram attribute onTime default = 0;
ram attribute offWaitTime default = 0;
persist attribute startUpOnOff default = 0;
persist attribute startUpOnOff;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand All @@ -2104,7 +2104,7 @@ endpoint 1 {
ram attribute maxLevel default = 0xFE;
ram attribute options default = 0x03;
ram attribute onLevel default = 0xFE;
persist attribute startUpCurrentLevel default = 0x00;
persist attribute startUpCurrentLevel;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down Expand Up @@ -2154,7 +2154,7 @@ endpoint 1 {
ram attribute colorTempPhysicalMinMireds default = 0x009A;
ram attribute colorTempPhysicalMaxMireds default = 0x01C6;
ram attribute coupleColorTempToLevelMinMireds default = 0x0000;
persist attribute startUpColorTemperatureMireds default = 0x00FA;
persist attribute startUpColorTemperatureMireds;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
17 changes: 8 additions & 9 deletions examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"category": "matter",
"version": "chip-v1"
}
],
Expand Down Expand Up @@ -2921,7 +2920,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3189,7 +3188,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3720,7 +3719,7 @@
"code": 8,
"mfgCode": null,
"side": "server",
"type": "ColorModeEnum",
"type": "enum8",
"included": 1,
"storageOption": "NVM",
"singleton": 0,
Expand All @@ -3736,7 +3735,7 @@
"code": 15,
"mfgCode": null,
"side": "server",
"type": "OptionsBitmap",
"type": "bitmap8",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down Expand Up @@ -3784,7 +3783,7 @@
"code": 16385,
"mfgCode": null,
"side": "server",
"type": "EnhancedColorModeEnum",
"type": "enum8",
"included": 1,
"storageOption": "NVM",
"singleton": 0,
Expand Down Expand Up @@ -3880,7 +3879,7 @@
"code": 16394,
"mfgCode": null,
"side": "server",
"type": "ColorCapabilitiesBitmap",
"type": "bitmap16",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down Expand Up @@ -3949,7 +3948,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00FA",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -4058,4 +4057,4 @@
"parentEndpointIdentifier": null
}
]
}
}
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ endpoint 1 {
ram attribute globalSceneControl default = 1;
ram attribute onTime default = 0;
ram attribute offWaitTime default = 0;
persist attribute startUpOnOff default = 0;
persist attribute startUpOnOff;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand All @@ -1784,7 +1784,7 @@ endpoint 1 {
ram attribute maxLevel default = 0xFE;
ram attribute options default = 0x01;
ram attribute onLevel default = 0xFE;
persist attribute startUpCurrentLevel default = 0x01;
persist attribute startUpCurrentLevel;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
6 changes: 3 additions & 3 deletions examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2921,7 +2921,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3189,7 +3189,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x01",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3478,4 +3478,4 @@
"parentEndpointIdentifier": null
}
]
}
}
6 changes: 3 additions & 3 deletions examples/chef/devices/rootnode_onofflight_samplemei.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2921,7 +2921,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3189,7 +3189,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x01",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3635,4 +3635,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ endpoint 1 {
}

server cluster OnOff {
ram attribute onOff default = 0;
persist attribute onOff default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2906,7 +2906,7 @@
"side": "server",
"type": "boolean",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ endpoint 1 {
ram attribute globalSceneControl default = 1;
ram attribute onTime default = 0;
ram attribute offWaitTime default = 0;
persist attribute startUpOnOff default = 0;
persist attribute startUpOnOff;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2921,7 +2921,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3226,4 +3226,4 @@
"parentEndpointIdentifier": null
}
]
}
}

0 comments on commit 60128dc

Please sign in to comment.