Skip to content

Commit a8df984

Browse files
authored
zap regen (#31486)
1 parent 3b5fdb8 commit a8df984

File tree

2 files changed

+121
-195
lines changed

2 files changed

+121
-195
lines changed

examples/light-switch-app/qpg/zap/switch.matter

-194
Original file line numberDiff line numberDiff line change
@@ -178,199 +178,6 @@ cluster Groups = 4 {
178178
fabric command access(invoke: manage) AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5;
179179
}
180180

181-
/** Attributes and commands for scene configuration and manipulation. */
182-
provisional cluster Scenes = 5 {
183-
revision 5;
184-
185-
bitmap CopyModeBitmap : bitmap8 {
186-
kCopyAllScenes = 0x1;
187-
}
188-
189-
bitmap Feature : bitmap32 {
190-
kSceneNames = 0x1;
191-
kExplicit = 0x2;
192-
kTableSize = 0x4;
193-
kFabricScenes = 0x8;
194-
}
195-
196-
bitmap NameSupportBitmap : bitmap8 {
197-
kSceneNames = 0x80;
198-
}
199-
200-
struct AttributeValuePair {
201-
attrib_id attributeID = 0;
202-
int32u attributeValue = 1;
203-
}
204-
205-
struct ExtensionFieldSet {
206-
cluster_id clusterID = 0;
207-
AttributeValuePair attributeValueList[] = 1;
208-
}
209-
210-
fabric_scoped struct SceneInfoStruct {
211-
int8u sceneCount = 0;
212-
fabric_sensitive int8u currentScene = 1;
213-
fabric_sensitive group_id currentGroup = 2;
214-
fabric_sensitive boolean sceneValid = 3;
215-
int8u remainingCapacity = 4;
216-
fabric_idx fabricIndex = 254;
217-
}
218-
219-
readonly attribute optional int8u sceneCount = 0;
220-
readonly attribute optional int8u currentScene = 1;
221-
readonly attribute optional group_id currentGroup = 2;
222-
readonly attribute optional boolean sceneValid = 3;
223-
readonly attribute NameSupportBitmap nameSupport = 4;
224-
readonly attribute optional nullable node_id lastConfiguredBy = 5;
225-
readonly attribute int16u sceneTableSize = 6;
226-
readonly attribute SceneInfoStruct fabricSceneInfo[] = 7;
227-
readonly attribute command_id generatedCommandList[] = 65528;
228-
readonly attribute command_id acceptedCommandList[] = 65529;
229-
readonly attribute event_id eventList[] = 65530;
230-
readonly attribute attrib_id attributeList[] = 65531;
231-
readonly attribute bitmap32 featureMap = 65532;
232-
readonly attribute int16u clusterRevision = 65533;
233-
234-
request struct AddSceneRequest {
235-
group_id groupID = 0;
236-
int8u sceneID = 1;
237-
int16u transitionTime = 2;
238-
char_string sceneName = 3;
239-
ExtensionFieldSet extensionFieldSets[] = 4;
240-
}
241-
242-
response struct AddSceneResponse = 0 {
243-
status status = 0;
244-
group_id groupID = 1;
245-
int8u sceneID = 2;
246-
}
247-
248-
request struct ViewSceneRequest {
249-
group_id groupID = 0;
250-
int8u sceneID = 1;
251-
}
252-
253-
response struct ViewSceneResponse = 1 {
254-
status status = 0;
255-
group_id groupID = 1;
256-
int8u sceneID = 2;
257-
optional int16u transitionTime = 3;
258-
optional char_string sceneName = 4;
259-
optional ExtensionFieldSet extensionFieldSets[] = 5;
260-
}
261-
262-
request struct RemoveSceneRequest {
263-
group_id groupID = 0;
264-
int8u sceneID = 1;
265-
}
266-
267-
response struct RemoveSceneResponse = 2 {
268-
status status = 0;
269-
group_id groupID = 1;
270-
int8u sceneID = 2;
271-
}
272-
273-
request struct RemoveAllScenesRequest {
274-
group_id groupID = 0;
275-
}
276-
277-
response struct RemoveAllScenesResponse = 3 {
278-
status status = 0;
279-
group_id groupID = 1;
280-
}
281-
282-
request struct StoreSceneRequest {
283-
group_id groupID = 0;
284-
int8u sceneID = 1;
285-
}
286-
287-
response struct StoreSceneResponse = 4 {
288-
status status = 0;
289-
group_id groupID = 1;
290-
int8u sceneID = 2;
291-
}
292-
293-
request struct RecallSceneRequest {
294-
group_id groupID = 0;
295-
int8u sceneID = 1;
296-
optional nullable int16u transitionTime = 2;
297-
}
298-
299-
request struct GetSceneMembershipRequest {
300-
group_id groupID = 0;
301-
}
302-
303-
response struct GetSceneMembershipResponse = 6 {
304-
status status = 0;
305-
nullable int8u capacity = 1;
306-
group_id groupID = 2;
307-
optional int8u sceneList[] = 3;
308-
}
309-
310-
request struct EnhancedAddSceneRequest {
311-
group_id groupID = 0;
312-
int8u sceneID = 1;
313-
int16u transitionTime = 2;
314-
char_string sceneName = 3;
315-
ExtensionFieldSet extensionFieldSets[] = 4;
316-
}
317-
318-
response struct EnhancedAddSceneResponse = 64 {
319-
status status = 0;
320-
group_id groupID = 1;
321-
int8u sceneID = 2;
322-
}
323-
324-
request struct EnhancedViewSceneRequest {
325-
group_id groupID = 0;
326-
int8u sceneID = 1;
327-
}
328-
329-
response struct EnhancedViewSceneResponse = 65 {
330-
status status = 0;
331-
group_id groupID = 1;
332-
int8u sceneID = 2;
333-
optional int16u transitionTime = 3;
334-
optional char_string sceneName = 4;
335-
optional ExtensionFieldSet extensionFieldSets[] = 5;
336-
}
337-
338-
request struct CopySceneRequest {
339-
CopyModeBitmap mode = 0;
340-
group_id groupIdentifierFrom = 1;
341-
int8u sceneIdentifierFrom = 2;
342-
group_id groupIdentifierTo = 3;
343-
int8u sceneIdentifierTo = 4;
344-
}
345-
346-
response struct CopySceneResponse = 66 {
347-
status status = 0;
348-
group_id groupIdentifierFrom = 1;
349-
int8u sceneIdentifierFrom = 2;
350-
}
351-
352-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
353-
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
354-
/** Retrieves the requested scene entry from its Scene table. */
355-
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;
356-
/** Removes the requested scene entry, corresponding to the value of the GroupID field, from its Scene Table */
357-
fabric command access(invoke: manage) RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2;
358-
/** Remove all scenes, corresponding to the value of the GroupID field, from its Scene Table */
359-
fabric command access(invoke: manage) RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3;
360-
/** Adds the scene entry into its Scene Table along with all extension field sets corresponding to the current state of other clusters on the same endpoint */
361-
fabric command access(invoke: manage) StoreScene(StoreSceneRequest): StoreSceneResponse = 4;
362-
/** Set the attributes and corresponding state for each other cluster implemented on the endpoint accordingly to the resquested scene entry in the Scene Table */
363-
fabric command RecallScene(RecallSceneRequest): DefaultSuccess = 5;
364-
/** Get an unused scene identifier when no commissioning tool is in the network, or for a commissioning tool to get the used scene identifiers within a certain group */
365-
fabric command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6;
366-
/** Allows a scene to be added using a finer scene transition time than the AddScene command. */
367-
fabric command EnhancedAddScene(EnhancedAddSceneRequest): EnhancedAddSceneResponse = 64;
368-
/** Allows a scene to be retrieved using a finer scene transition time than the ViewScene command */
369-
fabric command EnhancedViewScene(EnhancedViewSceneRequest): EnhancedViewSceneResponse = 65;
370-
/** Allows a client to efficiently copy scenes from one group/scene identifier pair to another group/scene identifier pair. */
371-
fabric command CopyScene(CopySceneRequest): CopySceneResponse = 66;
372-
}
373-
374181
/** Attributes and commands for switching devices between 'On' and 'Off' states. */
375182
cluster OnOff = 6 {
376183
revision 6;
@@ -2488,7 +2295,6 @@ endpoint 1 {
24882295
device type ma_onofflightswitch = 259, version 1;
24892296

24902297
binding cluster Identify;
2491-
binding cluster Scenes;
24922298
binding cluster OnOff;
24932299
binding cluster ColorControl;
24942300

examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter

+121-1
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,16 @@ cluster Thermostat = 513 {
15361536
kCoolingAndHeatingWithReheat = 5;
15371537
}
15381538

1539+
enum PresetScenarioEnum : enum8 {
1540+
kUnspecified = 0;
1541+
kOccupied = 1;
1542+
kUnoccupied = 2;
1543+
kSleep = 3;
1544+
kWake = 4;
1545+
kVacation = 5;
1546+
kUserDefined = 6;
1547+
}
1548+
15391549
enum SetpointChangeSourceEnum : enum8 {
15401550
kManual = 0;
15411551
kSchedule = 1;
@@ -1597,6 +1607,10 @@ cluster Thermostat = 513 {
15971607
kSetback = 0x10;
15981608
kAutoMode = 0x20;
15991609
kLocalTemperatureNotExposed = 0x40;
1610+
kMatterScheduleConfiguration = 0x80;
1611+
kPresets = 0x100;
1612+
kSetpoints = 0x200;
1613+
kQueuedPresetsSupported = 0x400;
16001614
}
16011615

16021616
bitmap HVACSystemTypeBitmap : bitmap8 {
@@ -1606,6 +1620,11 @@ cluster Thermostat = 513 {
16061620
kHeatingUsesFuel = 0x20;
16071621
}
16081622

1623+
bitmap PresetTypeFeaturesBitmap : bitmap16 {
1624+
kAutomatic = 0x1;
1625+
kSupportsNames = 0x2;
1626+
}
1627+
16091628
bitmap ProgrammingOperationModeBitmap : bitmap8 {
16101629
kScheduleActive = 0x1;
16111630
kAutoRecovery = 0x2;
@@ -1644,6 +1663,62 @@ cluster Thermostat = 513 {
16441663
kCoolSetpointPresent = 0x2;
16451664
}
16461665

1666+
bitmap ScheduleTypeFeaturesBitmap : bitmap16 {
1667+
kSupportsPresets = 0x1;
1668+
kSupportsSetpoints = 0x2;
1669+
kSupportsNames = 0x4;
1670+
kSupportsOff = 0x8;
1671+
}
1672+
1673+
bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 {
1674+
kHoldDurationElapsed = 0x1;
1675+
kHoldDurationElapsedOrPresetChanged = 0x2;
1676+
}
1677+
1678+
struct ScheduleTransitionStruct {
1679+
ScheduleDayOfWeekBitmap dayOfWeek = 0;
1680+
int16u transitionTime = 1;
1681+
optional octet_string<16> presetHandle = 2;
1682+
optional SystemModeEnum systemMode = 3;
1683+
optional temperature coolingSetpoint = 4;
1684+
optional temperature heatingSetpoint = 5;
1685+
}
1686+
1687+
struct ScheduleStruct {
1688+
nullable octet_string<16> scheduleHandle = 0;
1689+
SystemModeEnum systemMode = 1;
1690+
optional char_string<64> name = 2;
1691+
optional octet_string<16> presetHandle = 3;
1692+
ScheduleTransitionStruct transitions[] = 4;
1693+
optional nullable boolean builtIn = 5;
1694+
}
1695+
1696+
struct PresetStruct {
1697+
nullable octet_string<16> presetHandle = 0;
1698+
PresetScenarioEnum presetScenario = 1;
1699+
optional nullable char_string<64> name = 2;
1700+
optional temperature coolingSetpoint = 3;
1701+
optional temperature heatingSetpoint = 4;
1702+
nullable boolean builtIn = 5;
1703+
}
1704+
1705+
struct PresetTypeStruct {
1706+
PresetScenarioEnum presetScenario = 0;
1707+
int8u numberOfPresets = 1;
1708+
PresetTypeFeaturesBitmap presetTypeFeatures = 2;
1709+
}
1710+
1711+
struct QueuedPresetStruct {
1712+
nullable octet_string<16> presetHandle = 0;
1713+
nullable epoch_s transitionTimestamp = 1;
1714+
}
1715+
1716+
struct ScheduleTypeStruct {
1717+
SystemModeEnum systemMode = 0;
1718+
int8u numberOfSchedules = 1;
1719+
ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2;
1720+
}
1721+
16471722
struct WeeklyScheduleTransitionStruct {
16481723
int16u transitionTime = 0;
16491724
nullable temperature heatSetpoint = 1;
@@ -1699,6 +1774,20 @@ cluster Thermostat = 513 {
16991774
attribute access(write: manage) optional ACLouverPositionEnum ACLouverPosition = 69;
17001775
readonly attribute optional nullable temperature ACCoilTemperature = 70;
17011776
attribute access(write: manage) optional ACCapacityFormatEnum ACCapacityformat = 71;
1777+
readonly attribute optional PresetTypeStruct presetTypes[] = 72;
1778+
readonly attribute optional ScheduleTypeStruct scheduleTypes[] = 73;
1779+
readonly attribute optional int8u numberOfPresets = 74;
1780+
readonly attribute optional int8u numberOfSchedules = 75;
1781+
readonly attribute optional int8u numberOfScheduleTransitions = 76;
1782+
readonly attribute optional nullable int8u numberOfScheduleTransitionPerDay = 77;
1783+
readonly attribute optional nullable octet_string<16> activePresetHandle = 78;
1784+
readonly attribute optional nullable octet_string<16> activeScheduleHandle = 79;
1785+
attribute access(write: manage) optional PresetStruct presets[] = 80;
1786+
attribute access(write: manage) optional ScheduleStruct schedules[] = 81;
1787+
readonly attribute optional boolean presetsSchedulesEditable = 82;
1788+
readonly attribute optional TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83;
1789+
readonly attribute optional nullable epoch_s setpointHoldExpiryTimestamp = 84;
1790+
readonly attribute optional nullable QueuedPresetStruct queuedPreset = 85;
17021791
readonly attribute command_id generatedCommandList[] = 65528;
17031792
readonly attribute command_id acceptedCommandList[] = 65529;
17041793
readonly attribute event_id eventList[] = 65530;
@@ -1730,14 +1819,45 @@ cluster Thermostat = 513 {
17301819
ScheduleModeBitmap modeToReturn = 1;
17311820
}
17321821

1822+
request struct SetActiveScheduleRequestRequest {
1823+
octet_string<16> scheduleHandle = 0;
1824+
}
1825+
1826+
request struct SetActivePresetRequestRequest {
1827+
octet_string<16> presetHandle = 0;
1828+
optional int16u delayMinutes = 1;
1829+
}
1830+
1831+
request struct StartPresetsSchedulesEditRequestRequest {
1832+
int16u timeoutSeconds = 0;
1833+
}
1834+
1835+
request struct SetTemperatureSetpointHoldPolicyRequest {
1836+
TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0;
1837+
}
1838+
17331839
/** Command description for SetpointRaiseLower */
17341840
command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0;
17351841
/** Command description for SetWeeklySchedule */
17361842
command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1;
17371843
/** Command description for GetWeeklySchedule */
17381844
command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2;
1739-
/** The Clear Weekly Schedule command is used to clear the weekly schedule. */
1845+
/** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */
17401846
command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3;
1847+
/** This command is used to set the active schedule. */
1848+
command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5;
1849+
/** This command is used to set the active preset. */
1850+
command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6;
1851+
/** This command is used to start editing the presets and schedules. */
1852+
command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7;
1853+
/** This command is used to cancel editing presets and schedules. */
1854+
command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8;
1855+
/** This command is used to notify the server that all edits are done and should be committed. */
1856+
command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9;
1857+
/** This command is sent to cancel a queued preset. */
1858+
command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10;
1859+
/** This command sets the set point hold policy. */
1860+
command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11;
17411861
}
17421862

17431863
/** An interface for configuring the user interface of a thermostat (which may be remote from the thermostat). */

0 commit comments

Comments
 (0)