From d94a5270545ae93377886aa2c71a30517125ee4e Mon Sep 17 00:00:00 2001 From: Erwin Pan Date: Wed, 20 Mar 2024 23:54:14 +0800 Subject: [PATCH] [Chef] Enable Fan Control all features (#32649) --- .../devices/rootnode_fan_7N2TobIlOX.matter | 26 ++++--- .../chef/devices/rootnode_fan_7N2TobIlOX.zap | 68 +++++++++++++++---- 2 files changed, 70 insertions(+), 24 deletions(-) diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter index 097015b4634695..a0d28140e16cc7 100644 --- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter +++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter @@ -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; } } diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap index 875cd6b3ff535e..3ce2411a08df9a 100644 --- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap +++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap @@ -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", @@ -3005,7 +3015,7 @@ "side": "server", "type": "FanModeEnum", "included": 1, - "storageOption": "RAM", + "storageOption": "NVM", "singleton": 0, "bounded": 0, "defaultValue": "0", @@ -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, @@ -3056,7 +3066,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0", + "defaultValue": "0x00", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3072,7 +3082,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "100", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -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, @@ -3101,7 +3111,7 @@ "side": "server", "type": "int8u", "included": 1, - "storageOption": "RAM", + "storageOption": "NVM", "singleton": 0, "bounded": 0, "defaultValue": "0", @@ -3120,7 +3130,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0x00", + "defaultValue": "0x03", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3133,7 +3143,7 @@ "side": "server", "type": "RockBitmap", "included": 1, - "storageOption": "RAM", + "storageOption": "NVM", "singleton": 0, "bounded": 0, "defaultValue": "0x00", @@ -3152,7 +3162,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0x00", + "defaultValue": "0x03", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3165,7 +3175,7 @@ "side": "server", "type": "WindBitmap", "included": 1, - "storageOption": "RAM", + "storageOption": "NVM", "singleton": 0, "bounded": 0, "defaultValue": "0x00", @@ -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, @@ -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, @@ -3232,7 +3274,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0", + "defaultValue": "0x3F", "reportable": 1, "minInterval": 1, "maxInterval": 65534,