Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemtjanst/zcl
Zigbee™ Cluster Library in Go
https://github.com/hemtjanst/zcl
golang home-automation zigbee
Last synced: about 1 month ago
JSON representation
Zigbee™ Cluster Library in Go
- Host: GitHub
- URL: https://github.com/hemtjanst/zcl
- Owner: hemtjanst
- License: apache-2.0
- Created: 2020-04-12T13:46:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T16:27:29.000Z (8 months ago)
- Last Synced: 2024-11-07T03:07:39.928Z (about 2 months ago)
- Topics: golang, home-automation, zigbee
- Language: Go
- Homepage: https://hemtjan.st/zcl
- Size: 1.41 MB
- Stars: 5
- Watchers: 7
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZCL
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/hemtjan.st/zcl) [![CI badge](https://github.com/hemtjanst/zcl/workflows/CI/badge.svg)](https://github.com/hemtjanst/zcl/actions?query=workflow%3ACI)
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](https://github.com/hemtjanst/zyaml) using the templates in
`template/`.Regenerate code by running:
```sh
# 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.