Skip to content

Commit

Permalink
[Bugfix] Waterleakdetector ScenesManagement build issue (project-chip…
Browse files Browse the repository at this point in the history
…#35406)

* Fixed default SceneTableSize value in waterleakdetector and improved the ifdef detection of the define

* Removed Scenes Management from waterleak detector and template
  • Loading branch information
lpbeliveau-silabs authored and shgutte committed Sep 10, 2024
1 parent c4ada3d commit 59055e9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 718 deletions.
182 changes: 0 additions & 182 deletions examples/chef/devices/rootnode_waterleakdetector_0b067acfa3.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1357,162 +1357,6 @@ cluster BooleanState = 69 {
readonly attribute int16u clusterRevision = 65533;
}

/** Attributes and commands for scene configuration and manipulation. */
provisional cluster ScenesManagement = 98 {
revision 1;

bitmap CopyModeBitmap : bitmap8 {
kCopyAllScenes = 0x1;
}

bitmap Feature : bitmap32 {
kSceneNames = 0x1;
}

struct AttributeValuePairStruct {
attrib_id attributeID = 0;
optional int8u valueUnsigned8 = 1;
optional int8s valueSigned8 = 2;
optional int16u valueUnsigned16 = 3;
optional int16s valueSigned16 = 4;
optional int32u valueUnsigned32 = 5;
optional int32s valueSigned32 = 6;
optional int64u valueUnsigned64 = 7;
optional int64s valueSigned64 = 8;
}

struct ExtensionFieldSet {
cluster_id clusterID = 0;
AttributeValuePairStruct attributeValueList[] = 1;
}

fabric_scoped struct SceneInfoStruct {
int8u sceneCount = 0;
fabric_sensitive int8u currentScene = 1;
fabric_sensitive group_id currentGroup = 2;
fabric_sensitive boolean sceneValid = 3;
int8u remainingCapacity = 4;
fabric_idx fabricIndex = 254;
}

readonly attribute optional nullable node_id lastConfiguredBy = 0;
readonly attribute int16u sceneTableSize = 1;
readonly attribute SceneInfoStruct fabricSceneInfo[] = 2;
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 AddSceneRequest {
group_id groupID = 0;
int8u sceneID = 1;
int32u transitionTime = 2;
char_string sceneName = 3;
ExtensionFieldSet extensionFieldSets[] = 4;
}

response struct AddSceneResponse = 0 {
status status = 0;
group_id groupID = 1;
int8u sceneID = 2;
}

request struct ViewSceneRequest {
group_id groupID = 0;
int8u sceneID = 1;
}

response struct ViewSceneResponse = 1 {
status status = 0;
group_id groupID = 1;
int8u sceneID = 2;
optional int32u transitionTime = 3;
optional char_string sceneName = 4;
optional ExtensionFieldSet extensionFieldSets[] = 5;
}

request struct RemoveSceneRequest {
group_id groupID = 0;
int8u sceneID = 1;
}

response struct RemoveSceneResponse = 2 {
status status = 0;
group_id groupID = 1;
int8u sceneID = 2;
}

request struct RemoveAllScenesRequest {
group_id groupID = 0;
}

response struct RemoveAllScenesResponse = 3 {
status status = 0;
group_id groupID = 1;
}

request struct StoreSceneRequest {
group_id groupID = 0;
int8u sceneID = 1;
}

response struct StoreSceneResponse = 4 {
status status = 0;
group_id groupID = 1;
int8u sceneID = 2;
}

request struct RecallSceneRequest {
group_id groupID = 0;
int8u sceneID = 1;
optional nullable int32u transitionTime = 2;
}

request struct GetSceneMembershipRequest {
group_id groupID = 0;
}

response struct GetSceneMembershipResponse = 6 {
status status = 0;
nullable int8u capacity = 1;
group_id groupID = 2;
optional int8u sceneList[] = 3;
}

request struct CopySceneRequest {
CopyModeBitmap mode = 0;
group_id groupIdentifierFrom = 1;
int8u sceneIdentifierFrom = 2;
group_id groupIdentifierTo = 3;
int8u sceneIdentifierTo = 4;
}

response struct CopySceneResponse = 64 {
status status = 0;
group_id groupIdentifierFrom = 1;
int8u sceneIdentifierFrom = 2;
}

/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeID": VALUE, "Value*": VALUE}]}' */
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
/** Retrieves the requested scene entry from its Scene table. */
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;
/** Removes the requested scene entry, corresponding to the value of the GroupID field, from its Scene Table */
fabric command access(invoke: manage) RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2;
/** Remove all scenes, corresponding to the value of the GroupID field, from its Scene Table */
fabric command access(invoke: manage) RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3;
/** 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 */
fabric command access(invoke: manage) StoreScene(StoreSceneRequest): StoreSceneResponse = 4;
/** Set the attributes and corresponding state for each other cluster implemented on the endpoint accordingly to the resquested scene entry in the Scene Table */
fabric command RecallScene(RecallSceneRequest): DefaultSuccess = 5;
/** 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 */
fabric command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6;
/** Allows a client to efficiently copy scenes from one group/scene identifier pair to another group/scene identifier pair. */
fabric command CopyScene(CopySceneRequest): CopySceneResponse = 64;
}

/** This cluster is used to configure a boolean sensor. */
cluster BooleanStateConfiguration = 128 {
revision 1;
Expand Down Expand Up @@ -1818,32 +1662,6 @@ endpoint 1 {
ram attribute clusterRevision default = 1;
}

server cluster ScenesManagement {
ram attribute lastConfiguredBy;
ram attribute sceneTableSize;
callback attribute fabricSceneInfo;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 6;

handle command AddScene;
handle command AddSceneResponse;
handle command ViewScene;
handle command ViewSceneResponse;
handle command RemoveScene;
handle command RemoveSceneResponse;
handle command RemoveAllScenes;
handle command RemoveAllScenesResponse;
handle command StoreScene;
handle command StoreSceneResponse;
handle command RecallScene;
handle command GetSceneMembership;
handle command GetSceneMembershipResponse;
}

server cluster BooleanStateConfiguration {
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
Loading

0 comments on commit 59055e9

Please sign in to comment.