-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add Bridged Actions Cluster * Replace OCTET_STRING with now supported CHAR_STRING * Remove the Bridged Actions cluster commands from the all-clusters-app * Make some Bridge Actions cluster attributes external * Revert setting some Bridge Actions attributes to external
- Loading branch information
1 parent
b555580
commit 2a1ff7c
Showing
49 changed files
with
6,310 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176 changes: 176 additions & 0 deletions
176
src/app/zap-templates/zcl/data-model/chip/bridged-actions-cluster.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Copyright (c) 2021 Project CHIP Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<configurator> | ||
<domain name="CHIP"/> | ||
|
||
<bitmap name="CommandBits" type="BITMAP16"> | ||
<cluster code="0x0025"/> | ||
<field mask="0x0001" name="InstantAction"/> | ||
<field mask="0x0002" name="InstantActionWithTransition"/> | ||
<field mask="0x0004" name="StartAction"/> | ||
<field mask="0x0008" name="StartActionWithDuration"/> | ||
<field mask="0x0010" name="StopAction"/> | ||
<field mask="0x0020" name="PauseAction"/> | ||
<field mask="0x0040" name="PauseActionWithDuration"/> | ||
<field mask="0x0080" name="ResumeAction"/> | ||
<field mask="0x0100" name="EnableAction"/> | ||
<field mask="0x0200" name="EnableActionWithDuration"/> | ||
<field mask="0x0400" name="DisableAction"/> | ||
<field mask="0x0800" name="DisableActionWithDuration"/> | ||
</bitmap> | ||
|
||
<enum name="ActionErrorEnum" type="ENUM8"> | ||
<cluster code="0x0025"/> | ||
<item value="0" name="unknown"/> | ||
<item value="1" name="interrupted"/> | ||
</enum> | ||
|
||
<enum name="ActionStatusEnum" type="ENUM8"> | ||
<cluster code="0x0025"/> | ||
<item value="0" name="Inactive"/> | ||
<item value="1" name="Active"/> | ||
<item value="2" name="Paused"/> | ||
<item value="3" name="Disabled"/> | ||
</enum> | ||
|
||
<enum name="ActionTypeEnum" type="ENUM8"> | ||
<cluster code="0x0025"/> | ||
<item value="0" name="other"/> | ||
<item value="1" name="scene"/> | ||
<item value="2" name="sequence"/> | ||
<item value="3" name="automation"/> | ||
<item value="4" name="exception"/> | ||
<item value="5" name="notification"/> | ||
<item value="6" name="alarm"/> | ||
</enum> | ||
|
||
<enum name="EndpointListTypeEnum" type="ENUM8"> | ||
<cluster code="0x0025"/> | ||
<item value="0" name="other"/> | ||
<item value="1" name="room"/> | ||
<item value="2" name="zone"/> | ||
</enum> | ||
|
||
<struct name="ActionStruct"> | ||
<cluster code="0x0025"/> | ||
<item name="ActionID" type="INT16U"/> | ||
<item name="Name" type="CHAR_STRING" length="32"/> | ||
<item name="Type" type="ActionTypeEnum"/> | ||
<item name="EndpointListID" type="INT16U"/> | ||
<item name="SupportedCommands" type="INT16U"/> | ||
<item name="Status" type="ActionStatusEnum"/> | ||
</struct> | ||
|
||
<struct name="EndpointListStruct"> | ||
<cluster code="0x0025"/> | ||
<item name="EndpointListID" type="INT16U"/> | ||
<item name="Name" type="CHAR_STRING" length="32"/> | ||
<item name="Type" type="EndpointListTypeEnum"/> | ||
<!-- TODO: Change Endpoints to INT16U array once it is supported --> | ||
<item name="Endpoints" type="OCTET_STRING" length="256"/> | ||
</struct> | ||
|
||
<cluster> | ||
<domain>General</domain> | ||
<name>Bridged Actions</name> | ||
<code>0x0025</code> | ||
<define>BRIDGED_ACTIONS_CLUSTER</define> | ||
<description>This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information.</description> | ||
|
||
<attribute side="server" code="0x0000" define="ACTION_LIST" type="ARRAY" entryType="ActionStruct" length="256" writable="false" optional="false">action list</attribute> | ||
<attribute side="server" code="0x0001" define="ENDPOINT_LIST" type="ARRAY" entryType="EndpointListStruct" length="256" writable="false" optional="false">endpoint list</attribute> | ||
<attribute side="server" code="0x0002" define="SETUP_URL" type="CHAR_STRING" length="512" writable="false" optional="true">setup url</attribute> | ||
|
||
<command source="client" code="0x00" name="InstantAction" optional="true"> | ||
<description>This command triggers an action (state change) on the involved endpoints.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x01" name="InstantActionWithTransition" optional="true"> | ||
<description>This command triggers an action (state change) on the involved endpoints, with a specified time to transition from the current state to the new state.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
<arg name="TransitionTime" type="INT16U"/> | ||
</command> | ||
|
||
<command source="client" code="0x02" name="StartAction" optional="true"> | ||
<description>This command triggers the commencement of an action on the involved endpoints.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x03" name="StartActionWithDuration" optional="true"> | ||
<description>This command triggers the commencement of an action (with a duration) on the involved endpoints.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
<arg name="Duration" type="INT32U"/> | ||
</command> | ||
|
||
<command source="client" code="0x04" name="StopAction" optional="true"> | ||
<description>This command stops the ongoing action on the involved endpoints.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x05" name="PauseAction" optional="true"> | ||
<description>This command pauses an ongoing action.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x06" name="PauseActionWithDuration" optional="true"> | ||
<description>This command pauses an ongoing action with a duration.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
<arg name="Duration" type="INT32U"/> | ||
</command> | ||
|
||
<command source="client" code="0x07" name="ResumeAction" optional="true"> | ||
<description>This command resumes a previously paused action.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x08" name="EnableAction" optional="true"> | ||
<description>This command enables a certain action or automation.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x09" name="EnableActionWithDuration" optional="true"> | ||
<description>This command enables a certain action or automation with a duration.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
<arg name="Duration" type="INT32U"/> | ||
</command> | ||
|
||
<command source="client" code="0x0A" name="DisableAction" optional="true"> | ||
<description>This command disables a certain action or automation.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
</command> | ||
|
||
<command source="client" code="0x0B" name="DisableActionWithDuration" optional="true"> | ||
<description>This command disables a certain action or automation with a duration.</description> | ||
<arg name="ActionID" type="INT16U"/> | ||
<arg name="InvokeID" type="INT32U" optional="true"/> | ||
<arg name="Duration" type="INT32U"/> | ||
</command> | ||
|
||
</cluster> | ||
</configurator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.