Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
z2m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xAAL
Code
Go
z2m
Commits
bba0a64e
Commit
bba0a64e
authored
9 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Work in progress
parent
58bbf7f0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+27
-0
27 additions, 0 deletions
README.md
devices.go
+2
-0
2 additions, 0 deletions
devices.go
z2m.go
+4
-3
4 additions, 3 deletions
z2m.go
with
33 additions
and
3 deletions
README.md
0 → 100644
+
27
−
0
View file @
bba0a64e
# xAAL Gateway for Z2M
The main goal of this project is to provide a xAAL Gateway for Zigbee devices.
After severals tests with
[
ZHA
](
https://www.home-assistant.io/integrations/zha/
)
,
we decided to switch to
[
Zigbee2MQTT
](
https://www.zigbee2mqtt.io/
)
.
The main reasons are:
-
ZHA provides a great API, but a lot of devices are not supported.
-
Z2M supports a lot of devices and provides a nice web interface to fine tune devices.
-
Z2M is written in NodeJS and we don't support JS right now.
-
Z2M is a standalone application, so we can run it in a container.
This gateway simply forwards Z2M events to xAAL bus and vice versa through MQTT.
You can now use Z2M without messing with MQTT. Simply run this gateway, Z2M and
a broker in a docker container. And you can use your Zigbee devices with xAAL.
A docker-compose file is provided to run all services.
## Installation
TBD
## FAQ
-
Why are you using this gateway instead of Z2M MQTT throught HomeAssistant ?
xAAL supports HomeAssistant out of the box. And I don't want to really on
MQTT (spof, bad security).
-
Why are you using Go instead of NodeJS or Python ?
We don't have a native JS implementation of the xAAL stack right now. And I
mainly want to test the Go implementation.
This diff is collapsed.
Click to expand it.
devices.go
+
2
−
0
View file @
bba0a64e
...
...
@@ -11,6 +11,8 @@ func setupDevice(dev *xaal.Device, bDevice BridgeDevice) {
dev
.
ProductID
=
bDevice
.
Definition
.
Model
dev
.
HWID
=
bDevice
.
IeeeAddress
dev
.
Version
=
bDevice
.
SwBuildID
dev
.
Info
=
"z2m: "
+
bDevice
.
FriendlyName
}
func
NewDevices
(
bDevice
BridgeDevice
)
{
...
...
This diff is collapsed.
Click to expand it.
z2m.go
+
4
−
3
View file @
bba0a64e
...
...
@@ -31,6 +31,7 @@ type BridgeDevice struct {
Type
string
`json:"type"`
IeeeAddress
string
`json:"ieee_address"`
SwBuildID
string
`json:"software_build_id"`
FriendlyName
string
`json:"friendly_name"`
}
type
Expose
struct
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment