简体中文 · Documentation · History and maps
- Home Assistant 2026.1.0 or newer and internet access to the Ninebot cloud service.
- A Ninebot account with vehicles visible in the official App.
- A compatible 64-bit host/container for the pinned runtime dependency. ARMv7/32-bit is unsupported.
- HACS for the recommended installation. This is a custom integration, not a Supervisor app/add-on or a built-in Core integration.
The current connection has been verified against the Chinese App service; additional service regions require validation.
The current stable release is v2.0.0. Back up your Home Assistant configuration and private storage before upgrading.
Choose Very fast, Faster, Balanced (default), Slower or Very slow in Options. The values below are target intervals in seconds; vehicles adjust independently. Status contains SOC, range, locks, charging, ACC and location. Battery contains BMS data. Travel reads the current month summary/list.
| Profile | Parked status / battery / travel | Charging status / battery | ACC active status / battery / travel |
|---|---|---|---|
| Very fast | 15 / 30 / 300 | 5 / 10 | 2 / 10 / 30 |
| Faster | 30 / 30 / 600 | 10 / 15 | 5 / 15 / 60 |
| Balanced | 60 / 60 / 600 | 15 / 30 | 10 / 30 / 120 |
| Slower | 120 / 180 / 1200 | 30 / 60 | 30 / 60 / 300 |
| Very slow | 300 / 600 / 1800 | 60 / 120 | 60 / 180 / 600 |
Vehicle profiles refresh hourly. Higher speed increases cloud requests, subject to shared admission, queueing and server backoff. Status and battery are separate requests; querying SOC or location uses the shared status response. Changing only update speed keeps the session, local archive and entity identities in place. Feature, privacy and authentication changes retain their reload behavior.
- In HACS, open the three-dot menu and choose Custom repositories.
- Add
https://github.com/Wuty-zju/ha_ninebotwith type Integration. - Open Ninebot, choose v2.0.0, and download it.
- Restart Home Assistant when prompted. A downloaded file version alone does not mean the running integration has loaded it.
- Go to Settings → Devices & services → Add integration → Ninebot.
Open the HACS repository · Add Ninebot
These links open your configured Home Assistant instance. Install HACS first, then add this custom repository.
Download ninebot.zip from the selected packaged release. Its root contains the integration files: extract them into <config>/custom_components/ninebot, then restart Home Assistant and add the integration. For older versions or automatic GitHub source archives, copy the contained custom_components/ninebot directory instead. Do not copy the entire development repository or overlay files from different releases.
All runtime Python, translations, branding and dashboard assets are inside that integration directory. No separate service, external dashboard package or repository-root script needs to be installed manually.
Sign in with your account and password. SMS sign-in is temporarily unavailable and is not offered in setup, reauthentication or reconfiguration. Passwords are used for authentication and are not stored in ConfigEntry or passed as process arguments. After authentication, current HA opens account options; older HA completes feature selection in the same setup wizard. Private local sessions/tokens remain sensitive: protect the HA configuration and backups.
Each integration entry represents one account, with its own session and historical archive. Add another entry for a different account. Vehicles are discovered within that account; shared physical vehicles can have separate account-scoped HA representations.
Account titles use reported username:account, omitting missing components. The opaque region metadata is retained internally and is not shown in the title. User-provided entry titles are retained. HA determines the surrounding entry-section heading from the integration type; the integration does not patch global frontend translations.
Expired credentials use Reauthenticate. Reconfigure updates the same account; use a new entry to add another account. An older entry missing display metadata can make one enrichment read on successful setup; there is no recurring username polling loop.
Available fields depend on the vehicle model, permissions and cloud reports. Standard entities are enabled and visible when their feature is active. Debug-only diagnostics follow the debug option; events and calendars have separate switches. Existing user-disabled or hidden choices are retained.
| Group | Available information | Meaning and limits |
|---|---|---|
| Vehicle | Main battery SOC, precise/estimated/AI range, charging, power, ACC, battery presence, service status | Three range fields stay separate; AI range is diagnostic. ACC on does not prove movement. |
| Battery | Voltage, temperature, cycles/support, charging power, health score, pack identity/count/type, Find My support | Main battery SOC describes the propulsion battery. Health score is not SOH; 0 can mean not supported. |
| Communication | Emergency communication battery SOC | A separate percentage sensor; it does not replace the vehicle's main battery indicator. |
| Location and image | Device location tracker, vehicle image | Two valid fresh coordinates are required; no unverified coordinate conversion. The image is diagnostic. |
| Rides | Today/yesterday/month totals, last-ride metrics, monthly list coverage | Completeness is checked per metric. Missing evidence is not silently converted to zero. |
| History | Sync state, month-scan progress, saved-detail progress, last successful sync | These are different scopes; 100% saved discovered details does not prove full cloud history. |
| Controls | Vehicle/seat locks and retained remote buttons | Enabled controls, an allowlist and authorization required; see below. |
| Native HA | Ride calendar, vehicle/trip events, query Actions, statistics import | Historical lists and tracks are not expanded into hundreds of entities. |
Durations retain native seconds and suggest hours with four decimals through HA's native conversion. Distance/range and Wh/km suggest one decimal; energy and maximum speed suggest integers. Presentation rounding does not round archived source facts. HA user overrides take precedence. Rated battery V/Ah produce a specification in kWh, not measured capacity or health.
Cycle counts display not supported only when the cycle-support flag explicitly says so; unknown support stays unknown. Missing odometer is not reported, without invented distance. English and Simplified Chinese are the primary documentation languages; shipped entity/settings labels cover additional locales with English fallback for some longer text.
Daily statistics can repair a capped current-month ride index even with historical detail synchronization off. Only enabled daily consumers request this list-only repair: at most one page per 60-second repair opportunity, sharing the hourly history budget and pause/backoff. At month rollover it may also repair the adjacent month. Saved complete indexes are reused; this does not fetch details or tracks or enable full-history scanning.
Open Settings → Devices & services → Ninebot → Configure.
| Option | Default / range | Effect |
|---|---|---|
| Update speed | Balanced; five profiles | Per-vehicle/group targets adapt to charging and ACC. Polling-only changes reuse the runtime. |
| Enable precise location | On | Allows location display/track responses; preserves an existing explicit off choice. It does not add a separate high-precision cloud request. |
| Vehicle events (Beta) | On | Trip reports/completion and concrete vehicle transitions; turning off preserves entity identity and re-enabling establishes a silent baseline. |
| Ride calendar (Beta) | Off for new accounts | Enables the local per-vehicle calendar; turning it off does not delete rides or disable the tracker. |
| Automatically sync trip details (Beta) | Off for new accounts; existing choices retained | Stores private historical details/tracks and enables budgeted acquisition. Review location/backup implications. |
| Automatically scan trip history (Beta) | Off for new accounts; existing choices retained | Starts/resumes first discovery and later incremental work when preservation is enabled. |
| History storage limit (Beta) | 100 MiB/account; 32–2048 MiB | Quota exhaustion pauses writes and retains readable records; lowering the limit does not delete history. |
| History request budget (Beta) | 60/account/hour; 0–120 | Shared logical month/detail calls; not a request for upstream permission. Transport retries are outside this counter. Enter 0 to remove the hourly quota (not recommended); serialization and upstream backoff remain active. |
| Controls + allowed vehicles | New accounts: on / all vehicles verified at sign-in | The first settings on the page: adjust controls and the account vehicle selection in the native multi-select dropdown. Existing choices are preserved; vehicles added later are not silently allowed. Disabling controls retains the selection. History synchronization permissions are separate. |
| Keep local history database (Beta) | On | Retain account history on removal and reconnect it on same-account sign-in. |
| Nominal battery parameters | Off | Voltage and capacity start empty, can be filled independently or cleared, and produce rated energy only when both are present. A failed save keeps the edit pending and reports a storage Repair; save again after resolving it. Retired low-confidence SOC estimators remain removed. |
| Debug mode | Off | Bounded parsed current information for investigation; no extra polling or public raw-data dump. |
With the default policy, charging targets status/battery at 15/30 seconds; ACC activity targets status/battery/travel at 10/30/120 seconds. New charge transitions, external unlocks and stops open finite observation windows. ACC indicates activity; power alone does not prove movement.
After activity stops, up to six current-month summary checks help settle recent trips. They reuse in-flight reads and never download old trip details. Existing lock confirmation and follow-up stay independent; a control command is never automatically repeated.
Periodic reads use local admission budgets: one per second per account with a burst of three, and two per second across accounts with a burst of six. Requests are fairly deferred under pressure. These are local scheduling protections; bootstrap, explicit queries, controls and the separately budgeted history worker retain their own bounded paths. Upstream retry instructions take precedence. Diagnostics distinguish target intervals, observed intervals, queue delays and deferral reasons.
Requests are demand-aware, account-budgeted and shared when identical reads are in flight. Status, battery and travel have separate freshness and failure/backoff state. Unload/reload cancels work; a cache read does not become a new measurement.
Vehicle unlock requests remote start; lock requests remote stop. The vehicle/cloud decides its motion/P requirements. HA does not disable remote stop by guessing whether the vehicle is moving. Seat unlock releases the latch so the cover can be opened by hand; seat locking is manual only. The retained buttons use the same executor as the Lock entities.
Each explicit request sends one command, never an automatic replay. Up to sixteen fresh status reads over fifteen seconds check the target and publish a confirmed transition immediately; a bounded follow-up at 10/20/25 seconds can observe automatic relocking. The whole follow-up ends within 30 seconds or earlier on errors/unload/new commands. Confirmation uses fresh cloud observations; pending/unconfirmed/failed results are kept distinct. A new command can replace the previous confirmation observer; only command transmission is serialized.
If a seat-unlock command is accepted but no unlock is observed, the message is “Unlock command sent. Check the seat compartment.”
After a verified seat unlock, its Lock display remains unlocked for at least five seconds while status queries continue. The Reported latch state attribute and vehicle state events retain the actual reported state throughout this display window. After five seconds, the Lock follows the latest valid latch reading. A separate status observation runs about once per second for fifteen seconds, then at 20/30/45/59.9 seconds, ending within sixty seconds. Missed read slots are skipped rather than sent in a burst.
The reported latch can reset while the compartment lid remains open. Existing data does not provide an independently verified lid-open/closed field, so the integration does not infer lid position or create a lid-state entity. The five-second display window does not prove the lid is open. New commands, unloading, authentication loss, rate limits and read errors stop the follow-up.
History sync and pause appear in device diagnostics. Sync also resumes a paused task; icons and the synchronization-state attribute distinguish running, paused and budget-wait states. History status, last successful sync and parsed raw views appear only with debug mode enabled; the calendar has its own switch. Diagnostic classification does not exclude Recorder; configure Recorder filters if needed.
| Symptom | Check first |
|---|---|
| Integration missing after download | Confirm the directory/domain, restart as prompted, and use a release compatible with your host architecture. |
| First upgrade stays at initializing | Legacy archives are validated and consolidated before setup completes. Several databases can take a few minutes. Check the latest log time and allow the migration to finish. Repeated failures require the traceback and diagnostics. |
| Authentication fails | Check the official App/account region; use reauth. Do not publish credentials or token files. |
| Rated-parameter form rejects a vehicle | Close and reopen the form after the updated integration is actually loaded. Choose a currently discovered vehicle. |
| Today/yesterday values unknown | Setup and midnight schedule a prompt refresh; incomplete lists or missing metrics still need evidence. Same-period verified values survive short outages. See coverage and statistics. |
| Ride/vehicle event unknown | Events wait for a new/revised trip report, stable completion or known status transition after their baseline. History imports and reconnection do not replay events. See event semantics. |
| History waiting for request budget | Inspect next_request_at, retry_at, sync_phase, pause/auth/capacity state; do not repeatedly request a full scan. |
| Calendar shows “No current trip” / off | This is a historical calendar with no active event. Browse saved dates in HA Calendar; only the account option disables the feature. |
| Custom element not found | Register the bundled module resource, then reload the browser. |
| Track missing or a single point | Check saved-detail state, coordinate option/permissions and cloud track quality. Old simplified data cannot recreate a lost trail. |
| Storage Repair | Preserve the files and read verification and recovery. Do not delete the database/registry to silence it. |
| “Custom integration has not been tested by Home Assistant” | Standard third-party loader notice; it is not suppressed. |
Location display defaults on, and detail preservation can retain precise tracks. The archive and HA backups are private location records even if an individual response omits coordinates. Automation traces may retain requested Action responses. Diagnostics export reviewed schema/status metadata, not credentials, identities or GPS trails; review any file before sharing.
Optional map tiles contact an external provider only when enabled; see map privacy. Protect backups and local session directories from other users and privileged processes.
Keep local trip history database (Beta) is checked by default. Removing an account stops its tasks and retains trips, detailed tracks and recovery evidence. Adding the same authenticated account reconnects its archive; synchronization resumes under your selected options. If unchecked, the next account removal deletes that account’s managed archive and recovery copies. Unrecognized files are retained with a Repair. This setting does not delete Recorder history. Do not edit a running database or registry manually; see migration.
In the account’s Configure form, select Export or import history database (Beta) and submit. The next menu provides Export database and Upload and import database. These operations require a Home Assistant administrator.
- Export: select one or more vehicles across loaded accounts. Click the administrator-bound download link, valid for ten minutes. Filenames identify UTC creation time, account/vehicle counts, scope fingerprint and export ID; the manifest includes the schema, counts and time range. It contains consistent SQLite snapshots, historical source evidence and a versioned SHA256 manifest; no password or sign-in session is included.
- Import: first sign in to every account represented in the package, upload the ZIP (or a supported earlier SQLite database), select vehicles, then confirm the backup and merge. Account ownership, schema, references, raw payload hashes and ride identities are checked before merging. Better saved geometry survives a newer simplified response; repeated imports are deduplicated.
- Each account merges all selected source databases in one transaction. Temporary recovery snapshots are removed after a validated commit; failed merges retain a recovery point. Accounts completed before a later account fails remain committed; retrying the package is safe. Existing options, live authorization and active sync jobs are not replaced.
Packages are private GPS records, not diagnostics. Transfer them securely; they are not encrypted by the integration. Uploads are limited to 100 MiB compressed and 512 MiB expanded, at most 16 accounts. Earlier packages may include up to 16 source snapshots per account; these are consolidated rather than kept as separate databases. New exports contain one SQLite per account. Distinct historical originals live inside the main database and count toward its capacity. Verified old migration/import copies are automatically removed; failed or unrecognized files are retained for review. Back up the full HA configuration before upgrading; keep external exports for migration or rollback.
Temporary cloud or vehicle-discovery failures retain verified same-period trip statistics and saved history. Live readings keep their actual response age and become unavailable when stale. Recovery retries automatically; you do not need to remove/re-add the account. Controls for a vehicle missing from discovery remain blocked until it is verified again. Download integration diagnostics to inspect discovery retries, transport cooldown and actual status intervals. Configured polling intervals are targets; cloud outages and rate limits can delay new readings.