You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently bought a Roborock S6 and I'm trying to query it locally with this library. I extracted the token and confirmed it works from my PC, which is on a different subnet than the Roborock.
After running the same commands on the same subnet as the Roborock it doesn't respond anymore. Is there some Xiaomi thing going on where it only talks to the gateway or what is going on? I disabled all firewall rules just to be sure and the device now has full internet access.
Here's what happens from the same subnet (from 192.168.150.161):
root@test:~# mirobo --debug discover --handshake 1
INFO:miio.vacuum_cli:Debug mode active
INFO:miio.device:Sending discovery to <broadcast> with timeout of 5s..
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG: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\x96\xf2\xdc^`\xc9\xeb' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('<ID>')
ts = 2020-03-05 09:44:11
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)
INFO:miio.device: IP 192.168.150.160 (ID: <ID>) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.device:Discovery done
After a successful discovery the request itself fails:
root@test:~# mirobo --debug --ip 192.168.150.160 --token <TOKEN>
INFO:miio.vacuum_cli:Debug mode active
DEBUG:miio.vacuum_cli:Read stored sequence ids: {'seq': 9, 'manual_seq': 0}
DEBUG:miio.vacuum_cli:Connecting to 192.168.150.160 with token <TOKEN>
ERROR:miio.device:Unable to discover a device at address 192.168.150.160
DEBUG:miio.click_common:Exception: Unable to discover the device 192.168.150.160
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/miio/click_common.py", line 59, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/miio/vacuum_cli.py", line 76, in cli
ctx.invoke(status)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/miio/vacuum_cli.py", line 112, in status
res = vac.status()
File "/usr/local/lib/python3.6/dist-packages/miio/vacuum.py", line 176, in status
return VacuumStatus(self.send("get_status")[0])
File "/usr/local/lib/python3.6/dist-packages/miio/device.py", line 235, in send
self.do_discover()
File "/usr/local/lib/python3.6/dist-packages/miio/device.py", line 171, in do_discover
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.150.160
Error: Unable to discover the device 192.168.150.160
Here's the same thing from a different subnet (192.168.1.161):
So, this is a strange one.
I recently bought a Roborock S6 and I'm trying to query it locally with this library. I extracted the token and confirmed it works from my PC, which is on a different subnet than the Roborock.
After running the same commands on the same subnet as the Roborock it doesn't respond anymore. Is there some Xiaomi thing going on where it only talks to the gateway or what is going on? I disabled all firewall rules just to be sure and the device now has full internet access.
Here's what happens from the same subnet (from 192.168.150.161):
After a successful discovery the request itself fails:
Here's the same thing from a different subnet (192.168.1.161):
Is this a known issue for the S6 with the latest firmware or is something else going on here?
The text was updated successfully, but these errors were encountered: