Xiaomi Mi Home - Cannot trigger scan for thing

Hello,

After upgrading to openhab 2.5 and due to a bug in the mihome binding, I upgraded to mihome binding snapshot 2.5.5 and it worked.
Now, when I am trying to add my 3rd Xiaomi Bridge, I am getting the following error when I try to search for the new device (see attached log file)debug.txt (33.2 KB) :

2020-05-11 14:28:54.956 [DEBUG] [nternal.socket.XiaomiDiscoverySocket] - Setup discovery socket

2020-05-11 14:28:54.962 [DEBUG] [nternal.socket.XiaomiDiscoverySocket] - Initialized socket to null:-1 on 0.0.0.0/0.0.0.0:36866

2020-05-11 14:28:54.967 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Starting receiver thread Thread[Thread-6694,5,]

2020-05-11 14:28:54.972 [ERROR] [nternal.DiscoveryServiceRegistryImpl] - Cannot trigger scan for thing types '[mihome:bridge]' on 'XiaomiBridgeDiscoveryService'!

java.lang.IllegalThreadStateException: null

	at java.lang.Thread.start(Thread.java:708) ~[?:1.8.0_222]

	at org.openhab.binding.mihome.internal.socket.XiaomiSocket.initialize(XiaomiSocket.java:79) ~[?:?]

Any idea how to solve it?

Thank you

@Yaron_Cohen This could to be a bug. Have you tried to downgrade to version 2.5.3?

To downgrade:

Download:
https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab-addons%2F2.5.3%2Fopenhab-addons-2.5.3.kar

Then find the “org.openhab.binding.mihome-2.5.3.jar” file in the following directory:
repository\org\openhab\addons\bundles\org.openhab.binding.mihome\2.5.3\

uninstall the mihome binding and place the new jar file in the openhab2-addons directory

If everything is OK then, I would suggest to report that as a bug on https://github.com/openhab/openhab-addons/issues?q=is%3Aissue+mihome+xiaomi+is%3Aopen

The mihome binding is not installed through the Paper UI.

In the openhab-cli console I see the following bindings:
openhab> bundle:list |grep Xiaomi
307 x Active x 80 x 2.5.5.202004251308 x openHAB Add-ons :: Bundles :: Xiaomi Mi Smart Home Binding
314 x Active x 80 x 2.5.0.201904031156 x Xiaomi Mi Smart Home Binding
315 x Installed x 80 x 2.3.0.201805272207 x Xiaomi Mi Smart Home Binding
316 x Installed x 80 x 2.4.0.201901201725 x Xiaomi Mi Smart Home Binding

What exactly I should uninstall and how?

Thanks

Make sure that you have Xiaomi Mi Smart Home Binding uninstalled from Paper UI (see the screenshot)

and put only one .jar file in add-on folder:
openhabian@openhab:/usr/share/openhab2/addons$ ls -la
-rw-rw-r-- 1 openhab openhab 97K Mar 19 14:47 org.openhab.binding.mihome-2.5.3.jar

openhab> bundle:list |grep Xiaomi
246 x Active x 80 x 2.5.3 x openHAB Add-ons :: Bundles :: Xiaomi Mi Smart Home Binding