jbisterfeldt / zcl

Zigbee™ Cluster Library in Go

Home Page:https://hemtjan.st/zcl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Zigbee™ Cluster Library in Go

https://hemtjan.st/zcl

License:Apache License 2.0


Languages

Language:Go 77.2%Language:TypeScript 22.8%