Skip to content

Commit 86a1190

Browse files
authored
Added Device Pairing
1 parent 554fe31 commit 86a1190

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/Zigbee-Internals.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,29 @@ Start:
121121
* Load device configuration from Flash
122122
* Query any lights declared with `ZbLight` to read their current states
123123
* Pause the state machine
124+
125+
## Pairing devices
126+
When you open pairing with `ZbPermitJoin 1` (60 seconds) or `ZbPermitJoin 99` (until next reboot), you allow new devices to join the network.
127+
128+
Example below is for an OSRAM Plug.
129+
130+
When a new devices joins, Z2T receives a TC Device Indication: `ZDO_TC_DEV_IND` (45CA) message with the device short (16 bits) address and IEEEAddress (64 bits).
131+
132+
```json
133+
16:39:26 MQT: tele/Zigbee_home/RESULT = {"ZbState":{"Status":30,"IEEEAddr":"0x7CB03EAA0A0292DD","ShortAddr":"0xF75D","PowerSource":true,"ReceiveWhenIdle":true,"Security":false}}
134+
```
135+
136+
Z2T then queries the device for additional information, like `ZbProbe` would do.
137+
138+
First probe for Active Endpoint `ZDO_ACTIVE_EP_REQ`
139+
140+
```json
141+
16:39:26 MQT: tele/Zigbee_home/RESULT = {"ZbState":{"Status":32,"ActiveEndpoints":["0x03"]}}
142+
```
143+
144+
Finally query for the following general attributes: Manufacturer Id and Model Id.
145+
146+
```
147+
16:39:26 ZIG: ZbZCLRawReceived: {"0xF75D":{"0000/0004":"OSRAM","0000/0005":"Plug 01"}}
148+
16:39:26 MQT: tele/tasmota/Zigbee_home/SENSOR = {"ZbReceived":{"0xF75D":{"Manufacturer":"OSRAM","ModelId":"Plug 01","Endpoint":3,"LinkQuality":36}}}
149+
```

0 commit comments

Comments
 (0)