Zigbee Binding 2.4 and Ikea Motion Sensor

Hello,

i unse cc2531 Stick and i have paired Ikea Motion Sensor with it wi no problems.
But it seems not to work correctly.
The occupance staus do not changes and there is niot Battery status. I have only battery level at 43% (with new cells) and thats all http://prntscr.com/pbpmtf
Can it be fixed?

I thought that ikea Monion sensor is well known and people know if it works fine or not.

But please here debug. This command seems not to be recognised

2019-09-27 14:09:04.146 [DEBUG] [converter.ZigBeeConverterSwitchOnoff] - 000D6FFFFE33C65F: ZigBee command receiveds OnWithTimedOffCommand [On/Off: 5574/1 -> 0/1, cluster=0006, TID=3A, onOffControl=0, onTime=1800, offWaitTime=0]

2019-09-27 14:10:42.993 [DEBUG] [converter.ZigBeeConverterSwitchOnoff] - 000D6FFFFE33C65F: ZigBee command receiveds OnWithTimedOffCommand [On/Off: 5574/1 -> 0/1, cluster=0006, TID=3B, onOffControl=0, onTime=1800, offWaitTime=0]

2019-09-27 14:12:20.657 [DEBUG] [converter.ZigBeeConverterSwitchOnoff] - 000D6FFFFE33C65F: ZigBee command receiveds OnWithTimedOffCommand [On/Off: 5574/1 -> 0/1, cluster=0006, TID=3C, onOffControl=0, onTime=1800, offWaitTime=0]

So what would u say?

Here is little bit more infos

2019-09-27 17:17:10.522 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementLqiRequest [0/0 -> 58171/0, cluster=0031, TID=0E, startIndex=0]

2019-09-27 17:17:10.524 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=58171/0, profile=0000, cluster=49, addressMode=DEVICE, radius=31, apsSecurity=false, apsCounter=14, payload=00 00]

2019-09-27 17:17:10.526 [DEBUG] [31.network.impl.CommandInterfaceImpl] - ->  AF_DATA_REQUEST (Packet: subsystem=null, length=12, apiId=24 01, data=FE 0C 24 01 3B E3 00 00 31 00 0E 30 1F 02 00 00 E3, checksum=E3, error=false) 

2019-09-27 17:17:10.643 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <-  AF_DATA_SRSP (FE 01 64 01 00 64)

2019-09-27 17:17:17.114 [DEBUG] [31.network.impl.CommandInterfaceImpl] - <-- AF_INCOMING_MSG (FE 1C 44 81 00 00 06 00 C6 15 01 01 00 05 00 F4 32 75 00 00 08 01 5B 42 00 08 07 00 00 C6 15 0B 7D)

2019-09-27 17:17:17.119 [DEBUG] [31.network.impl.CommandInterfaceImpl] - Received Async Cmd: Packet: subsystem=null, length=28, apiId=44 81, data=FE 1C 44 81 00 00 06 00 C6 15 01 01 00 05 00 F4 32 75 00 00 08 01 5B 42 00 08 07 00 00 C6 15 0B 7D, checksum=7D, error=false

2019-09-27 17:17:17.123 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=5574/1, destinationAddress=0/1, profile=0104, cluster=6, addressMode=null, radius=0, apsSecurity=false, apsCounter=0, payload=01 5B 42 00 08 07 00 00]

2019-09-27 17:17:17.126 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=91, commandId=66]

2019-09-27 17:17:17.129 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: OnWithTimedOffCommand [On/Off: 5574/1 -> 0/1, cluster=0006, TID=5B, onOffControl=0, onTime=1800, offWaitTime=0]

2019-09-27 17:17:17.141 [DEBUG] [converter.ZigBeeConverterSwitchOnoff] - 000D6FFFFE33C65F: ZigBee command receiveds OnWithTimedOffCommand [On/Off: 5574/1 -> 0/1, cluster=0006, TID=5B, onOffControl=0, onTime=1800, offWaitTime=0]

2019-09-27 17:17:18.523 [DEBUG] [zigbee.transaction.ZigBeeTransaction] - Transaction timeout: ManagementLqiRequest [0/0 -> 58171/0, cluster=0031, TID=0E, startIndex=0]

There is nothing in your first debug log and the second one looks like this:

grafik

I have no experience with Zigbee so we need to ping @chris and ask for some of his valuable time.

1 Like

This command being used by this device will not work in the old binding. You should use a new snapshot and hopefully this will be resolved.

Thanks Chris,

U mean that i need to install 2.5 version of binding or completely update OH to 2.5?

You should only need the 2.5 binding.

If you have problems, let me know as I’ve just recently installed the latest snapshot on a 2.4 runtime and there was an issue that took a little while to resolve. I’m not sure if the above script fixes that or not…

Thanks!
i have read it, but did not understood mutch why to use the scriprt if i can delete old binding, clearch cache, restart and put ned binding jar ind addoты directory. I just do not know where i can download this 2.5 jar of Zigbee. Could u send a link?

If i am right, i need to completely delete 2.4 Binding and then put this jars in addons
https://dl.bintray.com/zsmartsystems/com.zsmartsystems/com/zsmartsystems/zigbee/com.zsmartsystems.zigbee.dongle.cc2531/1.2.1/

http://central.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xstream/1.4.7_1/org.apache.servicemix.bundles.xstream-1.4.7_1.jar

https://ci.openhab.org/job/openHAB2-Bundles/org.openhab.addons.bundles$org.openhab.binding.zigbee/ws/target/org.openhab.binding.zigbee-2.5.0-SNAPSHOT.jar

or something else?

Do not works this way

2019-09-28 11:18:34.725 [DEBUG] [org.openhab.binding.zigbee          ] - BundleEvent INSTALLED - org.openhab.binding.zigbee

2019-09-28 11:18:34.761 [DEBUG] [m.zsmartsystems.zigbee.dongle.cc2531] - BundleEvent INSTALLED - com.zsmartsystems.zigbee.dongle.cc2531

2019-09-28 11:18:35.135 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/com.zsmartsystems.zigbee.dongle.cc2531-1.2.1.jar

org.osgi.framework.BundleException: Could not resolve module: com.zsmartsystems.zigbee.dongle.cc2531 [291]

  Unresolved requirement: Import-Package: com.zsmartsystems.zigbee; version="[1.2.0,2.0.0)"

2019-09-28 11:18:35.214 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zigbee-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zigbee [290]

  Unresolved requirement: Import-Package: com.zsmartsystems.zigbee; version="[1.2.0,2.0.0)"

Well, you can do this, but using the script does all this for you including downloading the files.

You could just use the script - it’s designed to do all this for you. REmember there are quite a lot of files to download - the ZigBee binding, and all of its dependencies amount to 6 or 7 files that are found in different places. I’d recommend to use the script in the link I provided.

Yes, you also need to manage the dependencies.

Exactly - this is because you have only changed the binding, and not the dependencies. I really suggest to use the script.

There are detailed steps in the readme for the script to do it all manually.

1 Like

Just a small off topic: is there any agvantages of binding in comparation to mqtt?