Async Python client for the Arlo camera API
Project description
Eisenberg — Arlo for Home Assistant
A Home Assistant custom integration for Arlo cameras, named after skating legend Arlo Eisenberg. Built around event-driven MQTT (no polling) with a typed Pydantic API client.
What you get
- Live RTSPS streaming with sub-second lag (forced TCP, ffmpeg low-delay flags).
- Camera entity with snapshots, motion thumbnails and stream keyframes cached on disk so the tile survives restarts and stays populated while disarmed.
- Binary sensors — generic motion (from MQTT
motionDetected) plus AI-classified person / vehicle / animal detections. - Security mode select — armAway / armHome / standby via Arlo's v3 location automation API (with revision tracking).
- Siren switch.
- Battery / signal sensors.
- Base-station connectivity binary sensor.
- Snapshot service —
eisenberg.snapshotfor dashboard buttons or automations. - Media archival — opt-in storage of motion clips, thumbnails and
stream keyframes to a configured
media_dirslocation, with rolling retention (default 14 days).
Installation
HACS (recommended)
The fastest path: click the Open in HACS badge above. It opens your HA instance's HACS UI prepared to add this repo as a custom integration — review and confirm.
Manual HACS path:
- HACS → Integrations → ⋮ → Custom repositories → add
https://github.com/vjt/ha-eisenbergwith category Integration. - Install Eisenberg (Arlo).
- Restart Home Assistant.
- Settings → Devices & Services → Add Integration → search "Eisenberg".
Manual
Copy custom_components/eisenberg/ into your HA custom_components/
directory, install the pyeisenberg Python package into the HA Python
environment, and restart.
Configuration
The config flow asks for your Arlo email and password.
- If your browser is already trusted at Arlo, login is silent — no push needed.
- Otherwise, a push notification is sent to your phone. Approve it in the Arlo app, then click Submit. Each click is a single API call — no polling — so rate-limit risk stays low.
After login you pick a media storage location (or Disabled to skip archival).
Options
- Storage Location — change the archive directory.
- Detection sensor reset timeout — how long person/vehicle/animal binary sensors stay on after a detection (default 30 s).
- Archived media retention — days to keep on disk (default 14).
Services
eisenberg.snapshot
Request a fresh full-frame snapshot from a camera. The image arrives asynchronously via MQTT and refreshes the camera tile. Fails with a clear error if the camera is in standby (Arlo refuses cloud snapshots while disarmed).
service: eisenberg.snapshot
target:
entity_id: camera.front_door
Events
The integration fires eisenberg_media events on motion detection
with device_id, category, categories, content_url,
thumbnail_url, duration, timestamp. Use these in automations to
log clips elsewhere or trigger downstream actions.
Architecture
eisenberg/— pure async Arlo client. REST + raw MQTT 3.1.1 over WebSocket. Pydantic models for every payload.custom_components/eisenberg/— the HA integration. A single coordinator owns the client + MQTT stream and pushes state to entities via_handle_coordinator_update.
Why another Arlo integration?
The existing reference is pyaarlo and the HA integration that wraps it. It works, it's been kept alive heroically, and we owe it the protocol reverse-engineering this client stands on. But it carries years of accreted workarounds for problems Arlo has since stopped having:
- No Cloudflare bypass. pyaarlo ships
cloudscraperbecause the old Arlo endpoints were behind a JS challenge. The currentocapi-app.arlo.com/myapi.arlo.comendpoints accept plain aiohttp with normal browser headers — the same flowmy.arlo.comuses. - No User-Agent spoofing tricks. We use a vanilla Chrome UA for
REST and a mobile UA only where Arlo gates RTSP on it (the
startStreamendpoint returns DASH for browsers, RTSP for the mobile app). Two distinct paths, both documented. - No 2FA email polling, no IMAP scraping. Auth is driven by the same browser-trust cookie flow Arlo's own web app uses: one push to your phone, one click in HA, then a 14-day trusted-browser cookie. No polling, no inbox access, no rate-limit risk from background retries.
- No sync-over-thread-pool fake async. The whole client is native
aiohttp+asyncio. MQTT 3.1.1 is implemented from scratch over the existing aiohttp WebSocket session — nopaho-mqtt, no second TCP stack to keep alive. - Typed at the boundary. Every Arlo API/MQTT payload lands in a Pydantic model. Unknown shapes log loudly instead of silently succeeding — that's how new MQTT topics surfaced during development.
This is a smaller surface (single hardware family, web-auth flow only), not a drop-in pyaarlo replacement. If you need basestation hubs, locally-stored video, IMAP 2FA fallback, or any of pyaarlo's broader device matrix — stay there. If you have a recent battery/solar Arlo and want a small, typed, event-driven integration you can read end to end, this is for you.
Camera support
Tested against the Arlo Essential XL HD (VMC2052A) (battery + solar, WiFi, cloud-only). Other Arlo models that share the same v3 automation
- MQTT shapes should work — file an issue if yours doesn't.
Limitations
- All control flows through Arlo's cloud — there's no local API on these cameras.
- The trust cookie Arlo issues lasts about 14 days. When it expires, HA fires a reauth; one click re-fires a push.
Development
./scripts/check.sh # pyright + pytest + ruff
The deploy skill (/eisenberg-deploy) pushes to a HAOS box over SSH.
The release skill (/eisenberg-release) cuts PyPI + GitHub releases.
License
MIT.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyeisenberg-0.1.3.tar.gz.
File metadata
- Download URL: pyeisenberg-0.1.3.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371ada8acb129f7e0c163bf392021e59d3d61af621283832cbe1a060882e96fb
|
|
| MD5 |
dba1cbada52dac655f1931bb94296e10
|
|
| BLAKE2b-256 |
7872e5e96abb6e33a08b1a87846cadad7f2a7a441fa2e104193214dc4d41616c
|
File details
Details for the file pyeisenberg-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyeisenberg-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70ed1ecdd6508cdb309034093291dec2342c9d2d017bc9bee7dbd134e993f544
|
|
| MD5 |
54f7ff33fff98ad1a542a2bc86219ab5
|
|
| BLAKE2b-256 |
f522715c9909788f52356fdcc413b1a3c8207e705d41767a9d2b1881033e84d7
|