Skip to content

Commit

Permalink
[Chef] Enable Fan Control all features (project-chip#32649)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Mar 20, 2024
1 parent cdd0f5f commit d94a527
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 24 deletions.
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

0 comments on commit d94a527

Please sign in to comment.