Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chef] Enable Fan Control all features in ZAP file #32649

Merged
merged 3 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1638,22 +1638,26 @@ endpoint 1 {
}

server cluster FanControl {
ram attribute fanMode default = 0;
persist attribute fanMode default = 0;
ram attribute fanModeSequence default = 2;
ram attribute percentSetting default = 0;
ram attribute percentCurrent default = 0;
ram attribute speedMax default = 1;
ram attribute speedSetting default = 0;
ram attribute speedCurrent default = 0;
ram attribute rockSupport default = 0x00;
ram attribute rockSetting default = 0x00;
ram attribute windSupport default = 0x00;
ram attribute windSetting default = 0x00;
persist attribute percentSetting default = 0x00;
ram attribute percentCurrent default = 0x00;
ram attribute speedMax default = 100;
persist attribute speedSetting default = 0x00;
persist attribute speedCurrent default = 0;
ram attribute rockSupport default = 0x03;
persist attribute rockSetting default = 0x00;
ram attribute windSupport default = 0x03;
persist attribute windSetting default = 0x00;
persist attribute airflowDirection default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute featureMap default = 0x3F;
ram attribute clusterRevision default = 1;

handle command Step;
}
}

Expand Down
68 changes: 55 additions & 13 deletions examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2997,6 +2997,16 @@
"define": "FAN_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
"commands": [
{
"name": "Step",
"code": 0,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
}
],
"attributes": [
{
"name": "FanMode",
Expand All @@ -3005,7 +3015,7 @@
"side": "server",
"type": "FanModeEnum",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
Expand Down Expand Up @@ -3037,10 +3047,10 @@
"side": "server",
"type": "percent",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "0x00",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3056,7 +3066,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "0x00",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3072,7 +3082,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "100",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3085,10 +3095,10 @@
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "0x00",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3101,7 +3111,7 @@
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
Expand All @@ -3120,7 +3130,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x03",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3133,7 +3143,7 @@
"side": "server",
"type": "RockBitmap",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
Expand All @@ -3152,7 +3162,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x03",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3165,7 +3175,7 @@
"side": "server",
"type": "WindBitmap",
"included": 1,
"storageOption": "RAM",
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
Expand All @@ -3174,6 +3184,22 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "AirflowDirection",
"code": 11,
"mfgCode": null,
"side": "server",
"type": "AirflowDirectionEnum",
"included": 1,
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
"code": 65528,
Expand Down Expand Up @@ -3206,6 +3232,22 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "EventList",
"code": 65530,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "AttributeList",
"code": 65531,
Expand All @@ -3232,7 +3274,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "0x3F",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
Loading