-
-
Notifications
You must be signed in to change notification settings - Fork 598
S20+ Can't clean a specific room #2068
Description
Describe the bug
I've been able to use the api to run different commands through python. I can read information, start cleaning, stop cleaning, etc.
Now I want to get more specific, and I would like to make my robot vacuum go clean a specific room.
Acording to issue 1971 #1971, I should be able to achieve that with the siid:2 piid:13 and passing the parameter {"room":[roomid]}. I've tried different ways of passing that information but I always end up getting a user ack timeout error and the vacuum crashes. I don't know if I'm doing something wrong or if it just an issue with the vacuum.
Version information (please complete the following information):
- OS: windows
- python-miio: Version: 0.6.0.dev0
Device information:
If the issue is specific to a device [Usemiiocli device --ip <ip address> --token <token> info]: - Model: xiaomi.vacuum.b108gl
- Hardware version: (xiaomi S20+)
- Firmware version: v4.5.6_0208 - "version":"0208","build_time":"20250415.0
To Reproduce
Steps to reproduce the behavior:
This is the code I'm running:
siid=2
aiid=13
params = {"room":[4]}
payload = {
"did": f"call-{siid}-{aiid}",
"siid": siid,
"aiid": aiid,
"in": params
}
result = dev.send("action",payload)
I've also tried:
-using brakets:
"in":[params]
-using json.dumps
-passing just the room id
-passing [4] or [[4]]
It always crashes
Expected behavior
should start cleaning
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug flag.
{'code': -9999, 'message': 'user ack timeout'}