Ok I found my first mistake I used the Action-Channel not the Command Channel… thanks for helping me there!
Know Commands like the following are working.
Robot_Command.sendCommand('action{"did":"vacuum-start-sweep","siid":2,"aiid":1,"in":[]}')
I used the siid and the aiid from this site: Xiaomi Robot Vacuum-Mop 2S
But I don’t get anything working like:
Robot_Command.sendCommand('action{"did":"vacuum-start-room-sweep","siid":2,"aiid":7,"in":[10.10]}')
As soon as I use a input parameter the code does not work and I do not get a result in the command channel.
For the map Id I received a result:
Robot_Command.sendCommand('action{"did":"vacuum-get-map-list","siid":10,"aiid":1,"in":[]}')
result was:
{"code":0,"exe_time":21,"id":8270,"message":"ok","net_cost":158,"ot_cost":0,"otlocalts":1672436897658788,"result":{"code":0,"out":[{"piid":4,"value":"[{\"name\":\"WZ\",\"id\":1672242617,\"cur\":true}]"}]}}
But I’m not able to receive the room id:
Robot_Command.sendCommand('action{"did":"vacuum-get-map-room-list","siid":10,"aiid":13,"in":[2. 1672242617]}')
Can you give me another hint how to use the parameter correct?
Btw. also tried:
Robot_Command.sendCommand('action{"siid":7,"aiid":3,"in":[24.10,25.0,26.1]}')
But only this result:
{"code":0,"exe_time":30,"id":8941,"message":"ok","net_cost":39,"ot_cost":0,"otlocalts":1672441179818472,"result":{"code":0}}
And the logs say:
2022-12-30 23:59:39.844 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Could not identify channel for action. Device miio:generic:3D977F0A has 53 commands in queue.
And I don’t know worth mentioning the robot makes a noise like “bling” whenever I send the last command (for param 24 I tried 10-21).
Happy new Year!