Hi,
recently I have bought the S6 vacuum cleaner from Xiaomi - great little toy
I have built a status screen which worked perfectly showing me the battery status, etc. - however, for some odd reason the status is not being delivered anymore to Home Assistant. Looking at the log, I am receiving following:
2019-09-17 06:40:58 DEBUG (SyncWorker_11) [miio.device] Retrying with incremented id, retries left: 3
2019-09-17 06:40:58 DEBUG (SyncWorker_11) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2019-09-17 06:40:58 DEBUG (SyncWorker_11) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x0f\x82\xc29]\x80c\xda’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x0f\x82\xc29’ (total 4)
ts = 2019-09-17 04:40:58
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
2019-09-17 06:40:58 DEBUG (SyncWorker_11) [miio.device] Discovered 0f82c239 with ts: 2019-09-17 04:40:58, token: b’ffffffffffffffffffffffffffffffff’
2019-09-17 06:40:58 DEBUG (SyncWorker_11) [miio.device] 192.168.1.158:54321 >>: {‘id’: 102, ‘method’: ‘get_status’, ‘params’: }
2019-09-17 06:41:00 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform xiaomi_miio is taking over 10 seconds.
2019-09-17 06:41:03 DEBUG (SyncWorker_11) [miio.device] Retrying with incremented id, retries left: 2
2019-09-17 06:41:03 DEBUG (SyncWorker_11) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2019-09-17 06:41:03 DEBUG (SyncWorker_11) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x0f\x82\xc29]\x80c\xdf’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x0f\x82\xc29’ (total 4)
ts = 2019-09-17 04:41:03
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
2019-09-17 06:41:03 DEBUG (SyncWorker_11) [miio.device] Discovered 0f82c239 with ts: 2019-09-17 04:41:03, token: b’ffffffffffffffffffffffffffffffff’
2019-09-17 06:41:03 DEBUG (SyncWorker_11) [miio.device] 192.168.1.158:54321 >>: {‘id’: 203, ‘method’: ‘get_status’, ‘params’: }
2019-09-17 06:41:05 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 30.6 seconds.
2019-09-17 06:41:05 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.hue
2019-09-17 06:41:05 INFO (MainThread) [homeassistant.components.hue.sensor_base] Starting sensor polling loop with 5.0 second interval
2019-09-17 06:41:05 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2019-09-17 06:41:08 DEBUG (SyncWorker_11) [miio.device] Retrying with incremented id, retries left: 1
2019-09-17 06:41:08 DEBUG (SyncWorker_11) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2019-09-17 06:41:08 DEBUG (SyncWorker_11) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x0f\x82\xc29]\x80c\xe4’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x0f\x82\xc29’ (total 4)
ts = 2019-09-17 04:41:08
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
2019-09-17 06:41:08 DEBUG (SyncWorker_11) [miio.device] Discovered 0f82c239 with ts: 2019-09-17 04:41:08, token: b’ffffffffffffffffffffffffffffffff’
2019-09-17 06:41:08 DEBUG (SyncWorker_11) [miio.device] 192.168.1.158:54321 >>: {‘id’: 304, ‘method’: ‘get_status’, ‘params’: }
2019-09-17 06:41:13 ERROR (SyncWorker_11) [miio.device] Got error when receiving: timed out
2019-09-17 06:41:13 WARNING (SyncWorker_11) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2019-09-17 06:41:13 INFO (MainThread) [homeassistant.setup] Setup of domain vacuum took 23.0 seconds.
Of which I am not sure how to interpret all of it
My configuration content is pretty straight forward:
vacuum:
- platform: xiaomi_miio
host: 192.168.1.158
token: 624a61494d537a4f7a76433355375635
The token is correct - I have checked that two times.
I am continuously working on my HA environment, so it might as well be, that I have done some changes over the days, which changed the setup and impact the S6, but based on what I have in the log I read that the discovery takes too long. How could I increase either the time for discovery or improve the time taken for discovery?
I am using a RPI 3 B+which is dedicated to HA with some add-ons
Any idea, help is highly appreciated - thanks a lot!
Cheers
Sven