Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom ZCL extensions inside src/app/zap-templates #4192

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/all-clusters-app/all-clusters-common/gen/attribute-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,16 @@
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Binding

// Client attributes
#define ZCL_CLUSTER_REVISION_CLIENT_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_CLIENT_ATTRIBUTE_ID (0xFFFE)

// Server attributes
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)
Comment on lines +4472 to +4477
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is duplicating values for other clusters?

Could we just define the "global" attribute ids that are the same for all clusters once? Followup for this, please.

Also, in CHIP, I don't see a "reporting status" attribute. What I do see is a "FeatureMap" attribute with ID 0xFFFC. Again, followup.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is duplicating values for other clusters?

Could we just define the "global" attribute ids that are the same for all clusters once? Followup for this, please.

I opened #4219 for this one (with a patch).


// Attribute ids for cluster: Sample Mfg Specific Cluster

// Client attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5662,6 +5662,32 @@
ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID, "uuuub", startIndex, total, startIndex, count, \
endpointInformationRecordList, endpointInformationRecordListLen);

/** @brief Command description for Bind
*
* Command: Bind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterBind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_BIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for Unbind
*
* Command: Unbind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterUnbind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_UNBIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for CommandOne
*
* Command: CommandOne
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
// Definitions for cluster: ZLL Commissioning
#define ZCL_ZLL_COMMISSIONING_CLUSTER_ID (0x1000)

// Definitions for cluster: Binding
#define ZCL_BINDING_CLUSTER_ID (0xF000)

// Definitions for cluster: Sample Mfg Specific Cluster
#define ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID (0xFC00)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@
#define ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID (0x42)
#define ZCL_GET_ENDPOINT_LIST_RESPONSE_COMMAND_ID (0x42)

// Commands for cluster: Binding
#define ZCL_BIND_COMMAND_ID (0x00)
#define ZCL_UNBIND_COMMAND_ID (0x01)

// Commands for cluster: Sample Mfg Specific Cluster
#define ZCL_COMMAND_ONE_COMMAND_ID (0x00)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@
#define CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER
#endif

#if defined(ZCL_USING_BINDING_CLUSTER_SERVER) || defined(ZCL_USING_BINDING_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, 61440, "Binding" },
#else
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER
#endif

#if defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_SERVER) || defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER { ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID, 64512, "Sample Mfg Specific Cluster" },
#else
Expand Down Expand Up @@ -850,6 +856,7 @@
CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER \
CHIP_PRINTCLUSTER_DIAGNOSTICS_CLUSTER \
CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER \
CHIP_PRINTCLUSTER_BINDING_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER_2 \
CHIP_PRINTCLUSTER_OTA_CONFIGURATION_CLUSTER \
Expand Down
10 changes: 10 additions & 0 deletions examples/lighting-app/lighting-common/gen/attribute-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,16 @@
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Binding

// Client attributes
#define ZCL_CLUSTER_REVISION_CLIENT_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_CLIENT_ATTRIBUTE_ID (0xFFFE)

// Server attributes
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Sample Mfg Specific Cluster

// Client attributes
Expand Down
26 changes: 26 additions & 0 deletions examples/lighting-app/lighting-common/gen/client-command-macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -5662,6 +5662,32 @@
ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID, "uuuub", startIndex, total, startIndex, count, \
endpointInformationRecordList, endpointInformationRecordListLen);

/** @brief Command description for Bind
*
* Command: Bind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterBind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_BIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for Unbind
*
* Command: Unbind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterUnbind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_UNBIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for CommandOne
*
* Command: CommandOne
Expand Down
3 changes: 3 additions & 0 deletions examples/lighting-app/lighting-common/gen/cluster-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
// Definitions for cluster: ZLL Commissioning
#define ZCL_ZLL_COMMISSIONING_CLUSTER_ID (0x1000)

// Definitions for cluster: Binding
#define ZCL_BINDING_CLUSTER_ID (0xF000)

// Definitions for cluster: Sample Mfg Specific Cluster
#define ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID (0xFC00)

Expand Down
4 changes: 4 additions & 0 deletions examples/lighting-app/lighting-common/gen/command-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@
#define ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID (0x42)
#define ZCL_GET_ENDPOINT_LIST_RESPONSE_COMMAND_ID (0x42)

// Commands for cluster: Binding
#define ZCL_BIND_COMMAND_ID (0x00)
#define ZCL_UNBIND_COMMAND_ID (0x01)

// Commands for cluster: Sample Mfg Specific Cluster
#define ZCL_COMMAND_ONE_COMMAND_ID (0x00)

Expand Down
7 changes: 7 additions & 0 deletions examples/lighting-app/lighting-common/gen/print-cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@
#define CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER
#endif

#if defined(ZCL_USING_BINDING_CLUSTER_SERVER) || defined(ZCL_USING_BINDING_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, 61440, "Binding" },
#else
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER
#endif

#if defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_SERVER) || defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER { ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID, 64512, "Sample Mfg Specific Cluster" },
#else
Expand Down Expand Up @@ -850,6 +856,7 @@
CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER \
CHIP_PRINTCLUSTER_DIAGNOSTICS_CLUSTER \
CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER \
CHIP_PRINTCLUSTER_BINDING_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER_2 \
CHIP_PRINTCLUSTER_OTA_CONFIGURATION_CLUSTER \
Expand Down
10 changes: 10 additions & 0 deletions examples/lock-app/lock-common/gen/attribute-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,16 @@
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Binding

// Client attributes
#define ZCL_CLUSTER_REVISION_CLIENT_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_CLIENT_ATTRIBUTE_ID (0xFFFE)

// Server attributes
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Sample Mfg Specific Cluster

// Client attributes
Expand Down
26 changes: 26 additions & 0 deletions examples/lock-app/lock-common/gen/client-command-macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -5662,6 +5662,32 @@
ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID, "uuuub", startIndex, total, startIndex, count, \
endpointInformationRecordList, endpointInformationRecordListLen);

/** @brief Command description for Bind
*
* Command: Bind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterBind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_BIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for Unbind
*
* Command: Unbind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterUnbind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_UNBIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for CommandOne
*
* Command: CommandOne
Expand Down
3 changes: 3 additions & 0 deletions examples/lock-app/lock-common/gen/cluster-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
// Definitions for cluster: ZLL Commissioning
#define ZCL_ZLL_COMMISSIONING_CLUSTER_ID (0x1000)

// Definitions for cluster: Binding
#define ZCL_BINDING_CLUSTER_ID (0xF000)

// Definitions for cluster: Sample Mfg Specific Cluster
#define ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID (0xFC00)

Expand Down
4 changes: 4 additions & 0 deletions examples/lock-app/lock-common/gen/command-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@
#define ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID (0x42)
#define ZCL_GET_ENDPOINT_LIST_RESPONSE_COMMAND_ID (0x42)

// Commands for cluster: Binding
#define ZCL_BIND_COMMAND_ID (0x00)
#define ZCL_UNBIND_COMMAND_ID (0x01)

// Commands for cluster: Sample Mfg Specific Cluster
#define ZCL_COMMAND_ONE_COMMAND_ID (0x00)

Expand Down
7 changes: 7 additions & 0 deletions examples/lock-app/lock-common/gen/print-cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@
#define CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER
#endif

#if defined(ZCL_USING_BINDING_CLUSTER_SERVER) || defined(ZCL_USING_BINDING_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, 61440, "Binding" },
#else
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER
#endif

#if defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_SERVER) || defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER { ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID, 64512, "Sample Mfg Specific Cluster" },
#else
Expand Down Expand Up @@ -850,6 +856,7 @@
CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER \
CHIP_PRINTCLUSTER_DIAGNOSTICS_CLUSTER \
CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER \
CHIP_PRINTCLUSTER_BINDING_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER_2 \
CHIP_PRINTCLUSTER_OTA_CONFIGURATION_CLUSTER \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,16 @@
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Binding

// Client attributes
#define ZCL_CLUSTER_REVISION_CLIENT_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_CLIENT_ATTRIBUTE_ID (0xFFFE)

// Server attributes
#define ZCL_CLUSTER_REVISION_SERVER_ATTRIBUTE_ID (0xFFFD)
#define ZCL_REPORTING_STATUS_SERVER_ATTRIBUTE_ID (0xFFFE)

// Attribute ids for cluster: Sample Mfg Specific Cluster

// Client attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5662,6 +5662,32 @@
ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID, "uuuub", startIndex, total, startIndex, count, \
endpointInformationRecordList, endpointInformationRecordListLen);

/** @brief Command description for Bind
*
* Command: Bind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterBind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_BIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for Unbind
*
* Command: Unbind
* @param nodeId INT64U
* @param groupId INT16U
* @param endpointId INT8U
* @param clusterId CLUSTER_ID
*/
#define emberAfFillCommandBindingClusterUnbind(nodeId, groupId, endpointId, clusterId) \
emberAfFillExternalBuffer(mask, \
\
ZCL_UNBIND_COMMAND_ID, "uuuu", nodeId, groupId, endpointId, clusterId);

/** @brief Command description for CommandOne
*
* Command: CommandOne
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
// Definitions for cluster: ZLL Commissioning
#define ZCL_ZLL_COMMISSIONING_CLUSTER_ID (0x1000)

// Definitions for cluster: Binding
#define ZCL_BINDING_CLUSTER_ID (0xF000)

// Definitions for cluster: Sample Mfg Specific Cluster
#define ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID (0xFC00)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@
#define ZCL_GET_ENDPOINT_LIST_REQUEST_COMMAND_ID (0x42)
#define ZCL_GET_ENDPOINT_LIST_RESPONSE_COMMAND_ID (0x42)

// Commands for cluster: Binding
#define ZCL_BIND_COMMAND_ID (0x00)
#define ZCL_UNBIND_COMMAND_ID (0x01)

// Commands for cluster: Sample Mfg Specific Cluster
#define ZCL_COMMAND_ONE_COMMAND_ID (0x00)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@
#define CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER
#endif

#if defined(ZCL_USING_BINDING_CLUSTER_SERVER) || defined(ZCL_USING_BINDING_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER { ZCL_BINDING_CLUSTER_ID, 61440, "Binding" },
#else
#define CHIP_PRINTCLUSTER_BINDING_CLUSTER
#endif

#if defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_SERVER) || defined(ZCL_USING_SAMPLE_MFG_SPECIFIC_CLUSTER_CLIENT)
#define CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER { ZCL_SAMPLE_MFG_SPECIFIC_CLUSTER_ID, 64512, "Sample Mfg Specific Cluster" },
#else
Expand Down Expand Up @@ -850,6 +856,7 @@
CHIP_PRINTCLUSTER_ELECTRICAL_MEASUREMENT_CLUSTER \
CHIP_PRINTCLUSTER_DIAGNOSTICS_CLUSTER \
CHIP_PRINTCLUSTER_ZLL_COMMISSIONING_CLUSTER \
CHIP_PRINTCLUSTER_BINDING_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER \
CHIP_PRINTCLUSTER_SAMPLE_MFG_SPECIFIC_CLUSTER_2 \
CHIP_PRINTCLUSTER_OTA_CONFIGURATION_CLUSTER \
Expand Down
3 changes: 2 additions & 1 deletion scripts/tools/zap_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
#

ZAP_TEMPLATES=$PWD/src/app/zap-templates
cd ./third_party/zap/repo/

node ./src-script/zap-start.js --logToStdout --gen ../../../src/app/zap-templates/app-templates.json
node ./src-script/zap-start.js --logToStdout -z "$ZAP_TEMPLATES"/zcl/zcl.json --gen "$ZAP_TEMPLATES"/app-templates.json
3 changes: 2 additions & 1 deletion scripts/tools/zap_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ if [ ! -d "$OUTPUT_DIRECTORY" ]; then
mkdir -p "$OUTPUT_DIRECTORY"
fi

ZAP_TEMPLATES=$PWD/src/app/zap-templates
cd ./third_party/zap/repo/
node ./src-script/zap-generate.js -z ./zcl-builtin/silabs/zcl.json -g ../../../src/app/zap-templates/app-templates.json -i "$FILE_PATH" -o "$OUTPUT_DIRECTORY"
node ./src-script/zap-generate.js -z "$ZAP_TEMPLATES"/zcl/zcl.json -g "$ZAP_TEMPLATES"/app-templates.json -i "$FILE_PATH" -o "$OUTPUT_DIRECTORY"

# Check if clang-format is available
if command -v clang-format &>/dev/null; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/tools/zap_generate_chip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
# limitations under the License.
#

ZAP_TEMPLATES=$PWD/src/app/zap-templates
cd ./third_party/zap/repo/
node ./src-script/zap-generate.js -z ./zcl-builtin/silabs/zcl.json -g ../../../src/app/zap-templates/chip-templates.json -i ../../../examples/all-clusters-app/all-clusters-common/all-clusters-app.zap -o ../../../
node ./src-script/zap-generate.js -z "$ZAP_TEMPLATES"/zcl/zcl.json -g "$ZAP_TEMPLATES"/chip-templates.json -i ../../../examples/all-clusters-app/all-clusters-common/all-clusters-app.zap -o ../../../
Loading