Antonio Braccolino, Identity & Access, home
EN · Language: English
← All projects

IoT · October 2026

Dreame Remote

A web remote for my robot vacuum, instead of the official app.

  • Python
  • MIoT
  • Three.js
  • HTML · JS
  • iPhone (Safari)
The app’s 3D Free view with a sample home (Italian labels): coloured living room, bedroom, corridor and kitchen, furniture, the robot and cleaning lines in the living room, the dock in the kitchen

The app’s real 3D view, loaded with a made-up home. Below, the iPhone web app with demo data.

Why
I wanted to study the protocol of a real IoT device and get faster control than the vendor app, with no in-app login and no ads.
Phase 1: the analysis
Before any code, in a chat with Claude, I documented in 5 files what the Dreamehome app does and how it talks to the robot. Features are split into 7 areas, each with its source. The flow is Dreame cloud login → session token, real-time status via cloud push, Xiaomi MIoT commands (siid/piid properties and siid/aiid actions), maps as compressed incremental frames about every 3 seconds. It ends with a reuse plan with three options and a modular architecture.
What it does
Start, pause, stop, return to dock and “find robot”. Room-by-room cleaning, vacuum, mop or both, suction power and water level. Manual driving with arrows, WASD or a joystick. Live map with Follow, Top and Free views, consumables, stats and history.
Architecture
A Python server of about 570 lines runs on the Mac, on the home network, on port 8765. The front end is a single touch-first HTML/JS page of about 800 lines, with a Three.js 3D map and PNG, GLB and USDZ export.
The protocol
To talk to the robot I use an MIT-licensed open source library: Dreamehome cloud login and MIoT commands, which are siid/piid pairs. For example 3/1 is the battery, 4/4 the suction power and 4/15 the remote control.
Data flow
iPhone → server on the Mac → Dreame cloud → robot. Status refreshes every 3 seconds. The map is sent only when it changes (I compare a hash of the grid) and the path keeps the last 400 points. Driving respects firmware limits: forward up to 100, back down to −300, rotation ±128.
Security
Sign-in happens once, from the terminal. The config file has 600 permissions and is git-ignored. The API only answers under a random secret path: without it the server returns 404. No data goes anywhere except the Dreame cloud.
Status and limits
It works at home with my robot. Following the plan, zone and spot cleaning, shortcuts, do-not-disturb and map management are still missing. Using it outside the home would need HTTPS and stronger authentication. The screenshots use demo data: no home map, no account.
Web app on iPhone (Italian UI): driving pad with arrows and a red STOP button, speed slider at 60%, driving options and the Vacuum, Vacuum + mop, Mop mode choice
Manual driving and modes.
Rest of the web app (Italian UI): suction from Quiet to Turbo, water level, Clean, Pause, Dock and Find robot buttons, room selection and map export in 2D, 3D and USDZ
Modes, rooms and map export. Demo data, Italian UI.

Other projects

← All projects