From 9e5c3aa0763b41a15f0b00ba3a284df4585d404e Mon Sep 17 00:00:00 2001
From: s-hadinger <49731213+s-hadinger@users.noreply.github.com>
Date: Sat, 12 Oct 2019 11:13:48 +0200
Subject: [PATCH] Added Zigbee commands
---
Zigbee.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Zigbee.md b/Zigbee.md
index f5b78b76..89cb7434 100644
--- a/Zigbee.md
+++ b/Zigbee.md
@@ -326,6 +326,18 @@ ZIG: zigbee device ready, listening...
## Using Z2T
+### Z2T Commands
+
+Here are the additional commands available when Zigbee is activated. Note: Zigbee will automatically boot the CC2530 device, configure it and wait for Zigbee messages.
+
+
+|Command|Paramaters|
+|---|---|
+|ZigbeePermitJoin|Enables or disables pairing of new devices, see below.
Ex: `ZigbeePermitjoin 1` allows pairing of new devices for 1 minute|
+|ZigbeeReset|Does a full reset and reconfiguration of the CC2530. Warning: you will need to re-pair all Zigbee devices
Ex: `ZigbeeReset 1`|
+|ZigbeeStatus|Shows data collected from connected Zigbee devices, see examples below.
`ZigbeeStatus` shows the list of all Zigbee devices seen on the network until last boot, with their short address and friendly name.
`ZigbeeStatus 1` adds Manufacturer ID and Model ID of each devices
`ZigbeeStatus 2` adds list of endpoints of each device and the clusterIds supported in each endpoint.|
+|ZigbeeZCLSend|Send a raw ZCL message to a Zigbee device. This is a low-level command, and requires to manually build the ZCL parameters. Most common usage will be provided as high-level functions.|
+
### Z2T Status
You can inspect the log output to determine whether Z2T started correctly. Z2T sends several `ZigbeeStatus` messages to inform the MQTT host about initialization:
Ex: ```{"ZigbeeStatus":{"Status":1,"Message":"CC2530 booted","RestartReason":"Watchdog","MajorRel":2,"MinorRel":6}}```