ZigBee Binding with Koenkk Z-Stack Firmware compability

Hi,

I like to switch from the XIAOMI bridge to the openhab 2 ZigBee Binding with the use of an pre-flashed CC2531 Zigbee stick ( Koenkk Z-Stack fw ). The Sick is shown as online in the PaperUI but I am not able to pair an ZigBee device with the binding. Is the Koenkk fw-stack working with this binding?

best retgards René

It might work, but it’s not the recommended firmware. Maybe someone else will comment on that.

Xiaomi devices tend to be painful to include and you need to keep pressing the button every 0.5 seconds or so for a while after resetting it to allow it to fully discover.

Hi Chris,

After searchning for new ZigBee devices I receive the following messages in the log:

2019-11-14 12:37:09.936 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_cc2531:stick1

2019-11-14 12:37:09.939 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Permit join to 65532/0 for 60 seconds.

2019-11-14 12:37:09.942 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: Added transaction to queue, len=1, transaction=ZigBeeTransaction [queueTime=0, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=--, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.945 [DEBUG] [transaction.ZigBeeTransactionManager] - 65532/0: Sending ZigBeeTransaction [queueTime=3, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.948 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding

2019-11-14 12:37:09.951 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:09.955 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=65532/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=11, payload=00 3C 01]

2019-11-14 12:37:09.975 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: Added transaction to queue, len=2, transaction=ZigBeeTransaction [queueTime=0, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=--, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.978 [DEBUG] [transaction.ZigBeeTransactionManager] - 0/0: Sending ZigBeeTransaction [queueTime=1886492, state=WAITING, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.980 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 2 outstanding

2019-11-14 12:37:09.983 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:09.987 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=12, payload=00 3C 01]

2019-11-14 12:37:10.026 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45cb

2019-11-14 12:37:10.028 [DEBUG] [transaction.ZigBeeTransactionManager] - 0/0: Sending ZigBeeTransaction [queueTime=54, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.030 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 3 outstanding

2019-11-14 12:37:10.031 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45b6

2019-11-14 12:37:10.032 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:10.035 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=13, payload=00 3C 01]

2019-11-14 12:37:10.037 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=8036, addressMode=null, radius=0, apsSecurity=false, apsCounter=--, payload=00 00]

2019-11-14 12:37:10.038 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS]

2019-11-14 12:37:10.040 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] 

2019-11-14 12:37:10.041 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=67, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.043 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=1886557, state=DISPATCHED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.044 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=102, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.069 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45b6

2019-11-14 12:37:10.074 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=8036, addressMode=null, radius=0, apsSecurity=false, apsCounter=--, payload=00 00]

2019-11-14 12:37:10.075 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS]

2019-11-14 12:37:10.076 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] 

2019-11-14 12:37:10.077 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=103, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.079 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=1886594, state=DISPATCHED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.080 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=138, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.951 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=10009, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.952 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 2 outstanding

2019-11-14 12:37:19.953 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: transactionComplete FAILED 0

2019-11-14 12:37:19.954 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: transactionComplete exceeded retries 1

2019-11-14 12:37:19.955 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction terminated: ZigBeeTransaction [queueTime=10013, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.983 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=1896498, state=FAILED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.984 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 1 outstanding

2019-11-14 12:37:19.985 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete FAILED 0

2019-11-14 12:37:19.985 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete exceeded retries 2

2019-11-14 12:37:19.986 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction terminated: ZigBeeTransaction [queueTime=1896501, state=FAILED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:20.031 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=10057, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:20.032 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 0 outstanding

2019-11-14 12:37:20.033 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete FAILED -1

2019-11-14 12:37:20.034 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: Added transaction to queue, len=1, transaction=ZigBeeTransaction [queueTime=10060, state=WAITING, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:38:10.054 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45cb

I tried to press the button every 0,5s with no success.

best regards René

If you want to use Chris` binding, why don’t you use the standard TI fw then (–> reflash)? If you can’t flash the stick, but it’s already flashed with zigbee2mqtt, why don’t you use then zigbee2mqtt with a mqtt broker in OH2?

1 Like

Hi,

I bought the needed equipent for flashing but have the same problems with the original Texas Instruments firmware. I am not able to pair zigbee devices with the CC2531 stick :frowning: . Can someone guide me to find the failure?

best regards René

It’s very difficult to know what you are doing…

What version of the binding are you using? What device are you trying to join? What are you doing to join it (are you for instance resetting the device)? What does the log show?

Hi Chris.

I am using an Raspberry Pi4 with openhabian Image ( openHAB 2.5.0 Build #1756 ). The ZigBee Stick is an CC2531 flashed with the Texas Instruments Firmware mentioned in the binding readme ( CC2531ZNP-Pro-Secure_Standard.hex ). I have tried to bind various Xiaomi ZigBee devices with no success like:

  • Xiaomi Aqara Wireless Mini Switch
  • Xiaomi Aqara Door and Window Sensor
  • Xiaomi Aqara Human Motion Sensor.

The Zigbee stick has the following configuration:
Thing zigbee:coordinator_cc2531:stick1 "Zigbee USB Stick" [zigbee_port="/dev/ttyACM0", zigbee_baud=38400, zigbee_flowcontrol=2, zigbee_childtimeout=864000, zigbee_concentrator=1, zigbee_meshupdateperiod=86400, zigbee_panid=32647, zigbee_extendedpanid="8eb24d5dc58dc71a", zigbee_networkkey="5e bd 52 ed 39 16 99 59 92 ec 87 91 36 4b 05 ac", zigbee_powermode=1, zigbee_txpower=8 ]

The Stick is marked as online in the Paper UI. For the pairing I search for zigbee devices in the Paper UI. The I press the Xiaomi pair button for 6sec but with no success. The log shows:

2019-11-14 12:37:09.936 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_cc2531:stick1

2019-11-14 12:37:09.939 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Permit join to 65532/0 for 60 seconds.

2019-11-14 12:37:09.942 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: Added transaction to queue, len=1, transaction=ZigBeeTransaction [queueTime=0, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=--, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.945 [DEBUG] [transaction.ZigBeeTransactionManager] - 65532/0: Sending ZigBeeTransaction [queueTime=3, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.948 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding

2019-11-14 12:37:09.951 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:09.955 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=65532/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=11, payload=00 3C 01]

2019-11-14 12:37:09.975 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: Added transaction to queue, len=2, transaction=ZigBeeTransaction [queueTime=0, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=--, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.978 [DEBUG] [transaction.ZigBeeTransactionManager] - 0/0: Sending ZigBeeTransaction [queueTime=1886492, state=WAITING, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:09.980 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 2 outstanding

2019-11-14 12:37:09.983 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:09.987 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=12, payload=00 3C 01]

2019-11-14 12:37:10.026 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45cb

2019-11-14 12:37:10.028 [DEBUG] [transaction.ZigBeeTransactionManager] - 0/0: Sending ZigBeeTransaction [queueTime=54, state=WAITING, sendCnt=0, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.030 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 3 outstanding

2019-11-14 12:37:10.031 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45b6

2019-11-14 12:37:10.032 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]

2019-11-14 12:37:10.035 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=0036, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=13, payload=00 3C 01]

2019-11-14 12:37:10.037 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=8036, addressMode=null, radius=0, apsSecurity=false, apsCounter=--, payload=00 00]

2019-11-14 12:37:10.038 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS]

2019-11-14 12:37:10.040 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] 

2019-11-14 12:37:10.041 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=67, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.043 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=1886557, state=DISPATCHED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.044 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=102, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.069 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45b6

2019-11-14 12:37:10.074 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=8036, addressMode=null, radius=0, apsSecurity=false, apsCounter=--, payload=00 00]

2019-11-14 12:37:10.075 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS]

2019-11-14 12:37:10.076 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] 

2019-11-14 12:37:10.077 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=103, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.079 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=1886594, state=DISPATCHED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:10.080 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ManagementPermitJoiningResponse [0/0 -> 0/0, cluster=8036, TID=--, status=SUCCESS] ZigBeeTransaction [queueTime=138, state=DISPATCHED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.951 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=10009, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.952 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 2 outstanding

2019-11-14 12:37:19.953 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: transactionComplete FAILED 0

2019-11-14 12:37:19.954 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: transactionComplete exceeded retries 1

2019-11-14 12:37:19.955 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction terminated: ZigBeeTransaction [queueTime=10013, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0D, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.983 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=1896498, state=FAILED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:19.984 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 1 outstanding

2019-11-14 12:37:19.985 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete FAILED 0

2019-11-14 12:37:19.985 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete exceeded retries 2

2019-11-14 12:37:19.986 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction terminated: ZigBeeTransaction [queueTime=1896501, state=FAILED, sendCnt=2, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0C, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:20.031 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [queueTime=10057, state=FAILED, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:37:20.032 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 0 outstanding

2019-11-14 12:37:20.033 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: transactionComplete FAILED -1

2019-11-14 12:37:20.034 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00124B000BE89D76: Added transaction to queue, len=1, transaction=ZigBeeTransaction [queueTime=10060, state=WAITING, sendCnt=1, command=ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=0E, permitDuration=60, tcSignificance=true]]

2019-11-14 12:38:10.054 [DEBUG] [e.dongle.cc2531.ZigBeeDongleTiCc2531] - Unhandled ZToolPacket type 0x45cb

best regards René

Thanks. The Xiaomi devices tend to be difficult to join as they tend to go to sleep very quickly after joining the network. To avoid this, you need to wake them up by pressing the button every 1/2 second or so for 10 or 20 seconds after they join…

However, from the log it looks like the device is not being discovered at all. The process should be to enable join mode, then to reset the device, then to keep pressing the button every 1/2 second for the next 20 seconds or so. Resetting the device though is key.

If that doesn’t work, or you’ve already tried this, then I’m not sure what’s up as there’s no information in the log, and we can’t find out what is happening over the air without a protocol sniffer…

Hi,

I was able to join an Hue Dimmer switch. So the Stick with the firmware seems to work. But until now I was not able to join any Xiaomi Zigbee device :frowning: Any additional help is highly appriciated.

best regards René

One thing that occurred to me over the weekend is there’s a potential problem with the way the binding works with battery devices…

The binding is written to work in two phases - the initial discovery of the device gets enough information to add the device to the inbox (the name, model etc). However, it’s only after the inbox entry is added as a thing, and the thing handler gets instantiated that the channel discovery is performed.

This is fine for powered devices, but there’s an issue here with battery devices in that they may go back to sleep and therefore not be awake when the channel discovery is performed. Therefore, I’d recommend the following two things for now until I rectify this -:

  1. don’t leave the device in the inbox - as soon as it’s discovered, add it as a thing. This should reduce the change it will go to sleep before channel discovery is performed.
  2. If there is any substantial time between adding the device to the network, and it appearing in the inbox, then wake it up again (and again and again in the case of Xiaomi devices!) when the device is added as a thing - this should ensure it’s awake when channel discovery is performed.
1 Like

Thanks Chris I will try this.