I am running my installation using a ZigBee controller and devices and I have randomly very regular issues with the device states being ONLINE but not able to control the device or the other way. Status being OFFLINE but me being able to turn on a smart plug:
- controller: CC2531 stick
- OpenHab 3.3.0
- Blitzwolf BW-SHP13 smart plugs with ON/OFF funtionality and measuring energy consumption
- running on Synology DSM 7.1.1-42962
- within Docker
- distance from controller to devices roughly 3 meters
I enabled debug logging for ZigBee related packages in my log4j2.xml:
<Logger level="DEBUG" name="org.openhab.binding.zigbee"/>
<Logger level="DEBUG" name="com.zsmartsystems.zigbee"/>
<Logger level="INFO" name="com.zsmartsystems.zigbee.dongle.ember.internal.ash"/>
1 example issue:
Device is ONLINE in OpenHab and I send the off command to switch the smart plug off. It looks like OpenHab is waiting for the acknowledgement of the off comand and is a facing a TimeOut.
Device address is A4C138DC35975176 in the logs
A4C138DC35975176: Channel zigbee:device:stick:a4c138dc35975176:A4C138DC35975176_1_switch received TIMEOUT in response to OFF
Full export of the log during the off command is below.
How can I tackle this? The distance between the controller and my devices is super low. Devices have power all the time. Is there anything in between the controller and the devices I can check during my debugging?
Is it correct that ZigBee has nothing to do with my WiFi and Internet at home and the internet router? I am just confused after reading other posts.
Full export of the log during the off command:
2022-11-15 09:27:41.268 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:device:stick:a4c138a0601c260f in 1830 seconds
2022-11-15 09:27:41.634 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - A4C138DC35975176: Command for channel zigbee:device:stick:a4c138dc35975176:A4C138DC35975176_1_switch --> OFF [OnOffType]
2022-11-15 09:27:41.635 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: Added transaction to queue, len=1, transaction=ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=0, state=WAITING, sendCnt=0, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=--]]
2022-11-15 09:27:41.635 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=1, sleepy=0/3
2022-11-15 09:27:41.636 [DEBUG] [transaction.ZigBeeTransactionManager] - 3EFB/1: Sending ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=1, state=WAITING, sendCnt=0, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:41.636 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding
2022-11-15 09:27:41.637 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]
2022-11-15 09:27:41.637 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=67, commandId=0]
2022-11-15 09:27:41.638 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0000/1, destinationAddress=3EFB/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=8, apsSecurity=false, ackRequest=true, apsCounter=24, rssi=--, lqi=--, payload=01 67 00]
2022-11-15 09:27:41.638 [DEBUG] [converter.ZigBeeBaseChannelConverter] - A4C138DC35975176: Channel zigbee:device:stick:a4c138dc35975176:A4C138DC35975176_1_switch waiting for response to OFF
2022-11-15 09:27:41.638 [DEBUG] [31.network.impl.CommandInterfaceImpl] - -> AF_DATA_REQUEST (Packet: subsystem=null, length=13, apiId=24 01, data=FE 0D 24 01 FB 3E 01 01 06 00 24 30 08 03 01 67 00 92, checksum=92, error=false)
2022-11-15 09:27:41.652 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <- AF_DATA_SRSP (FE 01 64 01 00 64)
2022-11-15 09:27:41.652 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX STA: msgTag=67 state=TX_ACK
2022-11-15 09:27:41.652 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionProgress: TID=67, state=TX_ACK, outstanding=1
2022-11-15 09:27:41.653 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction state changed: nwk=3EFB, TID=67, event=TX_ACK, state=TRANSMITTED
2022-11-15 09:27:42.212 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <-- AF_DATA_CONFIRM (FE 03 44 80 E9 01 24 0B)
2022-11-15 09:27:42.213 [DEBUG] [31.network.impl.CommandInterfaceImpl] - Received Async Cmd: AF_DATA_CONFIRM(Endpoint=1, Status=Z_MAC_NO_ACK(233), TransID=36)
2022-11-15 09:27:42.213 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX STA: msgTag=67 state=RX_NAK
2022-11-15 09:27:42.213 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionProgress: TID=67, state=RX_NAK, outstanding=1
2022-11-15 09:27:42.213 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=578, state=FAILED, sendCnt=1, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.214 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 0 outstanding
2022-11-15 09:27:42.214 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: transactionComplete, state=FAILED, outstanding=0
2022-11-15 09:27:42.214 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: Added transaction to queue, len=1, transaction=ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=579, state=WAITING, sendCnt=1, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.214 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=1, sleepy=0/3
2022-11-15 09:27:42.214 [DEBUG] [transaction.ZigBeeTransactionManager] - 3EFB/1: Sending ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=579, state=WAITING, sendCnt=1, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.214 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding
2022-11-15 09:27:42.215 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]
2022-11-15 09:27:42.215 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=67, commandId=0]
2022-11-15 09:27:42.215 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0000/1, destinationAddress=3EFB/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=8, apsSecurity=false, ackRequest=true, apsCounter=25, rssi=--, lqi=--, payload=01 67 00]
2022-11-15 09:27:42.215 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction state changed: nwk=3EFB, TID=67, event=RX_NAK, state=DISPATCHED
2022-11-15 09:27:42.215 [DEBUG] [31.network.impl.CommandInterfaceImpl] - -> AF_DATA_REQUEST (Packet: subsystem=null, length=13, apiId=24 01, data=FE 0D 24 01 FB 3E 01 01 06 00 25 30 08 03 01 67 00 93, checksum=93, error=false)
2022-11-15 09:27:42.232 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <- AF_DATA_SRSP (FE 01 64 01 00 64)
2022-11-15 09:27:42.233 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX STA: msgTag=67 state=TX_ACK
2022-11-15 09:27:42.233 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionProgress: TID=67, state=TX_ACK, outstanding=1
2022-11-15 09:27:42.233 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction state changed: nwk=3EFB, TID=67, event=TX_ACK, state=TRANSMITTED
2022-11-15 09:27:42.854 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <-- AF_DATA_CONFIRM (FE 03 44 80 E9 01 25 0A)
2022-11-15 09:27:42.854 [DEBUG] [31.network.impl.CommandInterfaceImpl] - Received Async Cmd: AF_DATA_CONFIRM(Endpoint=1, Status=Z_MAC_NO_ACK(233), TransID=37)
2022-11-15 09:27:42.854 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX STA: msgTag=67 state=RX_NAK
2022-11-15 09:27:42.854 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionProgress: TID=67, state=RX_NAK, outstanding=1
2022-11-15 09:27:42.855 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=1219, state=FAILED, sendCnt=2, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.855 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 0 outstanding
2022-11-15 09:27:42.855 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: transactionComplete, state=FAILED, outstanding=0
2022-11-15 09:27:42.855 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: transactionComplete exceeded max retries 2
2022-11-15 09:27:42.855 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction cancelled: ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=1220, state=CANCELLED, sendCnt=2, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.855 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction complete: ZigBeeTransaction [ieeeAddress=A4C138DC35975176 queueTime=1220, state=CANCELLED, sendCnt=2, command=OffCommand [On/Off: 0000/0 -> 3EFB/1, cluster=0006, TID=67]]
2022-11-15 09:27:42.856 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerRemoved: 0 outstanding
2022-11-15 09:27:42.856 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - A4C138DC35975176: transactionComplete but not outstanding, state=CANCELLED, outstanding=0
2022-11-15 09:27:42.856 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=0, sleepy=0/3
2022-11-15 09:27:42.856 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=0, sleepy=0/3
2022-11-15 09:27:42.856 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction state changed: nwk=3EFB, TID=67, event=RX_NAK, state=CANCELLED
2022-11-15 09:27:42.856 [DEBUG] [converter.ZigBeeBaseChannelConverter] - A4C138DC35975176: Channel zigbee:device:stick:a4c138dc35975176:A4C138DC35975176_1_switch received TIMEOUT in response to OFF