Xiaomi Scooters¶
Experimental
Support for Xiaomi scooters is experimental and not heavily tested.
Supported features¶
- Settings
- Ride mode (standard/walking/sport - read-only, not displayed)
- Motor lock
- Speed unit (m/h, km/h)
- Lights
- Taillight always on
- Auto lights
- Ambient light
- Assisted driving
- Traction Control System (anti-slip)
- Slope parking
- Energy recovery intensity
- Smart energy recovery
- Bluetooth always on (search scooter via BT)
- Find scooter
- Read information
- Date put into service
- Firmware version
- Serial number
- Scooter temperature (no UI)
- Read battery info
- Real-time battery telemetry
- Charge percentage
- Voltage, current, power
- Range
- Cycles
- Manufactured date
- Serial
- BMS firmware version
- Temperature
Missing features¶
- Sync ride history
- Some settings
- Tire pressure maintenance
- Some scooter information
- Total distance
- Some battery information
- Status
- Remaining capacity (mAh)
- Energy throughput
- Capacity throughput
- Over-charging events
- Charging time in extreme temperatures
- Storage and use time in extreme temperatures
- Firmware updates
Auth key¶
The Xiaomi scooters require server based pairing. This means, that you absolutely must use the original Mi Home app to make the initial pairing, retrieve the auth key, and then use this key to pair with Gadgetbridge. This requires a rooted phone.
Usage of non-free (as-in freedom) software ahead
Unfortunately, these steps will take you outside of Gadgetbridge and require you to create an account with your gadget's vendor's website and/or download a proprietary app.
As the authentication keys are stored on vendor servers, there is no way to generate these keys locally at the moment.
-
Pull the following file from the Mi Home's data folder, replacing
<ownerId>and<countryCode>: -
Decrypt the auth key using the extract_ltmk.py script:<>
Scooter 5 Max¶
device__xiaomi_scooter_5_max
has_flag__feature_most
has_flag__pair_auth_key
has_flag__experimental
Not yet released
Support for this gadget has been added to Gadgetbridge's codebase, but is not yet released. It is already available in the nightly releases.
Tested with firmwares 2.5.3_0011 and 2.7.0_0015.