Yep, so rebooted in the evening, it stopped working during the night. So I rebooted it again today around 9:30, worked. I tested node-red automation, it worked as well. Then at 12 it stopped again, this time not only control but also updates (I have persistence on status and battery level and while the vacuum was charging I saw in Grafana that battery level stopped at 88% exactly at 12:00). I had debug logs running on miio binding, so here goes:
First, around 12:01 the updates are going on:
2019-12-03 12:01:20.010 [DEBUG] [nding.miio.handler.MiIoVacuumHandler] - Periodic update for 'miio:vacuum:0F9B030E' (miio:vacuum)
2019-12-03 12:01:20.010 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 0F9B030E type: STOP_VACUUM, result: ["ok"], fullresponse: {"result":["ok"],"id":687}
2019-12-03 12:01:20.011 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":690,"method":"get_dnd_timer","params":[]} -> 192.168.0.70 (Device: 0F9B030E token: redacted Queue: 3)
2019-12-03 12:01:20.011 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Ping 0F9B030E (192.168.0.70) success
2019-12-03 12:01:20.013 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Sending Ping 0F9B030E (192.168.0.70)
2019-12-03 12:01:20.013 [TRACE] [nal.transport.MiIoAsyncCommunication] - Connection 192.168.0.70:56556
2019-12-03 12:01:20.013 [TRACE] [nal.transport.MiIoAsyncCommunication] - inform listener org.openhab.binding.miio.handler.MiIoVacuumHandler@898ef5, data ONLINE from NONE
2019-12-03 12:01:20.025 [TRACE] [nal.transport.MiIoAsyncCommunication] - Connection 192.168.0.70:56556
2019-12-03 12:01:20.026 [TRACE] [nal.transport.MiIoAsyncCommunication] - Message Details:Message: (truncated for brevity)
2019-12-03 12:01:20.028 [TRACE] [nal.transport.MiIoAsyncCommunication] - Received response from 192.168.0.70: {"result":["ok"],"id":688}
2019-12-03 12:01:20.030 [TRACE] [nal.transport.MiIoAsyncCommunication] - Received JSON message {"result":["ok"],"id":688}
2019-12-03 12:01:20.031 [TRACE] [nal.transport.MiIoAsyncCommunication] - inform listener org.openhab.binding.miio.handler.MiIoVacuumHandler@898ef5, data org.openhab.binding.miio.internal.MiIoSendCommand@1a8cf35 from org.openhab.binding.miio.internal.MiIoSendCommand@1a8cf35
2019-12-03 12:01:20.031 [TRACE] [nal.transport.MiIoAsyncCommunication] - Message Details:Message: (truncated for brevity)
2019-12-03 12:01:20.032 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 0F9B030E type: CHARGE, result: ["ok"], fullresponse: {"result":["ok"],"id":688}
2019-12-03 12:01:20.032 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Ping 0F9B030E (192.168.0.70) success
2019-12-03 12:01:20.033 [TRACE] [nal.transport.MiIoAsyncCommunication] - inform listener org.openhab.binding.miio.handler.MiIoVacuumHandler@898ef5, data ONLINE from NONE
2019-12-03 12:01:20.034 [TRACE] [nal.transport.MiIoAsyncCommunication] - Connection 192.168.0.70:56556
2019-12-03 12:01:20.036 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":691,"method":"get_clean_summary","params":[]} -> 192.168.0.70 (Device: 0F9B030E token: redacted Queue: 2)
2019-12-03 12:01:20.038 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Sending Ping 0F9B030E (192.168.0.70)
2019-12-03 12:01:20.043 [TRACE] [nal.transport.MiIoAsyncCommunication] - Connection 192.168.0.70:56556
2019-12-03 12:01:20.044 [TRACE] [nal.transport.MiIoAsyncCommunication] - Message Details:Message: (truncated for brevity)
2019-12-03 12:01:20.046 [TRACE] [nal.transport.MiIoAsyncCommunication] - Received response from 192.168.0.70: {"result":[{"msg_ver":2,"msg_seq":1117,"state":8,"battery":88,"clean_time":1701,"clean_area":26787500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"fan_power":60,"dnd_enabled":0}],"id":689}
2019-12-03 12:01:20.047 [TRACE] [nal.transport.MiIoAsyncCommunication] - Received JSON message {"result":[{"msg_ver":2,"msg_seq":1117,"state":8,"battery":88,"clean_time":1701,"clean_area":26787500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"fan_power":60,"dnd_enabled":0}],"id":689}
2019-12-03 12:01:20.049 [TRACE] [nal.transport.MiIoAsyncCommunication] - inform listener org.openhab.binding.miio.handler.MiIoVacuumHandler@898ef5, data org.openhab.binding.miio.internal.MiIoSendCommand@88120d from org.openhab.binding.miio.internal.MiIoSendCommand@88120d
2019-12-03 12:01:20.050 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 0F9B030E type: GET_STATUS, result: [{"msg_ver":2,"msg_seq":1117,"state":8,"battery":88,"clean_time":1701,"clean_area":26787500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"fan_power":60,"dnd_enabled":0}], fullresponse: {"result":[{"msg_ver":2,"msg_seq":1117,"state":8,"battery":88,"clean_time":1701,"clean_area":26787500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"fan_power":60,"dnd_enabled":0}],"id":689}
2019-12-03 12:01:20.051 [TRACE] [nal.transport.MiIoAsyncCommunication] - Message Details:Message: (truncated for brevity)
2019-12-03 12:01:20.053 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Ping 0F9B030E (192.168.0.70) success
2019-12-03 12:01:20.054 [TRACE] [nal.transport.MiIoAsyncCommunication] - inform listener org.openhab.binding.miio.handler.MiIoVacuumHandler@898ef5, data ONLINE from NONE
Then suddenly there is a 4 minute gap (refresh interval is set to 15 seconds with 15 seconds timeout) and then this:
2019-12-03 12:05:48.935 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Receiver thread received SocketException: Socket closed
2019-12-03 12:05:48.935 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Getting new socket for discovery
2019-12-03 12:05:48.937 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Receiver thread ended
2019-12-03 12:05:48.938 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Starting discovery receiver thread for socket on port 54788
2019-12-03 12:05:48.938 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery sending ping to 192.168.0.255 from 0.0.0.0/0.0.0.0:54788
2019-12-03 12:05:48.945 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Thread Thread[Thread-210,5,main] waiting for data on port 54788
2019-12-03 12:05:48.947 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery sending ping to 224.0.0.50 from 0.0.0.0/0.0.0.0:54788
2019-12-03 12:05:48.950 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery sending ping to 224.0.0.1 from 0.0.0.0/0.0.0.0:54788
2019-12-03 12:05:49.001 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Received 32 bytes response from 192.168.0.70:54321 on Port 54788
2019-12-03 12:05:49.005 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery response received from 192.168.0.70 DeviceID: 0F9B030E (truncated for brevity)
2019-12-03 12:05:49.007 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery responses from : 192.168.0.70:21 31 00 20 00 00 00 00 0F 9B 03 0E 5D E6 41 8C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
2019-12-03 12:05:49.014 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Thread Thread[Thread-210,5,main] waiting for data on port 54788
2019-12-03 12:05:49.016 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Received 32 bytes response from 192.168.0.70:54321 on Port 54788
2019-12-03 12:05:49.019 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Discovered Mi Device 0F9B030E (261817102) at 192.168.0.70 as miio:generic:0F9B030E
2019-12-03 12:05:49.019 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Discovery response received from 192.168.0.70 DeviceID: 0F9B030E (truncated for brevity)
2019-12-03 12:05:49.021 [TRACE] [iio.internal.discovery.MiIoDiscovery] - Thread Thread[Thread-210,5,main] waiting for data on port 54788
2019-12-03 12:05:49.021 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - No token discovered for device 0F9B030E. For options how to get the token, check the binding readme.
And this exact same discovery sequence keeps repeating every 10 minutes indefinitely without any other activity at all.
There is nothing else in the log. Log severity was set to debug as you requested.
So, any ideas?