Skip to content

hemtjanst/zcl

Repository files navigation

ZCL

go.dev reference CI badge

This is a Zigbee™ Cluster Library. It's primarily aimed at Go users but also contains a TypeScript library.

Generated code

The packages under cluster/ and zdo/ are auto-generated from definitions in hemtjanst/zyaml using the templates in template/.

Regenerate code by running:

# Create go/typescript source code
go run hemtjan.st/zcl/cmd/zclgen -definition-path ../path-to-zyaml

# Test and build generated code
go test hemtjan.st/zcl/...
go build hemtjan.st/zcl/...

# Transpile typescript
tsc -d ./cluster/all.ts --outFile ../javascript-output/zigbee.js --sourceMap --module amd

Attribution

Zigbee is a trademark of the Zigbee Alliance.