homebridge-dreame-vacuum-matter
v1.0.4
Published
Matter-native Homebridge v2 plugin for Dreame vacuum robots via Dreame Cloud + MQTT
Maintainers
Readme
homebridge-dreame-vacuum-matter
Matter-native Homebridge v2 plugin for Dreame vacuum robots.
Connects to Dreame Cloud for authentication and device commands, and subscribes to MQTT for real-time state updates — exactly like the Dreamehome app.
Features
- Matter-native: Exposes your Dreame vacuum as a Matter RoboticVacuumCleaner device
- Real-time state: MQTT push from Dreame Cloud (battery, cleaning state, errors)
- Cleaning modes: Sweep, Mop, Sweep & Mop — selectable from Apple Home
- Operational states: Running, Paused, Docked, Charging, Seeking Charger, Error
- Optional automation sensors: Disabled by default; exposes separate HomeKit contact sensors for Idle, Busy, Cleaning, and Error states
- Optional dock automation: Exposes a momentary HomeKit switch for return-to-dock actions in classic automations
- Identify support: Locate/identify command is forwarded to compatible Dreame models
- Auto token refresh: Seamless credential management with Dreame Cloud
Requirements
- Homebridge >= 2.0.0-beta.0 (Matter support required)
- Node.js >= 22.12.0 (or >= 24.0.0)
- A Dreame vacuum connected to the Dreamehome app
- Matter enabled in Homebridge
Compatibility
This plugin is developed and tested primarily with a Dreame L10s Ultra Gen 2 (dreame.vacuum.r2469x). Other Dreame models that expose compatible Dreame Cloud, MQTT, and MIoT properties may work, but some model-specific states or commands can differ.
Installation
npm install homebridge-dreame-vacuum-matterOr search for homebridge-dreame-vacuum-matter in the Homebridge UI.
Configuration
{
"platforms": [
{
"platform": "DreameVacuumMatter",
"name": "Dreame Vacuum",
"username": "[email protected]",
"password": "your-password",
"country": "eu"
}
]
}Options
| Option | Default | Description |
|--------|---------|-------------|
| username | — | Dreame/Dreamehome app email. Overridable via DREAME_EMAIL env var |
| password | — | Dreame/Dreamehome app password. Overridable via DREAME_PASSWORD env var |
| country | eu | Cloud region: cn, eu, us, sg, kr, ru |
| automationContactSensors | false | Create HomeKit contact sensors for Apple Home automations. Disabling later removes these sensors |
| automationDockSwitch | false | Create a momentary HomeKit switch that sends the vacuum back to its dock |
| mapOverrides | [] | Replace discovered floor/map and room names, optionally scoped by device ID |
Room names can be overridden using the segment and map IDs printed in debug logs:
"mapOverrides": [
{
"mapId": 10,
"name": "Ático",
"rooms": [
{
"segmentId": "3",
"name": "Cocina"
},
{
"segmentId": "1",
"name": "Despacho"
}
]
}
]Privacy
This plugin does not collect analytics, telemetry, usage metrics, or tracking data. It connects to Dreame Cloud only for authentication, device discovery, commands, and MQTT state updates. See PRIVACY.md for details.
Troubleshooting
- No devices found: verify the configured region matches the region used in the Dreamehome app.
- Matter API is unavailable: verify you are running Homebridge v2 with Matter enabled.
- Login failed: check the account email, password, and region. If credentials are set via environment variables,
DREAME_EMAILandDREAME_PASSWORDoverride the Homebridge UI values. - MQTT unavailable: the plugin automatically falls back to HTTP polling if the device does not expose an MQTT endpoint.
- Rooms/areas are not shown: enable debug logging and check whether the Dreame cloud returned a map list and room segments for the robot.
Architecture
┌─────────────────────────────────────────┐
│ Apple Home / Matter Controller │
└────────────────┬────────────────────────┘
│ Matter (RoboticVacuumCleaner)
┌────────────────┴────────────────────────┐
│ Homebridge v2 + homebridge-dreame- │
│ vacuum-matter plugin │
└────────┬────────────────┬───────────────┘
│ HTTP (commands)│ MQTTS (state)
┌────┴──────┐ ┌────┴──────────┐
│DreameCloud│ │ DreameMQTT │
│(REST API) │ │ (Push State) │
└────┬──────┘ └────┬──────────┘
└───────┬────────┘
┌───────────┴──────────────┐
│ Dreame Cloud Servers │
│ iot.dreame.tech:13267 │
└──────────────────────────┘Development
npm run build # Compile TypeScript
npm run watch # Watch mode
npm run lint # Lint source and tests
npm test # Run tests
npm run type-check # Type check without emittingRelease Checklist
This repository is prepared for Homebridge verification, but releases are still manual:
- Run
npm run lint,npm run type-check,npm run vitest, andnpm run build. - Update
CHANGELOG.md. - Create a GitHub release with release notes.
- Publish the package to npm.
License
Apache-2.0
