Skip to content
Snippets Groups Projects
Commit bba0a64e authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Work in progress

parent 58bbf7f0
No related branches found
No related tags found
No related merge requests found
# 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.
......@@ -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) {
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment