iRobot Roomba (WiFi) Support

I love my roomba. Works great.
Any luck on retrieving the BLID and password for hass-io?
Any help/precision instrucions would be greatly appreciated.

Thanks!

1 Like

No idea and there’s not much support on it either. Google search returns garbage unfortunately as well. From what I understand you need a separate Linux system or similar and then you need to do python magic and load repositories from Github to execute commands to finally get BLID and password.

That doesn’t make sense to me.

actually it was a lot easier than that. I went down the same rabbit hole you are describing with no luck. But I believe when the component is installed, the command to get the BLID and password are installed in the directory with the component. In my case that was in the following directory.

/srv/homeassistant/lib/python3.6/site-packages/roomba

BUT, I am running in a python virtual environment not under hass-io so I am sure the directory will be different. But it should be there somewhere.

Right I tried that, I believe your’re on hass-io? My installation is not on python 3.6 from what I remember. I did find the getpassword command but was not able to execute it to get blid/pwd. Any details you can post here would be greatly appreciated.

The directory will vary based on the version of Python you are running, but it should be basically the same as
something/lib/pythonversion/site-packages/roomba I thnk. But again, I am not under hass-io. What type of message did you get when you tried to execute it?

I tried posting the errors else where as well with no response, any help would be greatly appreciated.

did you get it working, I’m hitting the same roadblock.

No luck at all. I even tried upgrading python from 3.4 to 3.6.3 with no luck. By that I mean i don’t even have the getpassword.py file anymore but I do have the roomba.py. That didn’t work either.

yes, While it works great I find the map does not work when the cleaning job is started with HASS over using the official app.

I would primarily love it if the map worked.

Thanks

I was able to get my roomba 890 blid and password by using:

pip install git+https://github.com/pschmitt/roombapy@python3-fixes
roomba-getpassword
1 Like

Has anyone been able to get the map into HA? Im using a 980 and have it integrated with HA, but I dont see how to get the maps?

Still can’t get this to work.

installed pip
installed git
sudo git clone https://github.com/NickWaterton/Roomba980-Python.git
cd roomba
python roomba.py

and i get the following…
Traceback (most recent call last):
File “roomba.py”, line 25, in
from roomba.password import Password
File “/home/homeassistant/Roomba980-Python/roomba/roomba.py”, line 25, in
from roomba.password import Password
ImportError: No module named password

1 year after… Has anyone been able to get the map into HA? ^^

nope, but I just export the position coordinates to a file via automation and setup a generic camera fetching a php script which returns a generated image and draws rectangles/lines on the coordinates.
It’s far from perfect but gets the job done :slight_smile:

- alias: Locate Roomba every 2 seconds
  initial_state: true
  trigger:
    platform: time_pattern
    seconds: /2
  condition:
    condition: state
    entity_id: vacuum.roomba
    state: 'on'
  action:
    - service: vacuum.locate
      entity_id: vacuum.roomba

- alias: Log Roomba Position
  initial_state: true
  trigger:
      platform: state
      entity_id: "sensor.roomba_location"
  action:
    - service: notify.roombafile
      data_template: 
        message: "{{ states.vacuum.roomba.attributes.position }}"

- alias: Clean Roomba Log
  initial_state: true
  trigger:
    platform: state
    entity_id: vacuum.roomba
    from: 'off'
    to: 'on'
  action:
    - service: homeassistant.turn_on
      entity_id: switch.clear_roomba_log
1 Like

Thank’s! Is it possible to have also the php script and all resources or the github repository if exist? I will try this method =)

sorry I don’t have a repo for this but you can download the code here:
https://gitlab.com/uploads/-/system/personal_snippet/1927224/47310dbe41a015d8daf0dd807bee8ec4/roomba.zip

I made some refinements so it looks nicer

3 Likes

Thank you very much! I will test it and tell you :slight_smile:

HI @gotschi,
I am analyzing your code and trying to adapt to my environment: HASSIO running in Docker on Synology NAS (Intel Celeron).
Could you explain the line “http://phpserver/roomba/image.php” ?
I guess I need my homeassistant docker container to be able to run PHP, am I correct ?
How do I “install” PHP in homeassistant?
Will a precompiled static php binary work and where do I find it?

Thanks!

Hi @gerosaf!

yes that is correct, you need a php interpeter running on your host to process the image.php script.
so the easiest way would be to just run a nginx-php container and put the image.php in it’s www_root. You don’t installl it in Hass, there is no php addon available I believe.

This way you can call it like http://nasip:nginxport/image.php

Hi @gotschi ,
thanks for answering!

I am having a look at the PHP script, I am not a programmed, so, sorry for noob question…
I sometime get a full-white camera, so I am troubleshooting

Do I need to qualify this “http://hassio.io/local…” link in the image.php at line 15?
$coords = file_get_contents(“http://hass.io/local/roomba/roomba.log?v=”.time());

Same at line 143 for
curl_setopt($ch, CURLOPT_URL,“http://hass.io/api/states/vacuum.roomba”);

Thanks!