Skip to content

Commit c9201c7

Browse files
committed
Fix zap issue by re-generating .matter file
1 parent 522dddc commit c9201c7

File tree

1 file changed

+192
-0
lines changed

1 file changed

+192
-0
lines changed

examples/oven-app/oven-app-common/oven-app.matter

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,77 @@ cluster OnOff = 6 {
426426
command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66;
427427
}
428428

429+
/** Attributes and commands for switching devices between 'On' and 'Off' states. */
430+
cluster OnOff = 6 {
431+
revision 6;
432+
433+
enum DelayedAllOffEffectVariantEnum : enum8 {
434+
kDelayedOffFastFade = 0;
435+
kNoFade = 1;
436+
kDelayedOffSlowFade = 2;
437+
}
438+
439+
enum DyingLightEffectVariantEnum : enum8 {
440+
kDyingLightFadeOff = 0;
441+
}
442+
443+
enum EffectIdentifierEnum : enum8 {
444+
kDelayedAllOff = 0;
445+
kDyingLight = 1;
446+
}
447+
448+
enum StartUpOnOffEnum : enum8 {
449+
kOff = 0;
450+
kOn = 1;
451+
kToggle = 2;
452+
}
453+
454+
bitmap Feature : bitmap32 {
455+
kLighting = 0x1;
456+
kDeadFrontBehavior = 0x2;
457+
kOffOnly = 0x4;
458+
}
459+
460+
bitmap OnOffControlBitmap : bitmap8 {
461+
kAcceptOnlyWhenOn = 0x1;
462+
}
463+
464+
readonly attribute boolean onOff = 0;
465+
readonly attribute optional boolean globalSceneControl = 16384;
466+
attribute optional int16u onTime = 16385;
467+
attribute optional int16u offWaitTime = 16386;
468+
attribute access(write: manage) optional nullable StartUpOnOffEnum startUpOnOff = 16387;
469+
readonly attribute command_id generatedCommandList[] = 65528;
470+
readonly attribute command_id acceptedCommandList[] = 65529;
471+
readonly attribute attrib_id attributeList[] = 65531;
472+
readonly attribute bitmap32 featureMap = 65532;
473+
readonly attribute int16u clusterRevision = 65533;
474+
475+
request struct OffWithEffectRequest {
476+
EffectIdentifierEnum effectIdentifier = 0;
477+
enum8 effectVariant = 1;
478+
}
479+
480+
request struct OnWithTimedOffRequest {
481+
OnOffControlBitmap onOffControl = 0;
482+
int16u onTime = 1;
483+
int16u offWaitTime = 2;
484+
}
485+
486+
/** On receipt of this command, a device SHALL enter its ‘Off’ state. This state is device dependent, but it is recommended that it is used for power off or similar functions. On receipt of the Off command, the OnTime attribute SHALL be set to 0. */
487+
command Off(): DefaultSuccess = 0;
488+
/** On receipt of this command, a device SHALL enter its ‘On’ state. This state is device dependent, but it is recommended that it is used for power on or similar functions. On receipt of the On command, if the value of the OnTime attribute is equal to 0, the device SHALL set the OffWaitTime attribute to 0. */
489+
command On(): DefaultSuccess = 1;
490+
/** On receipt of this command, if a device is in its ‘Off’ state it SHALL enter its ‘On’ state. Otherwise, if it is in its ‘On’ state it SHALL enter its ‘Off’ state. On receipt of the Toggle command, if the value of the OnOff attribute is equal to FALSE and if the value of the OnTime attribute is equal to 0, the device SHALL set the OffWaitTime attribute to 0. If the value of the OnOff attribute is equal to TRUE, the OnTime attribute SHALL be set to 0. */
491+
command Toggle(): DefaultSuccess = 2;
492+
/** The OffWithEffect command allows devices to be turned off using enhanced ways of fading. */
493+
command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64;
494+
/** This command allows the recall of the settings when the device was turned off. */
495+
command OnWithRecallGlobalScene(): DefaultSuccess = 65;
496+
/** This command allows devices to be turned on for a specific duration with a guarded off duration so that SHOULD the device be subsequently turned off, further OnWithTimedOff commands, received during this time, are prevented from turning the devices back on. */
497+
command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66;
498+
}
499+
429500
/** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */
430501
cluster Descriptor = 29 {
431502
revision 3;
@@ -452,6 +523,26 @@ cluster Descriptor = 29 {
452523
readonly attribute int16u clusterRevision = 65533;
453524
}
454525

526+
/** The Binding Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for supporting the binding table. */
527+
cluster Binding = 30 {
528+
revision 1;
529+
530+
fabric_scoped struct TargetStruct {
531+
optional node_id node = 1;
532+
optional group_id group = 2;
533+
optional endpoint_no endpoint = 3;
534+
optional cluster_id cluster = 4;
535+
fabric_idx fabricIndex = 254;
536+
}
537+
538+
attribute access(write: manage) TargetStruct binding[] = 0;
539+
readonly attribute command_id generatedCommandList[] = 65528;
540+
readonly attribute command_id acceptedCommandList[] = 65529;
541+
readonly attribute attrib_id attributeList[] = 65531;
542+
readonly attribute bitmap32 featureMap = 65532;
543+
readonly attribute int16u clusterRevision = 65533;
544+
}
545+
455546
/** The Access Control Cluster exposes a data model view of a
456547
Node's Access Control List (ACL), which codifies the rules used to manage
457548
and enforce Access Control for the Node's endpoints and their associated
@@ -2049,6 +2140,87 @@ cluster TemperatureControl = 86 {
20492140
command SetTemperature(SetTemperatureRequest): DefaultSuccess = 0;
20502141
}
20512142

2143+
/** An interface for controlling a fan in a heating/cooling system. */
2144+
cluster FanControl = 514 {
2145+
revision 5;
2146+
2147+
enum AirflowDirectionEnum : enum8 {
2148+
kForward = 0;
2149+
kReverse = 1;
2150+
}
2151+
2152+
enum FanModeEnum : enum8 {
2153+
kOff = 0;
2154+
kLow = 1;
2155+
kMedium = 2;
2156+
kHigh = 3;
2157+
kOn = 4;
2158+
kAuto = 5;
2159+
kSmart = 6;
2160+
}
2161+
2162+
enum FanModeSequenceEnum : enum8 {
2163+
kOffLowMedHigh = 0;
2164+
kOffLowHigh = 1;
2165+
kOffLowMedHighAuto = 2;
2166+
kOffLowHighAuto = 3;
2167+
kOffHighAuto = 4;
2168+
kOffHigh = 5;
2169+
}
2170+
2171+
enum StepDirectionEnum : enum8 {
2172+
kIncrease = 0;
2173+
kDecrease = 1;
2174+
}
2175+
2176+
bitmap Feature : bitmap32 {
2177+
kMultiSpeed = 0x1;
2178+
kAuto = 0x2;
2179+
kRocking = 0x4;
2180+
kWind = 0x8;
2181+
kStep = 0x10;
2182+
kAirflowDirection = 0x20;
2183+
}
2184+
2185+
bitmap RockBitmap : bitmap8 {
2186+
kRockLeftRight = 0x1;
2187+
kRockUpDown = 0x2;
2188+
kRockRound = 0x4;
2189+
}
2190+
2191+
bitmap WindBitmap : bitmap8 {
2192+
kSleepWind = 0x1;
2193+
kNaturalWind = 0x2;
2194+
}
2195+
2196+
attribute FanModeEnum fanMode = 0;
2197+
readonly attribute FanModeSequenceEnum fanModeSequence = 1;
2198+
attribute nullable percent percentSetting = 2;
2199+
readonly attribute percent percentCurrent = 3;
2200+
readonly attribute optional int8u speedMax = 4;
2201+
attribute optional nullable int8u speedSetting = 5;
2202+
readonly attribute optional int8u speedCurrent = 6;
2203+
readonly attribute optional RockBitmap rockSupport = 7;
2204+
attribute optional RockBitmap rockSetting = 8;
2205+
readonly attribute optional WindBitmap windSupport = 9;
2206+
attribute optional WindBitmap windSetting = 10;
2207+
attribute optional AirflowDirectionEnum airflowDirection = 11;
2208+
readonly attribute command_id generatedCommandList[] = 65528;
2209+
readonly attribute command_id acceptedCommandList[] = 65529;
2210+
readonly attribute attrib_id attributeList[] = 65531;
2211+
readonly attribute bitmap32 featureMap = 65532;
2212+
readonly attribute int16u clusterRevision = 65533;
2213+
2214+
request struct StepRequest {
2215+
StepDirectionEnum direction = 0;
2216+
optional boolean wrap = 1;
2217+
optional boolean lowestOff = 2;
2218+
}
2219+
2220+
/** This command speeds up or slows down the fan, in steps, without a client having to know the fan speed. */
2221+
command Step(StepRequest): DefaultSuccess = 0;
2222+
}
2223+
20522224
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
20532225
cluster TemperatureMeasurement = 1026 {
20542226
revision 4;
@@ -2081,6 +2253,15 @@ endpoint 0 {
20812253
callback attribute clusterRevision;
20822254
}
20832255

2256+
server cluster Binding {
2257+
callback attribute binding;
2258+
callback attribute generatedCommandList;
2259+
callback attribute acceptedCommandList;
2260+
callback attribute attributeList;
2261+
callback attribute featureMap;
2262+
callback attribute clusterRevision;
2263+
}
2264+
20842265
server cluster AccessControl {
20852266
emits event AccessControlEntryChanged;
20862267
emits event AccessControlExtensionChanged;
@@ -2465,6 +2646,8 @@ endpoint 2 {
24652646
endpoint 3 {
24662647
device type cooktop = 120, version 1;
24672648

2649+
binding cluster OnOff;
2650+
binding cluster FanControl;
24682651

24692652
server cluster OnOff {
24702653
ram attribute onOff;
@@ -2488,6 +2671,15 @@ endpoint 3 {
24882671
callback attribute featureMap;
24892672
callback attribute clusterRevision;
24902673
}
2674+
2675+
server cluster Binding {
2676+
callback attribute binding;
2677+
callback attribute generatedCommandList;
2678+
callback attribute acceptedCommandList;
2679+
callback attribute attributeList;
2680+
callback attribute featureMap;
2681+
callback attribute clusterRevision;
2682+
}
24912683
}
24922684
endpoint 4 {
24932685
device type cook_surface = 119, version 1;

0 commit comments

Comments
 (0)