Xiaomi Robot Vacuum Binding

@kisseler there has not been any significant changes in that area in the recent releases that I’m aware of.
Can you share debug logging of the starting of the binding, maybe that will help understanding what is going on.

Are you sure your server is on the same subnet & VLAN as the devices, as that would be the most common issue

It outputted a few errors regarding the discovered MIIO devices, here is a part of it:

2021-10-21 12:09:13.364 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Xiaomi cloud login with userid *************
2021-10-21 12:09:13.369 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.NullPointerException: null
	at java.util.ArrayList.addAll(ArrayList.java:702) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.MiCloudConnector.getDevices(MiCloudConnector.java:218) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.lambda$1(CloudConnector.java:83) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:101) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.getValue(ExpiringCache.java:72) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.getDevicesList(CloudConnector.java:210) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.logon(CloudConnector.java:197) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.lambda$0(CloudConnector.java:68) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:101) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.getValue(ExpiringCache.java:72) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.isConnected(CloudConnector.java:111) ~[?:?]
	at org.openhab.binding.miio.internal.MiIoHandlerFactory.lambda$0(MiIoHandlerFactory.java:85) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
2021-10-21 12:09:13.483 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Xiaomi cloud logon succesfull.
2021-10-21 12:09:13.486 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Send request to https://api.io.mi.com/app/home/device_list_page with data '{"getVirtualModel":false,"getHuamiDevices":1}'
2021-10-21 12:09:14.347 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Request to 'cn' server '/home/device_list_page'. Response: '{"code":0,"message":"","result":{"list":[{"did":"lumi.158d0001fd2e69","uid":1785109788,"token":"","name":"Rauchmelder Büro","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_smoke.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:smoke-sensor:0000A023:lumi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1","isSubGroup":false,"showGroupMember":false,"split":null},"orderTime":1530543394,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d00020248c9","uid":1785109788,"token":"","name":"Rauchmelder Küche","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_smoke.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:smoke-sensor:0000A023:lumi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1","isSubGroup":false,"showGroupMember":false,"split":null},"orderTime":1530546643,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"72559000","uid":1785109788,"token":"fb441dc28e0d0f04fbeda8a9a420be64","name":"Gateway OG","pid":0,"localip":"192.168.178.26","mac":"78:11:DC:64:EB:CB","ssid":"***","bssid":"44:4E:6D:67:BC:A9","rssi":-49,"longitude":"7.00988820","latitude":"51.22598310","show_mode":1,"model":"lumi.gateway.v3","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:gateway:0000A019:lumi-v3:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1.4.1_176","mcu_version":"0220","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1517089391,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"87913718","uid":1785109788,"token":"990eee8a9d5fcda6ba0dbf1846d1abb4","name":"Mi Universal Remote","pid":0,"localip":"192.168.178.59","mac":"7C:49:EB:20:4E:69","ssid":"***","bssid":"7C:FF:4D:D0:99:3E","rssi":-63,"longitude":"7.00985100","latitude":"51.22602090","show_mode":1,"model":"chuangmi.ir.v2","permitLevel":16,"isOnline":false,"extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1.2.4_38","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1524578688,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"93940350","uid":1785109788,"token":"90dbedf417b4fad5a1472bea2928aca0","name":"Smartmi Humidifier2","pid":0,"localip":"192.168.178.74","mac":"7C:49:EB:83:E0:51","ssid":"***","bssid":"DC:39:6F:E1:69:0C","rssi":-53,"longitude":"7.00984880","latitude":"51.22601060","show_mode":1,"model":"zhimi.humidifier.v1","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:humidifier:0000A00E:zhimi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1.4.3_5103","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1547501753,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"blt.3.1676krcuols00","uid":1785109788,"token":"9b31f5d58e195c5e279ffbe7","name":"Temperatur- und Feuchtigkeitssensor","pid":6,"mac":"E7:2E:00:D1:3C:7C","bssid":"","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"miaomiaoce.sensor_ht.t1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:temperature-humidity-sensor:0000A00A:miaomiaoce-t1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1.1.2_0087","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1617187336,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"blt.3.r1kc2njo4800","uid":1785109788,"token":"a250c857efeae6898414fdc0","name":"Flower Care2","pid":6,"mac":"C4:7C:8D:66:4F:33","bssid":"","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"hhcc.plantmonitor.v1","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1521202585,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"blt.3.vcfafgmk4400","uid":1785109788,"token":"b076fc7f38e2ccf5c49d398b","name":"Mijia Philips BLE Night-light II","pid":6,"mac":"FE:6E:C2:27:7C:83","bssid":"","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"philips.light.nlight","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:night-light:0000A0AB:philips-nlight:1","extra":{"isSetPincode":0,"pincodeType":0,"isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1558472750,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0002152923","uid":1785109788,"token":"","name":"Rauchmelder Schlafzimmer","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_smoke.v1","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:smoke-sensor:0000A023:lumi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1530545815,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d000204888a","uid":1785109788,"token":"","name":"Fensterkontakt Hack","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":1,"model":"lumi.sensor_magnet.aq2","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-aq2:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"3","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1531219702,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0002112540","uid":1785109788,"token":"","name":"Water Leak Sensor Badezimmer","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":1,"model":"lumi.sensor_wleak.aq1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:submersion-sensor:0000A024:lumi-aq1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"4","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1521036197,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"150160429","uid":1785109788,"token":"447574355241766a774f786562427044","name":"Luftqualitätsdetektor","pid":0,"localip":"192.168.178.127","mac":"7C:49:EB:FB:1A:8A","ssid":"***","bssid":"3C:37:12:5F:A6:D6","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"cgllc.airmonitor.s1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:air-monitor:0000A008:cgllc-s1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"3.4.5_0177","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1629108269,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"88489738","uid":1785109788,"token":"fd9d518ae72c68ded8a8cd8bbc7dd341","name":"Mi Bedside Lamp","pid":0,"localip":"192.168.178.83","mac":"7C:49:EB:29:14:5B","ssid":"***","bssid":"44:4E:6D:67:BC:A9","rssi":-66,"longitude":"7.00991400","latitude":"51.22603790","show_mode":1,"model":"yeelink.light.bslamp1","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:light:0000A001:yeelink-bslamp1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1.6.6_0172","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1548266907,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"blt.3.r1kb9m4k4800","uid":1785109788,"token":"84ff51830ff12ac1b0b17fa3","name":"Flower Care","pid":6,"mac":"C4:7C:8D:66:4F:D7","bssid":"","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"hhcc.plantmonitor.v1","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1521202380,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0001f4671a","uid":1785109788,"token":"","name":"Doppelschalter","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_86sw2.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:remote-control:0000A021:lumi-sensor-86sw2-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"5","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1523526478,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0001fd30e7","uid":1785109788,"token":"","name":"Rauchmelder Gästezimmer","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_smoke.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:smoke-sensor:0000A023:lumi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1530545742,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d000201e28a","uid":1785109788,"token":"","name":"Kontakt","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":1,"model":"lumi.sensor_magnet.aq2","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-aq2:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"3","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1523136246,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"250764079","uid":1785109788,"token":"48abe79e8c5b1d70f6525d9117148b03","name":"Mijia Philips Schreibtischlampe Theo","pid":0,"localip":"192.168.178.150","mac":"54:48:E6:48:B1:AF","ssid":"***","bssid":"DC:39:6F:E1:69:0C","rssi":-78,"longitude":"7.0099035","latitude":"51.2260035","show_mode":1,"model":"philips.light.sread3","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:light:0000A001:philips-sread3:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"2.0.8_0022","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1633811394,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"blt.3.vcfa3e444o00","uid":1785109788,"token":"9f090d196f7effcefab7b52d","name":"Mijia Philips BLE Night-light I","pid":6,"mac":"D1:C8:57:4E:D4:55","bssid":"","longitude":"0.00000000","latitude":"0.00000000","show_mode":1,"model":"philips.light.nlight","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:night-light:0000A0AB:philips-nlight:1","extra":{"isSetPincode":0,"pincodeType":0,"isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1558472651,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0001ab4601","uid":1785109788,"token":"","name":"Bewegungsmelder 1","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":1,"model":"lumi.sensor_motion.aq2","permitLevel":16,"isOnline":false,"spec_type":"urn:miot-spec-v2:device:motion-sensor:0000A014:lumi-aq2:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"5","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1518475708,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0001e640d9","uid":1785109788,"token":"","name":"Rauchmelder Wohnzimmer","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_smoke.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:smoke-sensor:0000A023:lumi-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"1","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1530546550,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0002112573","uid":1785109788,"token":"","name":"Water Leak Sensor Küche","pid":3,"mac":"","ssid":"***","bssid":"E0:28:6D:48:F8:F4","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":1,"model":"lumi.sensor_wleak.aq1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:submersion-sensor:0000A024:lumi-aq1:1","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"4","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1521036444,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"lumi.158d0002705edf","uid":1785109788,"token":"","name":"Doppelschalter 1","pid":3,"mac":"","ssid":"***","bssid":"44:4E:6D:67:BC:A9","longitude":"0.00000000","latitude":"0.00000000","parent_id":"72559000","show_mode":0,"model":"lumi.sensor_86sw2.v1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:remote-control:0000A021:lumi-sensor-86sw2-v1:1","extra":{"isSetPincode":0,"pincodeType":0,"isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1555098442,"freqFlag":true,"hide_mode":0,"comFlag":1},{"did":"127125571","uid":1785109788,"token":"50cadbbf18d1008340b7644ea54ba165","name":"Qingping Air Monitor Lite","pid":0,"localip":"192.168.178.140","mac":"04:CF:8C:28:B6:DA","ssid":"***","bssid":"44:4E:6D:67:BC:A9","rssi":-82,"longitude":"7.0098993","latitude":"51.2259983","show_mode":1,"model":"cgllc.airm.cgdn1","permitLevel":16,"isOnline":true,"spec_type":"urn:miot-spec-v2:device:air-monitor:0000A008:cgllc-cgdn1:2","extra":{"isSetPincode":0,"pincodeType":0,"fw_version":"2.1.7_0382","mcu_version":"0383","isSubGroup":false,"showGroupMember":false,"split":{}},"orderTime":1634767337,"freqFlag":true,"hide_mode":0,"comFlag":1}],"next_start_did":"","has_more":false}}'
2021-10-21 12:09:14.352 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Devices token info saved to /var/lib/openhab/miio/miioTokens-cn.json
2021-10-21 12:09:14.398 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Send request to https://de.api.io.mi.com/app/home/device_list_page with data '{"getVirtualModel":false,"getHuamiDevices":1}'
2021-10-21 12:09:14.429 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Request to ' de' server '/home/device_list_page'. Response: '{"code":0,"message":"","result":{"list":null,"next_start_did":"","has_more":false}}'
2021-10-21 12:09:14.432 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Devices token info saved to /var/lib/openhab/miio/miioTokens- de.json
2021-10-21 12:09:14.434 [DEBUG] [miio.internal.cloud.MiCloudConnector] - Xiaomi cloud login with userid *************
2021-10-21 12:09:14.434 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Error submitting discovered Mi IO device at 192.168.178.140
java.lang.NullPointerException: null
	at java.util.ArrayList.addAll(ArrayList.java:702) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.MiCloudConnector.getDevices(MiCloudConnector.java:218) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.lambda$1(CloudConnector.java:83) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:101) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.getValue(ExpiringCache.java:72) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.getDevicesList(CloudConnector.java:210) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.logon(CloudConnector.java:197) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.lambda$0(CloudConnector.java:68) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:101) ~[?:?]
	at org.openhab.core.cache.ExpiringCache.getValue(ExpiringCache.java:72) ~[?:?]
	at org.openhab.binding.miio.internal.cloud.CloudConnector.isConnected(CloudConnector.java:111) ~[?:?]
	at org.openhab.binding.miio.internal.discovery.MiIoDiscovery.discovered(MiIoDiscovery.java:222) ~[?:?]
	at org.openhab.binding.miio.internal.discovery.MiIoDiscovery$ReceiverThread.lambda$0(MiIoDiscovery.java:370) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]

PS: I also tried to set the binding on only discovering local (supported) devices, but no success either.

From the DEBUG-Logs I could read the Device ID, so I could successfully add the device manually. So my actual problem is solved.
Anyway: No displaying of discovered devices… :thinking:

The log shows indeed it somehow crashes during the collection of devices.
This is why you don’t see any device during the discovery.
It prob means some value is expected but not in the your response.

Will need to check what is different in your cloud response that triggers the behaviour.

Thanks! No hurry, adding things manually seems to work fine for now.

Dunno yet what is so strange about the response, but did make minor change avoiding the NPE crash. So it case no proper/unexpected response, at least it processes the valid responses.

Since today I see this entry repeatedly in the log:

2021-11-05 23:46:11.028 [INFO ] [miio.internal.cloud.MiCloudConnector] - Error logging on to Xiaomi cloud (0): Error getting logon location URL. Return code: 0

But all devices are online and running find. Anyone else having this issue?

PS: Just realized that the map from the vacuum isn’t showing up any more

So it seems Xiaomi is changing something right now. The error

Error logging on to Xiaomi cloud (0): Error getting logon location URL. Return code: 0

is gone now and the map is showing again. However, now I get

2021-11-06 00:39:09.757 [INFO ] [.miio.internal.robot.RRMapFileParser] - Unknown blocktype (pls report to author)

I think it makes sense to wait until tomorrow and check again…

Either you are using a older version of the binding or you have a very new vacuum / Xiaomi changed the map format. In case of the first… don’t worry, the message is harmless.
In case of the 2 latter, please share debug logging and a map file, than we can see what the new blocktype is

1 Like

Thanks @marcel_verpaalen!

Right, I am still on 2.5.12 - I started with 3.2.0M3 but still didn’t had time to move over… I think I have a lot to learn and to create a plan on how to switch to OH 3 step by step as I just have too much rules and items :slight_smile: At least, the semantic model is almost done :slight_smile:

But the pressure to finally migrate to OH 3 gets higher as some other bindings (for example amazon echo) having some issues too now.

For now, I set the log-level to warn and it seems it the blocktype-warning is suppressed now - I guess this shouldn’t make any problems right?

nope, no worries… it is harmless

1 Like

Hi Marcel, I’m running openHAB 3 on Pi4 and have just installed the Xiaomi Mi IO Binding v3.1.0. My vacuum robot is Xiaomi Mijia model STYJTJ02YM. openHAB has recognized it as viomi.vacuum.v7 and I can read all the channel’s values discovered by the binding.


But they’re all numbers, where can I find mapping value for them? Thank you!

hi
Indeed we don’t have the mapping in the json files for this model.
Best to look for them in: python-miio/viomivacuum.py at master · rytilahti/python-miio · GitHub

Would be great If you can check this out and convert/share them in the json format, then I’ll add them to the binding. (see also openhab-addons/viomi.vacuum.v8.json at main · openhab/openhab-addons · GitHub )

"options": [
						{
							"value": "0",
							"label": "Mode 0"
						},
						{
							"value": "1",
							"label": "Mode 1"
						},
						{
							"value": "2",
							"label": "Mode 2"
						}
					]
1 Like

I was looking an integration for the Roidmi Eve Plus - since I’m looking for a new cheap one with vacuuming/mopping and a station with vacuuming. It seems currently not supported. What would be needed to add support for it? Only thing I could find was support here for getting a live image map for it. So not sure whether the protocol for other functions is similar to the other Xiaomi brands.

I was thinking about a workaround until support is there. Since it has Alexa integration, I thought maybe it’s possible to control it then via a rule and “saying” something to my dot from it to kick actions. Did someone maybe already tried something like this :)?

I did quick check of the code for Roidmi Eve. It appears to be a ‘miot’ communication device.
Hence if you connect it to the binding and use the ‘create experimental support’ switch I expect the majority of functions to work (meaning there will be channels for the various options/commands/status etc).
It is unlikely that the map will be viewable in OH

Hello all,

I have a Dreame F9 and try to retrieve the manual “action#commands” via the sitemap. Via the console the commands given in the binding documentation work without problems. How I realize the whole thing in the sitemap is still a mystery to me. I still use the BasicUI, OH3.1 and item management via .item files.

Many greetings

Sorry for my stupid question, what is this?
I taked code from first messages and add Xiaomi Robot Vacuum in my openhub. And its working:


but I do not understand in this topic after that there is still a discussion for three years. and what is the code on github in python?

As the initial topic is from 2017 the binding has greatly improved since. Now getting tokens, getting the map etc is rahter build into the binding, where it was not in the early days. Hence nowadays adding a vacuum is indeed rather painless.

For ‘regular’ use, I would dare to say that indeed no need to use github. However if you want to have advanced features which may not be supported by the binding, some use the github repository I made with the details of specific commands. (e.g. specific for room cleaning using rules)

As the binding in the mean time supports over 300 devices, there is frequent discussion on newer/different devices, some of them in this topic, some discussion in their separate discussion.
In this situation, sometimes looking at the github python-miio project helps, as they also build support for devices, but than in python. They may already find out more about a particular device, which helps adding the support for such device in Openhab.

I very badly know English and i dont understand how i can install last version binding from github?
I have rockrobo.vacuum.v1
I see on github python-miio/miio/integrations/vacuum/roborock at master · rytilahti/python-miio · GitHub
and i think it is for my vacuum cleaner. But it is phyton. (
I know how add files with extension “items” like from this post Xiaomi Robot Vacuum Binding - #2 by marcel_verpaalen