@mibridge/cli
v1.0.2
Published
[](https://www.npmjs.com/package/@mibridge/cli) [](https://opensource.org/licenses/MIT) [ |
logout
Clear the saved session.
mibridge logoutdevices
List all devices linked to your account.
mibridge devicesstatus
Display the current state of a device.
mibridge status <device-id>clean
Start a cleaning session. Without options, cleans the entire map.
mibridge clean <device-id>
mibridge clean <device-id> --rooms 1,2,3 --mode vacuum --suction strong --water medium| Option | Description |
|---|---|
| --rooms | Comma-separated room IDs to clean |
| --mode | Clean mode: vacuum, mop, vacuumThenMop |
| --suction | Suction level: quiet, standard, strong, turbo |
| --water | Water level: off, low, medium, high |
| --repeat | Number of passes per room (default: 1) |
rooms
List the rooms available on a device's map.
mibridge rooms <device-id>maps
List the maps saved on a device.
mibridge maps <device-id>watch
Stream real-time status updates from a device.
mibridge watch <device-id>
mibridge watch <device-id> --interval 2000| Option | Default | Description |
|---|---|---|
| --interval | 5000 | Poll interval in milliseconds |
do
Execute a raw MIoT action on a device. Useful for debugging or accessing features not yet exposed by the SDK.
mibridge do <device-id> <siid> <aiid> [params]Configuration
Create a .xiaomirc file in your working directory to set defaults:
{
"region": "de",
"aliases": {
"vacuum": "DEVICE_ID_HERE"
}
}With aliases configured, you can use the alias instead of the full device ID:
mibridge status vacuum
mibridge clean vacuum --rooms 1,2See .xiaomirc.example at the root of the repository for the full reference.
Contributing
Contributions are welcome. Please open an issue before submitting a pull request for significant changes.
License
MIT — see LICENSE for details.
