NickWaterton / Roomba980-Python

Python program and library to control iRobot Roomba 980 Vacuum Cleaner
MIT License
377 stars 106 forks source link

Roomba i9 send_region_command not working #116

Open Reyes546 opened 1 year ago

Reyes546 commented 1 year ago

Hello! I'm trying to build a web server to control my i9 roombas and I'm trying use the send_region_command but cannot get it to work properly.

I couldnt get the send_region_command and if I sent the roomba a command I would get an error 224 then the roomba would say something like "See app for help". To fix this I sent the roomba a multi room clean command and tried to copy its format, which looked like this:

lastCommand : { command : "start" ordered : 1 pmap_id : "JAThhUyTlWlMKvibr" user_pmapv_id : "230412T180142" time : 1681861872 initiator : "localApp" regions : 0 : region_id : "11" type : "rid" 1 :   region_id : "51" type : "rid" } } I had to comment out some logic that seems to want to set the commands user_pmapv_id to the key value under the roombas master state at state.reported.pmap.0.{stringForMap} and hardcode it to contain that "230412T180142" string. In short, my question is this: what are the valid values I should include in the JSON string/object and where can I get them? Also it seems to want to use the pmap value map string and then the mostly numeric key next to it, why is this and is that correct? Thanks for the help!