Skip to content

Commit

Permalink
Zap generated for all-clusters-app with temperature control server cl…
Browse files Browse the repository at this point in the history
…uster
  • Loading branch information
jadhavrohit924 committed Jul 10, 2023
1 parent 535b676 commit 1030786
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2506,12 +2506,35 @@ server cluster RefrigeratorAlarm = 87 {
readonly attribute AlarmMap mask = 0;
readonly attribute AlarmMap state = 2;
readonly attribute AlarmMap supported = 3;
/** Attributes and commands for configuring the temperature control, and reporting temperature. */
server cluster TemperatureControl = 86 {
bitmap Feature : BITMAP32 {
kTemperatureNumber = 0x1;
kTemperatureLevel = 0x2;
}

struct TemperatureLevelStruct {
char_string<64> label = 0;
int8u temperatureLevel = 1;
}

readonly attribute int16s temperatureSetpoint = 0;
readonly attribute int16s minTemperature = 1;
readonly attribute int16s maxTemperature = 2;
readonly attribute int16s step = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct SetTemperatureRequest {
optional INT16S targetTemperature = 0;
optional INT8U targetTemperatureLevel = 1;
}

command SetTemperature(SetTemperatureRequest): DefaultSuccess = 0;
}

/** Attributes for reporting air quality classification */
Expand Down Expand Up @@ -6323,11 +6346,17 @@ endpoint 1 {
ram attribute mask default = 1;
ram attribute state default = 0;
ram attribute supported default = 1;
server cluster TemperatureControl {
ram attribute temperatureSetpoint;
ram attribute minTemperature;
ram attribute maxTemperature;
ram attribute step;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 1;
}

Expand Down
80 changes: 75 additions & 5 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -13577,6 +13577,11 @@
"mfgCode": null,
"side": "server",
"type": "AlarmMap",
"name": "TemperatureSetpoint",
"code": 0,
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -13587,17 +13592,86 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "MinTemperature",
"code": 1,
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "State",
"code": 2,
"mfgCode": null,
"side": "server",
"type": "AlarmMap",
"name": "MaxTemperature",
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "Step",
"code": 3,
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "CurrentTemperatureLevelIndex",
"code": 4,
"mfgCode": null,
"side": "server",
"type": "int8u",
"included": 0,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "SupportedTemperatureLevels",
"code": 5,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 0,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -13626,7 +13700,6 @@
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -13642,8 +13715,6 @@
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
Expand All @@ -13658,7 +13729,6 @@
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -13674,7 +13744,6 @@
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -13694,6 +13763,7 @@
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down

0 comments on commit 1030786

Please sign in to comment.