Skip to content

Commit be07e57

Browse files
committed
[Chef] Enable Fan Control all features
1 parent 8f4c8b5 commit be07e57

File tree

2 files changed

+70
-24
lines changed

2 files changed

+70
-24
lines changed

examples/chef/devices/rootnode_fan_7N2TobIlOX.matter

+15-11
Original file line numberDiff line numberDiff line change
@@ -1638,22 +1638,26 @@ endpoint 1 {
16381638
}
16391639

16401640
server cluster FanControl {
1641-
ram attribute fanMode default = 0;
1641+
persist attribute fanMode default = 0;
16421642
ram attribute fanModeSequence default = 2;
1643-
ram attribute percentSetting default = 0;
1644-
ram attribute percentCurrent default = 0;
1645-
ram attribute speedMax default = 1;
1646-
ram attribute speedSetting default = 0;
1647-
ram attribute speedCurrent default = 0;
1648-
ram attribute rockSupport default = 0x00;
1649-
ram attribute rockSetting default = 0x00;
1650-
ram attribute windSupport default = 0x00;
1651-
ram attribute windSetting default = 0x00;
1643+
persist attribute percentSetting default = 0x00;
1644+
ram attribute percentCurrent default = 0x00;
1645+
ram attribute speedMax default = 100;
1646+
persist attribute speedSetting default = 0x00;
1647+
persist attribute speedCurrent default = 0;
1648+
ram attribute rockSupport default = 0x03;
1649+
persist attribute rockSetting default = 0x00;
1650+
ram attribute windSupport default = 0x03;
1651+
persist attribute windSetting default = 0x00;
1652+
persist attribute airflowDirection default = 0;
16521653
callback attribute generatedCommandList;
16531654
callback attribute acceptedCommandList;
1655+
callback attribute eventList;
16541656
callback attribute attributeList;
1655-
ram attribute featureMap default = 0;
1657+
ram attribute featureMap default = 0x3F;
16561658
ram attribute clusterRevision default = 1;
1659+
1660+
handle command Step;
16571661
}
16581662
}
16591663

examples/chef/devices/rootnode_fan_7N2TobIlOX.zap

+55-13
Original file line numberDiff line numberDiff line change
@@ -2997,6 +2997,16 @@
29972997
"define": "FAN_CONTROL_CLUSTER",
29982998
"side": "server",
29992999
"enabled": 1,
3000+
"commands": [
3001+
{
3002+
"name": "Step",
3003+
"code": 0,
3004+
"mfgCode": null,
3005+
"source": "client",
3006+
"isIncoming": 1,
3007+
"isEnabled": 1
3008+
}
3009+
],
30003010
"attributes": [
30013011
{
30023012
"name": "FanMode",
@@ -3005,7 +3015,7 @@
30053015
"side": "server",
30063016
"type": "FanModeEnum",
30073017
"included": 1,
3008-
"storageOption": "RAM",
3018+
"storageOption": "NVM",
30093019
"singleton": 0,
30103020
"bounded": 0,
30113021
"defaultValue": "0",
@@ -3037,10 +3047,10 @@
30373047
"side": "server",
30383048
"type": "percent",
30393049
"included": 1,
3040-
"storageOption": "RAM",
3050+
"storageOption": "NVM",
30413051
"singleton": 0,
30423052
"bounded": 0,
3043-
"defaultValue": "0",
3053+
"defaultValue": "0x00",
30443054
"reportable": 1,
30453055
"minInterval": 1,
30463056
"maxInterval": 65534,
@@ -3056,7 +3066,7 @@
30563066
"storageOption": "RAM",
30573067
"singleton": 0,
30583068
"bounded": 0,
3059-
"defaultValue": "0",
3069+
"defaultValue": "0x00",
30603070
"reportable": 1,
30613071
"minInterval": 1,
30623072
"maxInterval": 65534,
@@ -3072,7 +3082,7 @@
30723082
"storageOption": "RAM",
30733083
"singleton": 0,
30743084
"bounded": 0,
3075-
"defaultValue": "1",
3085+
"defaultValue": "100",
30763086
"reportable": 1,
30773087
"minInterval": 1,
30783088
"maxInterval": 65534,
@@ -3085,10 +3095,10 @@
30853095
"side": "server",
30863096
"type": "int8u",
30873097
"included": 1,
3088-
"storageOption": "RAM",
3098+
"storageOption": "NVM",
30893099
"singleton": 0,
30903100
"bounded": 0,
3091-
"defaultValue": "0",
3101+
"defaultValue": "0x00",
30923102
"reportable": 1,
30933103
"minInterval": 1,
30943104
"maxInterval": 65534,
@@ -3101,7 +3111,7 @@
31013111
"side": "server",
31023112
"type": "int8u",
31033113
"included": 1,
3104-
"storageOption": "RAM",
3114+
"storageOption": "NVM",
31053115
"singleton": 0,
31063116
"bounded": 0,
31073117
"defaultValue": "0",
@@ -3120,7 +3130,7 @@
31203130
"storageOption": "RAM",
31213131
"singleton": 0,
31223132
"bounded": 0,
3123-
"defaultValue": "0x00",
3133+
"defaultValue": "0x03",
31243134
"reportable": 1,
31253135
"minInterval": 1,
31263136
"maxInterval": 65534,
@@ -3133,7 +3143,7 @@
31333143
"side": "server",
31343144
"type": "RockBitmap",
31353145
"included": 1,
3136-
"storageOption": "RAM",
3146+
"storageOption": "NVM",
31373147
"singleton": 0,
31383148
"bounded": 0,
31393149
"defaultValue": "0x00",
@@ -3152,7 +3162,7 @@
31523162
"storageOption": "RAM",
31533163
"singleton": 0,
31543164
"bounded": 0,
3155-
"defaultValue": "0x00",
3165+
"defaultValue": "0x03",
31563166
"reportable": 1,
31573167
"minInterval": 1,
31583168
"maxInterval": 65534,
@@ -3165,7 +3175,7 @@
31653175
"side": "server",
31663176
"type": "WindBitmap",
31673177
"included": 1,
3168-
"storageOption": "RAM",
3178+
"storageOption": "NVM",
31693179
"singleton": 0,
31703180
"bounded": 0,
31713181
"defaultValue": "0x00",
@@ -3174,6 +3184,22 @@
31743184
"maxInterval": 65534,
31753185
"reportableChange": 0
31763186
},
3187+
{
3188+
"name": "AirflowDirection",
3189+
"code": 11,
3190+
"mfgCode": null,
3191+
"side": "server",
3192+
"type": "AirflowDirectionEnum",
3193+
"included": 1,
3194+
"storageOption": "NVM",
3195+
"singleton": 0,
3196+
"bounded": 0,
3197+
"defaultValue": "0",
3198+
"reportable": 1,
3199+
"minInterval": 1,
3200+
"maxInterval": 65534,
3201+
"reportableChange": 0
3202+
},
31773203
{
31783204
"name": "GeneratedCommandList",
31793205
"code": 65528,
@@ -3206,6 +3232,22 @@
32063232
"maxInterval": 65534,
32073233
"reportableChange": 0
32083234
},
3235+
{
3236+
"name": "EventList",
3237+
"code": 65530,
3238+
"mfgCode": null,
3239+
"side": "server",
3240+
"type": "array",
3241+
"included": 1,
3242+
"storageOption": "External",
3243+
"singleton": 0,
3244+
"bounded": 0,
3245+
"defaultValue": null,
3246+
"reportable": 1,
3247+
"minInterval": 1,
3248+
"maxInterval": 65534,
3249+
"reportableChange": 0
3250+
},
32093251
{
32103252
"name": "AttributeList",
32113253
"code": 65531,
@@ -3232,7 +3274,7 @@
32323274
"storageOption": "RAM",
32333275
"singleton": 0,
32343276
"bounded": 0,
3235-
"defaultValue": "0",
3277+
"defaultValue": "0x3F",
32363278
"reportable": 1,
32373279
"minInterval": 1,
32383280
"maxInterval": 65534,

0 commit comments

Comments
 (0)