I'm anti-cloud, and very lazy. I also went down a rabbit hole and hope it may help some on a Roomba i7/i8. No idea the applicability on other Roombas, I have an i855020 and this is running Home Assistant Container 2026.11.3
Requirements
- Home Assistant with the built-inĀ iRobot Roomba and BraavaĀ integration
- A Wi-Fi Roomba already set up once with the iRobot app
- Docker on any machine on the same network as the Roomba (used briefly, then deleted)
- Not supported: Roomba x05 models (105/405/505) and newer Matter-first robots
Important:Ā the Roomba allows onlyĀ one local connection at a time. When Home Assistant is connected, close the iRobot app or commands will fail.
1. Get the robot's local password
The integration needs the robot'sĀ localĀ password (not your iRobot account password).
Try the built-in method first:Ā in Home Assistant, add the integration, and when prompted hold the robot'sĀ HomeĀ button (orĀ Home + Spot) until it plays a tone, then submit within 30 seconds.
If that failsĀ (some models, e.g. j7, don't hand it over locally), use the cloud method withĀ dorita980Ā in a throwaway container:
docker run -it --rm node sh
Inside the container:
npm install -g dorita980
get-roomba-password-cloud 'IROBOT_EMAIL' 'IROBOT_PASSWORD'
exit
It prints:
BLID=> BLID
Password=> LOCAL_PASSWORD
Copy theĀ entireĀ password string (it starts withĀ :1:). Save both in your password manager.
Note: this tool is third-party and needs your iRobot account login.Ā --rmĀ deletes the container on exit so nothing is left behind.
2. Add the integration
- Close the iRobot app on every device.
- Settings > Devices & services > Add Integration > iRobot Roomba and BraavaĀ (or pick it underĀ Discovered). UseĀ
VACUUM.IPĀ if asked. - When it asks for a password, pasteĀ
LOCAL_PASSWORD. - If you get "Failed to connect," press the robot's physicalĀ CleanĀ button and submit again while it runs.
Note your vacuum's entity ID (e.g.Ā vacuum.YOUR_ROOMBA).
Change your iRobot password upon completion.
3. Capture your room IDs
The robot stores the last command it received asĀ lastCommand. Start a room clean from the app, then read it.
- In Home Assistant:Ā Settings > Devices & services > iRobot > DisableĀ (frees the robot's one connection).
- In the iRobot app, start a clean ofĀ one room. Close the app. Let it run ā don't send it home from the app.
- ReadĀ
lastCommand:
docker run -it --rm node sh
mkdir /app && cd /app && npm install dorita980
cat > get.js <<'EOF'
const d = require('dorita980');
const r = new d.Local('BLID', 'LOCAL_PASSWORD', 'VACUUM.IP');
r.on('connect', () => {
r.getRobotState(['lastCommand'])
.then(s => { console.log(JSON.stringify(s.lastCommand, null, 2)); r.end(); })
.catch(e => { console.error(e); r.end(); });
});
EOF
node get.js
Output looks like:
{
"command": "start",
"ordered": 1,
"pmap_id": "PMAP_ID",
"regions": [
{ "params": { "noAutoPasses": true, "twoPass": false }, "region_id": "ROOM-1", "type": "rid" }
],
"user_pmapv_id": "PMAP_VERSION"
}
- Repeat for each room (you can keep the container open and just re-runĀ
node get.js). Write down each room name with itsĀ region_id. exitĀ the container andĀ re-enableĀ the integration on Home Assistant.
Tip: confirm your mapping:Ā run each room once, then one multi-room clean and one double-pass clean. The multi-room run lists rooms in the order you chose; the double-pass run showsĀ "twoPass": true. After doing 2-3 rooms individually, I ran all of the remaining ones in one pass, just make sure you get the order correct from your iRobot App inputs.
| Pass setting | noAutoPasses | twoPass |
|---|
| One pass | true | false |
| Two passes | true | true |
4. Create the scripts
I wanted to mimic the iRobot UI, so this is what I have to click one button, select my rooms, and the number of passes all pinned on my dashboard.
Settings > Automations & scenes > Scripts > Create script > Edit in YAML.Ā Clear the editor completely before pasting.
Clean rooms (pick rooms and passes)
Rooms are cleaned in the order you select them.
alias: Roomba ā Clean rooms
mode: single
fields:
rooms:
name: Rooms (in cleaning order)
required: true
selector:
select:
multiple: true
options: &rooms
- {label: Room 1, value: "ROOM-1"}
- {label: Room 2, value: "ROOM-2"}
- {label: Room 3, value: "ROOM-3"}
# add one line per room
double_pass:
name: Two passes in
selector:
select:
multiple: true
options: *rooms
sequence:
- variables:
dbl: "{{ double_pass | default([]) }}"
regions: >-
{% set ns = namespace(r=[]) %}
{% for id in rooms %}
{% set ns.r = ns.r + [{'region_id': id, 'type': 'rid',
'params': {'noAutoPasses': true, 'twoPass': id in dbl}}] %}
{% endfor %}
{{ ns.r }}
- condition: template
value_template: "{{ regions | count > 0 }}"
- action: vacuum.send_command
target:
entity_id: vacuum.YOUR_ROOMBA
data:
command: start
params:
ordered: 1
pmap_id: "PMAP_ID"
user_pmapv_id: "PMAP_VERSION"
regions: "{{ regions }}"
Send home
alias: Roomba ā Send home
mode: single
sequence:
- action: vacuum.pause
target:
entity_id: vacuum.YOUR_ROOMBA
- delay:
seconds: 2
- action: vacuum.return_to_base
target:
entity_id: vacuum.YOUR_ROOMBA
5. Add dashboard buttons
On a sections dashboard, edit a section's YAML and paste:
type: grid
cards:
- type: heading
heading: Roomba
- type: button
name: Clean rooms
icon: mdi:robot-vacuum
entity: script.roomba_clean_rooms
tap_action:
action: more-info
- type: button
name: Send home
icon: mdi:home-import-outline
entity: script.roomba_send_home
tap_action:
action: perform-action
perform_action: script.roomba_send_home
confirmation:
text: Send the Roomba home?
Clean roomsĀ opens the room/pass picker;Ā Send homeĀ runs after a confirmation. Check your script entity IDs under each script'sĀ Settings.
Optional: go local-only (my mission)
Once Home Assistant controls the robot, you can block its internet access on your router/firewall.
- You keep:Ā room cleaning, send home, status and sensors in Home Assistant.
- You lose:Ā the iRobot app (maps, map edits, *remote control) and the ability to capture new room IDs until you unblock it.
- Tip:Ā block by pausing a rule first, test for a few days, then make it permanent. The robot's cloud endpoints are AWS IoT hostnames whose IPs change, so IP-based allow rules don't work well.
- *Remote control: I still can start anywhere with a VPN back to my home network.
Observed behavior and caveats
Observed on the tested model above; yours may differ.
- After every clean:Ā the robot empties its bin (~15 s), then stays "not ready" for ~45 s while it saves its map. This still completes with the cloud blocked.
- Commands are queued:Ā a start sent during that window is held and runs once the robot is ready ā no wait logic needed.
- Map version changes:Ā
user_pmapv_idĀ updates after cleans. In testing, the original value kept working. If a room clean is ever ignored, recaptureĀ lastCommandĀ and updateĀ PMAP_VERSION. - Firmware updatesĀ can change or break local control.
- One connection only:Ā if a script fails, make sure the iRobot app is fully closed.