Skip to content
LeicasPublic
forked from renjfk/OpenNeato

About

Open-source replacement for Neato's discontinued cloud and mobile app.

Resources

Stars

22 stars

Watchers

2 watching

Forks

 
 

Repository files navigation

License: MIT Latest Release Upstream

OpenNeato Icon

OpenNeato — Home Assistant fork

This is a Leicas/OpenNeato fork focused on the Home Assistant integration. The HACS-installable integration under custom_components/openneato/ is the reason this fork exists — it turns the upstream ESP32 bridge into a full HA device with vacuum / sensor / switch / button / time entities plus a canvas map card, no YAML.

Important

If you want the standalone web UI, use upstream renjfk/OpenNeato directly — it has the original maintainer, the release cadence, and the live demo.

Use this fork if you run Home Assistant and want the robot exposed as a first-class HA device. Firmware changes in this fork are minor and exist only to support the integration (e.g. /api/sensors, /api/history hardening, ntfy server/token/on-start extensions). The firmware, frontend, and flash tool otherwise track upstream closely.

The upstream project is an open-source replacement for Neato's discontinued cloud and mobile app: an ESP32 bridge that talks to Botvac robots (D3-D7) over UART and exposes a local web UI over WiFi — no cloud, no app, no account required.

Note

Both upstream and this fork are early beta. Rough edges are expected. For HA-integration bugs, open an issue here; for firmware/frontend/flash-tool bugs, file against upstream.

Tip

Want to get a feel for the underlying web UI without hardware? Open the upstream live demo. Demo states can be selected with ?scenario=...; see mock scenarios.

Dashboard Manual Drive Cleaning History
Dashboard Manual Drive Cleaning History
Clean Map Schedule Settings
Clean Map Schedule Settings

About the underlying project (upstream)

The sections below describe the upstream renjfk/OpenNeato project that this fork builds on — the ESP32 bridge firmware, standalone web UI, and flash tool. None of this is unique to this fork; it's reproduced here so HA users have full context on what's running behind the integration. If you only want the HA bits, you can skip ahead to the Home Assistant section below.

Neato shut down their cloud services and mobile app, leaving perfectly functional robot vacuums without remote control or scheduling. OpenNeato brings them back to life with a small ESP32 board wired to the robot's debug port, giving you a local web interface that works without any external dependencies.

Upstream web UI features

  • Dashboard with live robot status, battery level, cleaning state, WiFi signal, and storage usage
  • House and spot cleaning with pause/resume/stop/dock controls that adapt to the current state
  • Manual driving mode with a virtual joystick, live LIDAR map visualization, motor toggles (brush, vacuum, side brush), bumper/wheel-lift/stall safety warnings
  • Live cleaning map — watch the robot's path during an active cleaning session in the History view, rendered on a canvas with coverage overlay
  • 7-day cleaning scheduler with two slots per day, managed entirely on the ESP32 (doesn't use the robot's built-in schedule commands)
  • Cleaning history with recorded robot paths rendered as coverage maps, session stats like duration, distance, area covered, and battery usage; individual session import/export for backup and restore
  • Push notifications via ntfy.sh; get notified when cleaning is done, an error occurs, a maintenance alert triggers, or the robot docks; fully optional, configurable per event
  • OTA firmware updates from the browser with SHA-256 download verification (against published checksums.txt), MD5 transfer integrity, dual-partition layout with auto-rollback, and automatic new version notifications when a release is available on GitHub
  • Settings page for hostname, timezone, motor presets, notification topics, UART pins, theme (dark/light/auto), battery diagnostics (cycle count, voltage, temperature, and a "New Battery" calibration trigger), and more
  • Event logging with configurable log levels (off/info/debug), compressed JSONL files on SPIFFS, browsable and downloadable from the UI; optional remote syslog (UDP) for long-running diagnostics without flash wear; logging is off by default
  • Factory reset via 5-second button hold on the ESP32 or from the settings page
  • Robot clock sync — pushes NTP time to the robot automatically, re-syncs every 4 hours
  • Flash tool — standalone CLI that auto-detects the USB port, downloads the correct firmware from GitHub Releases, and flashes with zero prerequisites
  • Safety watchdog — auto-stops wheels in manual mode if the browser disconnects; task and heap watchdogs restart the ESP32 on hangs
  • Crash recovery — orphaned cleaning sessions after unexpected reboots are automatically recovered with full stats

The frontend is a lightweight SPA that gets gzipped and embedded directly into the firmware binary, so a single OTA update covers both firmware and UI. Mobile-friendly, dark theme by default.

Home Assistant Integration

This fork ships a HACS-installable Home Assistant custom integration in custom_components/openneato/. Once installed it discovers your OpenNeato bridge by IP/hostname and exposes the robot as a full HA device — no YAML, no extra add-ons.

Note

The HA integration is the primary differentiator of this fork. The firmware, frontend, and flash tool track upstream renjfk/OpenNeato closely. If you only want the standalone web UI, use upstream directly.

Install via HACS

  1. In HACS, add this fork as a custom repository: https://github.com/Leicas/OpenNeato (category: Integration).
  2. Search for OpenNeato in HACS and install.
  3. Restart Home Assistant.
  4. Settings → Devices & Services → Add Integration → OpenNeato and enter the bridge hostname or IP (e.g. neato.local or 192.168.1.42).

The integration polls /api/* over your LAN every 5 seconds (local_polling). No cloud round-trip, no external dependencies. Requires firmware 1.0+; battery diagnostics need firmware 0.13+ (upstream PR #121).

What you get

A single device with the following entity groups:

  • Vacuum (vacuum.openneato_<name>) — start/stop/pause/dock/locate/spot-clean, battery level, status, fan speed presets (Eco/Auto/Intense), error reporting. Works with all the standard vacuum cards.
  • OpenNeato card — openneato-card: the robot's tile, with features under it, among them a canvas map that draws the accumulated LIDAR floorplan and replays a cleaning session over it, with pan, zoom and a timeline scrubber. A clean that is in progress shows as a live map — the card follows the robot every few seconds, with a ● Live chip in the controls — and turns into a normal replay the moment it finishes. It reads the openneato/session and openneato/sessions websocket commands directly, so there is no server-side rendering and no image polling. It replaces the former LIDAR map and Cleaning replay camera entities, which are gone.
  • Sensors — battery level/voltage/current/temperature, battery cycle count, cumulative cleaning time, WiFi RSSI, free heap, storage used, uptime, motor RPMs, error code/message, plus "last clean" stats (duration, area covered, distance, battery used, mode, end time) pulled from the on-device history.
  • Binary sensors — charging, external power, battery over-temp, battery failure, empty fuel, error active, NTP synced, dustbin seated, left/right wheel lifted, DC jack, and the six bumper contacts (front/side/LDS, left and right — disabled by default, since they toggle on every bump).
  • Switches — eco mode, intense clean, bin-full detect, wall follower, schedule on/off, button-click sounds, melodies, warnings, stealth LED, remote syslog, WiFi AP fallback, and per-event push notifications (start/done/error/alert/docking).
  • Text — syslog server IP, ntfy topic, ntfy server, ntfy token (full push-notification config from HA).
  • Numbers — brush RPM, vacuum speed, side-brush power, stall threshold.
  • Select — navigation mode (Normal / Gentle / Deep / Quick).
  • Buttons — restart bridge, restart robot, shutdown robot, locate, clear errors, format filesystem (diagnostic, disabled by default), new battery (resets fuel-gauge calibration after a physical pack swap, disabled by default for safety).

Every entity is translated via strings.json, and diagnostic-class entities (voltages, currents, raw sensor states) are tagged so they cluster cleanly under HA's Diagnostic section.

Notes for setup

  • Installing the map card — nothing to install: the integration serves the card itself and registers it with the frontend on startup, including dashboard resources when available and while the robot is offline (so the card and its WebSocket API can never fall out of version sync). Just add the OpenNeato card to any dashboard. If the dashboards are in YAML mode or auto-registration ever fails (see the log), add /openneato_static/openneato-replay-card.js as a JavaScript-module resource manually. The walls come from the integration's own LIDAR mapper, which accumulates an occupancy grid across cleanings — the plan sharpens with each run.

  • The card — add OpenNeato from the card picker. A tap on the card shows or hides its features, and the browser remembers the choice. Every option, with its default:

    type: custom:openneato-card
    entity: vacuum.alfred          # the first OpenNeato vacuum
    name: Alfred                   # the entity's name
    icon: mdi:robot-vacuum         # the entity's icon
    color: state
    show_entity_picture: false
    vertical: false
    hide_state: false
    state_content:
      - state
      - charging
      - battery
    features_position: bottom
    icon_tap_action:
      action: none
    hold_action:
      action: none
    double_tap_action:
      action: none
    icon_hold_action:
      action: none
    icon_double_tap_action:
      action: none
    expanded: false
    show_chevron: false
    features:
      - type: custom:openneato-replay
        header:
          selector: true
          area: true
          distance: true
          duration: true
          battery: true
          hide_labels: true
        autoplay: false
        units: auto
        height: 360
        fit: stable
        live_badge:
          show: true
          position: bottom_right
        alignment_badge:
          show: true
          position: bottom_right
        rotation:
          straighten: true
          degrees: 0
        floorplan:
          show: true
          tiled: true
          opacity: 1
        grid: true
        coverage:
          trail: true
          tiled: true
      - type: custom:openneato-controls
        items: [start, pause, stop, dock, spot, locate]
      - type: custom:openneato-suction
        fan_speeds: [eco, normal, intense]
      - type: custom:openneato-configuration
        items: [stealth_led, navigation_mode]
    grid_options:
      columns: full

    The options above expanded are the tile card's (there is no tap_action: a tap shows or hides the features). state_content takes state and any sensor of the robot by its key, such as charging, battery, wifi_signal, uptime, last_clean_area and error_message (the robot's own message, such as asking for the dust bin to be emptied). A sensor with nothing to show is left out of the line. expanded shows the features when the page loads, until the person has chosen in this browser. show_chevron adds a chevron at the top right that also shows or hides them. The card is full width unless its layout says otherwise.

    Each feature is optional, and each also works in any tile card for the robot.

    Replay map option What it does
    header The row above the map: the session selector (when hidden, the map shows the latest run and follows a clean as it starts), and the session's area, distance, duration and battery, live and after the clean; hide_labels shows those figures without their names, which show on hover. Each finished session in the selector has its own delete button (or press Delete on it). When the row cannot fit everything, the battery shows what the clean used, such as Δ12%.
    autoplay Play from the beginning as soon as a session loads. A session that is still recording is followed live instead.
    units auto follows the Home Assistant unit system; metric or us_customary overrides it.
    height Map height in px.
    fit stable frames the cleaned area on a 1 m grid so the view stops shifting between cleanings; plan keeps the whole floorplan in view; session is the tightest fit.
    live_badge The Live badge during a clean: show, and position, the corner of the map it sits in (top_left, top_right, bottom_left or bottom_right).
    alignment_badge During a clean, how the track is lined up on the floorplan, in one word: Dock (on the dock, where the clean started), Walls (by matching the walls), Previous (as the last clean was, until this one has its own fit) or Unaligned. show and position as for the Live badge; two badges in one corner sit side by side.
    rotation straighten turns the map so the walls line up with the card, then turns it a quarter if that fills the card better; degrees is added to that angle. Without straighten, degrees is the map's angle.
    floorplan The walls (the floorplan the integration builds from the robot's LIDAR): show, tiled (square tiles, as in the Neato app, or smooth), and opacity (0 to 1).
    grid The half-metre background grid.
    coverage The cleaned area: trail (the fading track behind the robot), and tiled (coverage and trail as square tiles, or smooth).
    entry_id The robot to read by config entry id, for older dashboards. Normally left out, so the feature follows the robot of the tile it sits in; when set, it wins over the tile's robot.

    Controls items are the vacuum's commands. Suction fan_speeds are the levels to show (all of them when it is left out). Configuration items are the robot's switches and choices by key; Eco mode and Intense clean are not among them, because they are the suction levels.

    The playback speed button on the map remembers its choice in the browser. The session selector shows only the date and time of the session on screen while it is closed, and the full line for every session while its list is open. A session recorded before the bridge had the real time (NTP not synced, and no robot clock) shows as Date unknown. Check NTP synced on the bridge's device.

  • Migrating the old replay card — existing type: custom:openneato-replay-card dashboards remain supported by a compatibility shim and do not need to be rewritten. New dashboards should use custom:openneato-card with the custom:openneato-replay feature. The old title becomes the tile's name; entity selects the tile vacuum, and an old entry_id is resolved to that robot's vacuum entity, so a multi-robot dashboard keeps showing the robot it named. session, including a pinned historical session, speed, autoplay, fit, rotation, floorplan*, grid*, trail, units, show_picker, and show_stats are translated to the replay feature. Legacy imperial units become Home Assistant's us_customary; a legacy height: fill has no exact tile-feature equivalent and uses the replay feature's normal pixel height. The legacy card does not expose the new tile card's visual editor or wrapper options. The shim may be removed only in a future major release.

  • Reading the diagnostics — two field names are misleading and the integration corrects for them: errorCode returns 200 (UI_ALERT_INVALID) when nothing is wrong, so the Error code sensor reports unknown instead; and chargerMAH / dischargeMAH are milliamps, not milliamp-hours (measured decreasing while the robot discharged), so they are exposed with a current device class. dcJackIn is the robot's own barrel jack, not the dock — on dock is extPwrPresent.

  • Coordinator resilience — the integration tolerates a single hung endpoint without going into "requires attention" state. State / charger / system are critical; anything else (errors, motors, history) falls back to the last known value during transient ESP32 serial hangs.

  • No Pillow declared dependency — the LIDAR mapper writes its wall grid with Pillow, which already ships with HA Core, so the integration's manifest.json keeps "requirements": []. Nothing extra to install.

  • ntfy + custom servers — point ntfy_server at a self-hosted instance and ntfy_token at a Bearer token for authenticated push. Empty server defaults to ntfy.sh; empty token is unauthenticated.

Version history

Full per-version notes live in custom_components/openneato/CHANGELOG.md. Highlights:

  • 1.20 — live map: a clean in progress plays on the replay card as it happens, with a ● Live chip and a growing timeline; grid: false now really gives a flat map (plus grid_lines, tiled_plan, tiled_coverage for the in-between looks); units: auto | metric | imperial with the card following Home Assistant's unit system; Last clean area gets an area device class so it converts to ft².
  • 1.19 — skip_next_clean switch, next_scheduled_clean sensor, and auto_restart switch covering the upstream skip-next-clean / next-schedule / daily-restart firmware features; delete button on the replay card.
  • 1.18 — the openneato-replay-card canvas card replaces the LIDAR map and Cleaning replay cameras (Platform.CAMERA dropped); self-calibrating LIDAR floorplan with per-session alignment; HA-settable 7-day schedule (14 time entities + 14 slot switches); six bumper binary sensors, off by default; chargerMAH / dischargeMAH corrected from mAh to mA; the errorCode 200 sentinel no longer reported as an error; Dock contact renamed DC jack; static floorplan-background option removed.
  • 1.11 — added notify_on_start and ap_fallback_on_disconnect switches; ntfy topic/server/token text entities for full HA-side push config.
  • 1.10 — battery diagnostics (current, voltage, cycles, cumulative cleaning time) on top of firmware PR #121, New battery calibration button, UTF-8-tolerant /api/version parsing.
  • 1.9 — fixed cameras stuck on the idle placeholder (get_encoding() crash on streamed bodies).
  • 1.6 — Cleaning replay camera (animated GIF time-lapse), /api/history corruption-tolerant parsing, history filename validation + 2 MB response cap (LAN-MITM mitigation).
  • 1.3 — LIDAR map camera ported from the frontend renderer; self-managed polling.
  • 1.2 — last-clean stats sensors; dropped Pillow from declared deps.

Reporting integration bugs

Use this fork's issue tracker for anything that lives under custom_components/openneato/. For firmware, frontend, or flash-tool issues, upstream renjfk/OpenNeato is the right place.

Supported Robots

Neato Botvac D3 through D7. D8/D9/D10 are NOT supported (different board, password-locked serial port).

Installation

Requirements

  • ESP32-C3, ESP32-C6, ESP32-S3, or original ESP32 board with 4 MB flash (any dev board with USB and exposed GPIOs)

Quick Start

  1. Download the latest release from the Releases page
  2. Flash the ESP32 using the flash tool (auto-detects your chip type):
    openneato-flash
  3. Configure your home WiFi via the serial menu (opens automatically after flashing)
  4. Wire the ESP32 to your robot's debug port
  5. Open the web UI at http://neato.local or the IP shown in the serial monitor

For detailed instructions and troubleshooting, see the User Guide.

Running a Vacuula server as well, for the robot's own maps and no-go lines? The bridge can do the serial half of Vacuula's install so the robot never has to be opened again; see docs/vacuula.md.

⚠️ ESP32-C6 / ESP32-H2 owners: one USB flash is required before OTA works. Fork firmware v1.11 through v1.13.0 (May–October 2026), and upstream renjfk firmware built after 2026-04-25, reject every over-the-air image on a C6 or H2 with Firmware chip mismatch: unknown chip ID in image — from the web UI and from curl alike. Upstream commit 7f341cc ("Fix OTA rejecting valid images on original ESP32") replaced the direct chip-ID comparison with a translation table that only listed ESP32, S2, C3 and S3, so C6 and H2 images became "unknown". Fixed in v1.13.1 (#19). Because the check runs in the firmware receiving the update, a bridge on an affected version cannot be rescued over the air: flash v1.13.1 or newer once over USB (openneato-flash, or pio run -e c6-release -t upload), after which OTA updates work normally again.

Building from Source

Requires Node.js 22+, PlatformIO CLI, and Go 1.26+.

git clone https://github.com/renjfk/OpenNeato.git
cd OpenNeato

# Build frontend (generates web_assets.h)
cd frontend && npm ci && npm run build && cd ..

# Build firmware
pio run -e c3-release

# Build flash tool
cd flash && go build -o openneato-flash . && cd ..

Contributing

OpenNeato is open to contributions and ideas! Whether you're a developer wanting to add features or a user with suggestions, your input is valuable.

The most useful contributions are testing prereleases on your hardware, filing clear bug reports, and opening PRs. If you'd rather just say thanks, there's a Ko-fi. Optional, doesn't influence the roadmap, the project stays free and community-driven either way.

Tip

Before opening an issue, consider starting a Discussion first — many questions, setup troubles, and ideas are easier to resolve through conversation.

Important

For anything beyond a small bug fix, please open an issue or Discussion first to align on the design before writing code. This is an embedded project with tight resource constraints (single-core MCU, 320 KB RAM, 1.6 MB flash per OTA slot) and strict architectural rules (non-blocking event loop, zero external dependencies). A quick design conversation upfront avoids large rewrites during review.

Issue Conventions

When creating issues, please follow our simple naming convention:

Format: type: brief description

Issue Types

  • feat: - New features or functionality
  • fix: - Bug fixes
  • enhance: - Improvements to existing features
  • chore: - Maintenance tasks, dependencies, cleanup
  • docs: - Documentation updates
  • build: - Build system, CI/CD changes

Examples

  • feat: add CSV export functionality
  • fix: app crashes when importing large files
  • enhance: improve data loading performance
  • chore: update dependencies to latest versions
  • docs: update README with installation instructions
  • build: update Xcode project settings

Guidelines

  • Use lowercase for the description
  • Be specific and actionable
  • Keep under 60 characters
  • No period at the end

Development

For frontend development without hardware, use the mock API scenarios documented in docs/mock-scenarios.md. The same ?scenario=... URLs work in local Vite dev and the Cloudflare demo.

Release Process

Manual releases via opencode; see RELEASE_PROCESS.md.

Prereleases can be triggered from any PR by commenting /prerelease (collaborators only).

License

This project is licensed under the MIT License.

About

Open-source replacement for Neato's discontinued cloud and mobile app.

Resources

Stars

22 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages