I install and use z2m bridge binding for OH2. Unfortunately the author stop to develop project. The binding almost work fine without issues but when i restart OH the linked chanels to thing does not work. I have to disable and enable thing in papeUii to chanels become available.
This is the link to binding:
And this is errors in log:
2019-11-25 11:25:48.076 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler@973b45': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0002d73b5f:state
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0002d73b5f:state
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.113 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler@17e16df': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9:temperature
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9:temperature
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.103 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler@b39820': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604:battery
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604:battery
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.078 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler@8a59c': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0001100d38:action
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0001100d38:action
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.547 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604:battery
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604:battery
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.450 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9:temperature
java.lang.IllegalArgumentException: Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9:temperature
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannels(ThingBuilder.java:85) ~[?:?]
at org.openhab.binding.zigbee2mqtt.internal.Zigbee2MqttDeviceHandler.initialize(Zigbee2MqttDeviceHandler.java:95) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.11.0.oh250M1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2019-11-25 11:25:48.754 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d00022805d9' takes more than 5000ms.
2019-11-25 11:25:48.739 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0002d73b5f' takes more than 5000ms.
2019-11-25 11:25:48.738 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d000224c604' takes more than 5000ms.
2019-11-25 11:25:48.736 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0001100d38' takes more than 5000ms.
2019-11-25 11:25:48.337 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0002d73b5f': Duplicate channels zigbee2mqtt:zigbee2mqttDevice:0x00124b0018ecdaf6:0x00158d0002d73b5f:state
Does this problem in binding code or may be this is some troubles in OH main code? The binding is open source and i will try to resolve this problem by myself but i need a some help.