vintonc wrote: Should I put fill in the "Roomba Cloud Login" and "Roomba Cloud Password" or will both of those be filled by the "iRobot Cloud Settings -> Get Password" like the local Get Password?
This is an i7 Roomba. What I want to be able to do turn on lights when it starts up and turn them off when its done. I plan to use the iRobot app to set cleaning schedules. Is the cloud config necessary or appropriate for this model and task?
Here's the debug with both of those fields empty.
Ok.
I can’t quite follow how you would misunderstand & would not fill out the login and password fields above the Get Password button????
We need your irobot account to download the password. Another giveaway may have been been asking you to put correct username and password in these fields giving the logging output…
iRobot-Roomba Getting Roomba information from iRobot aws cloud...
Highlights that trying to get password from Cloud - using username/password - which then fail as they are blank
But there are a few messages there from it would seem a iRobot, these are - on_msg, ones - if you only have only then it may already be connected.
When you start or reload the plugin should give you a connected message and states should update.
This apparent brain freeze aside, if still not connected then enter username & password click get Password. (or Local only - untick use iCloud and use local button presses only,)
The icloud stuff can be used once only to download the password - to avoid all the local button pressing. Once password downloaded can turn off if wish. We do get some info from cloud but has become much less now room data is not longer available (either cloud or local)
Checking what state iRoomba is in, turning on lights etc - quite reasonable. Another ideal use is to turn on after last person leaves and turn off once someone returns home.
Hi,
for 2 months now one of my roombas (980) has not been working from Indigo at all, the other (s9+) works just fine. Today I found the time to deal with it and I am getting nowhere. The 980 (which is working just fine from its app) is stuck on "starting device" and nothing I did (reboot Mac, reboot Roomba, restart the plugin) changed that, it would always only ever find the other roomba. I tried using the cloud API, no change; but according to the log it did find 1 matching Roomba got its password. The device details look ok and lastSuccessfulComm is from today; only "states" looks very much empty. Giving up on it I deleted the device and its ini-file, started new, same thing. There are a bund of errors in the log, but they seem to deal with getting the password.
2024-04-24 15:36:03.160 iRobot-Roomba Error (plugin.py: Function: threadgetPassword line: 904): Exception : Message : Caught Exception:'sessionInfo'
2024-04-24 15:36:03.161 iRobot-Roomba Error Traceback:
File "plugin.py", line 899, in threadgetPassword
result = irobotAPI_Maps(self, address=roombaIP, useCloud=useCloud, cloudLogin=cloudLogin, cloudPassword=cloudPassword, blid=blid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 100, in __init__
self.get_maps(blid)
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 104, in get_maps
iRobot.login()
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/getcloudpassword.py", line 129, in login
"oauth_token": response['sessionInfo']['sessionToken'],
~~~~~~~~^^^^^^^^^^^^^^^
2024-04-24 15:36:03.162 iRobot-Roomba Error Error in plugin execution:
Traceback (most recent call last):
File "plugin.py", line 899, in threadgetPassword
result = irobotAPI_Maps(self, address=roombaIP, useCloud=useCloud, cloudLogin=cloudLogin, cloudPassword=cloudPassword, blid=blid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 100, in __init__
self.get_maps(blid)
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 104, in get_maps
iRobot.login()
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/getcloudpassword.py", line 129, in login
"oauth_token": response['sessionInfo']['sessionToken'],
~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'sessionInfo'
2024-04-24 15:36:03.162 iRobot-Roomba Error
Exc_info: (<class 'KeyError'>, KeyError('sessionInfo'), <traceback object at 0x108aec8c0>)
Exc_Text: Traceback (most recent call last):
File "plugin.py", line 899, in threadgetPassword
result = irobotAPI_Maps(self, address=roombaIP, useCloud=useCloud, cloudLogin=cloudLogin, cloudPassword=cloudPassword, blid=blid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 100, in __init__
self.get_maps(blid)
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 104, in get_maps
iRobot.login()
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/getcloudpassword.py", line 129, in login
"oauth_token": response['sessionInfo']['sessionToken'],
~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'sessionInfo'
Stack_info: None
Device details of the "new" device I created (minus iCloud Info):
Another thing I found in the logs when restarting the plugin:
2024-04-24 14:50:12.718 Warning process (pid 1830) failed to quit after polite request -- forcing it to quit now
Do you have any suggestion what to do here?
Thanks
My Roomba and Indigo were quite happy together for years. I don't recall any big challenge about setting it up to begin with, and have since developed quite an interface for Indigo control of Roomba.
I recently upgraded WiFi and had to change my WiFi address (from xxx.xxx.123.xxx to from xxx.xxx.50.xxx). That broke my Roomba connection and it hasn't worked since. I cannot reconnected Roomba to Indigo, and am stuck at "Status: Communications Error" with a State of "Starting Device."
I was able to revert my WiFi address to xxx.xxx.123.xxx, but have yet to attempt anything with Roomba, because, like you, I just haven't had time. I haven't reset anything, or started over, because of the extensive set of presets I set up. The thought of having to remap my house, and then re-teach everything to the Roomba plug-in has me proceeding very carefully.
So, sorry, nothing to help you, other than providing my own set of clues and attempts at fixes.
I'll keep you posted with anything I come up with.
Argelix wrote:Hi,
for 2 months now one of my roombas (980) has not been working from Indigo at all, the other (s9+) works just fine. Today I found the time to deal with it and I am getting nowhere. The 980 (which is working just fine from its app) is stuck on "starting device" and nothing I did (reboot Mac, reboot Roomba, restart the plugin) changed that, it would always only ever find the other roomba. I tried using the cloud API, no change; but according to the log it did find 1 matching Roomba got its password. The device details look ok and lastSuccessfulComm is from today; only "states" looks very much empty. Giving up on it I deleted the device and its ini-file, started new, same thing. There are a bund of errors in the log, but they seem to deal with getting the password.
Thanks
Ok.
The 980 works fine - I have one and can confirm this.
The logging provided doesn’t really explain the issue you are seeing - more the fact that it isn’t getting the password. This is needed once.
If you are deleting ini files - best to delete the whole device (as would be marked as having password (ini file) saved, but you have deleted it)
The SSL true / false settings can be tried. With an old iroomba like this one it is possible your firmware doesn’t need SSL settings.
Sounds like it is getting password from cloud - which is good as this is most annoying aspect.
So…
Would delete the indigo device and the ini file for this iroomba
Would create a new device and use icloud to get password.
Restart plugin for good measure
Once password got, can try communication with and without using SSL - it may be as simple as not using SSL for this old firmware.
Remembering:
Have app forced closed on phone when establishing connection. (can’t have 2 connections at same time — particularly with startup)
If need to can reboot iroomba - look up specific model instructions - often it whole down main button for 10 seconds.
If that doesn’t help
Need better logging of what the issue is, turn on debug logging and post.
My Roomba and Indigo were quite happy together for years. I don't recall any big challenge about setting it up to begin with, and have since developed quite an interface for Indigo control of Roomba.
I recently upgraded WiFi and had to change my WiFi address (from xxx.xxx.123.xxx to from xxx.xxx.50.xxx). That broke my Roomba connection and it hasn't worked since. I cannot reconnected Roomba to Indigo, and am stuck at "Status: Communications Error" with a State of "Starting Device."
I was able to revert my WiFi address to xxx.xxx.123.xxx, but have yet to attempt anything with Roomba, because, like you, I just haven't had time. I haven't reset anything, or started over, because of the extensive set of presets I set up. The thought of having to remap my house, and then re-teach everything to the Roomba plug-in has me proceeding very carefully.
So, sorry, nothing to help you, other than providing my own set of clues and attempts at fixes.
I'll keep you posted with anything I come up with.
I think a separate thread here is worthwhile as yours is clearly a different issue. I’m not sure there are any clues here for others…
If you change your WIFI then iroomba wifi needs to be reset up and you won’t be able to connect to it with Indigo Plugin here, or the App. You don’t make it clear where the issue lies.
If Plugin alone:
Then need to delete devices ideally, but alternatively could just update IP address of current device and get Password again (ideally from icloud)
Then check this new IP subnet has access to and from the Indigo Mac which may also need mDNS properly setup.
If that doesn’t help, then start another forum thread (and copy this) as don’t think its appropriate to continue 2 threads
Thanks for the reply. I had tried most of your suggestions, including switching SSL (it had worked for years in "on"). With your suggestion I tried everything with the iPhone app force closed, still nothing. Then I turned on all debugging I could find and restarted the plugin. This is the result, passwords x-ed out and I cut some lines short, at 07:47:16.272 (list of messages?), 07:47:21.561 and 07:47:21.566 (status reply for the other Roomba).
I don't see any errors per se, it does a "deviceStartComm called for Roomba - Bottom" (same as for Roomba - Top), the difference seems to be
Is there for both devices, but is the same - and same IP address oddly…
I suspect that is the issue - did you swap one device for another at some point?
Seems like the IP address of both devices in the states are the same IP address? If that is the case then will connect to one, but fail on 2nd (as we are seeing) as is trying the same IP address.
Either that or SSL connection is simply not working/connecting, which may relate to some system based SSL settings.
I would disable the device not working, and re-create a new device with the correct IP address setup and see what happens?
Also could try downloading mapping data from icloud for this device as well - can’t see anything wrong here - but that is why you have square bracket after the IP address.
GlennNZ wrote:
The deviceStartComm:536): {'192.168.178.74': []}
Is there for both devices, but is the same - and same IP address oddly…
Ah, I see. Yeah, that makes no sense at all.
GlennNZ wrote:I suspect that is the issue - did you swap one device for another at some point?
No, I haven't touched the config in years.
GlennNZ wrote:Seems like the IP address of both devices in the states are the same IP address?
Do you mean in "Custom states" in the UI? They show up correctly.
GlennNZ wrote:Either that or SSL connection is simply not working/connecting, which may relate to some system based SSL settings.
Are you aware of any incompatibilities? I hadn't noticed back then, but checking modification dates it seems to have stopped working when I updated Indigo to 2023.2 (I probably also updated all the plugins). I seem to remember that from then on there was no more need to install paho-mqtt. I don't know what it does, but "MQTT New Connection" shows up in the log, so I guess it has to do with connections. Since I had it running before I would think that "pip3 list" would show paho-mqtt, but it doesn't. I just updated pip3 (can't hurt), I don't know how to update all the installed packages and since I don't see anything with "Mqtt" in it I didn't update anything in there
The Mac is still at Ventura 13.6.6. There is a post where Indigo recommends not upgrading to Sonoma.
GlennNZ wrote:I would disable the device not working, and re-create a new device with the correct IP address setup and see what happens?
Indigo 2023.2 Plugins, including this one should install their own libraries - only one custom installed here is paho-mqtt. So won’t show on pip3 list but is there.
You have one iroomba working? So that answers pretty much all the setup, library questions.
If above is Yes - Comes back to this one iroomba not connecting - with startup messaging having same IP address as the older one.
The SSL incompatibilities come like the wind and aren’t particularly predictable given OSX versioning. Given one working would seem less likely.
Could try rebooting irooomba - various models
Have different ways of doing it. Often just hold down main button for 10 secs until noise.
Then Would disable current problematic device. Delete config ini file for this device. Leave device SSL switch on.
Would setup new device with correct IP, icloud password get, get mapping favourites icloud data.
Restart plugin and see what debug logging shows
I think it's a lost cause. I deleted it from indigo, (including deleting the .ini files), did a factory reset, started all over... still the exact same result. With one Roomba working the other one should be working; something must have happened during the indigo update. Probably my best bet would be to install Sonoma and hope it somehow cleans up whatever was leftover, but I am really wary of that. So for now I'll just let it be and revisit some day.