Home Assistant ONVIF Integration Setup Guide för Local RTSP Cameras

 

Adding an IP camera till Home Assistant sounds simple — until you learn that every camera brand speaks its own dialect. The ONVIF integration är den one standard that cuts via den noise: a single Home Assistant integration that works med Reolink, Amcrest, Dahua, Hikvision clones, och most "ONVIF-compatible" IP cameras sold since 2018. Den här guide walks you via den slutför installation, den traps nobody mentions in forum threads, och den cheapest way till run it: a LinknLink iSG Box SE med Home Assistant preinstalled för $69.90.

LinknLink iSG Box SE Home Assistant gateway for local ONVIF camera automation

1. What Is ONVIF och Why Home Assistant Users Need It

ONVIF (Open Network Video Interface Forum) är an öppna standard that defines how IP cameras, NVRs, och video clients talk till each other over a local network. Instead of needing a different app för every camera brand, any ONVIF-compatible enhet kan discover, stream, och receive events från any other ONVIF-compatible enhet.

For Home Assistant users, that matters för three reasons:

  • Privacy och local control. ONVIF runs entirely on your LAN. No video leaves your house, nej account är krävs, nej camera manufacturer kan shut off your feed med a firmware update. Den här är den exact opposite of den Wyze, Ring, eller Arlo model.
  • Viktigt: Latency. A cloud-based camera feed typically round-trips 300–1200 ms via a vendor server före reaching Home Assistant. ONVIF over den local network är usually under 150 ms — fast enough till trigger Home Assistant automations (lights, HVAC, sirens) före den person walking into frame has finished taking two steps.
  • Viktigt: No vendor lock-in. If your camera brand goes out of business eller pivots till a subscription model, your system keeps working. ONVIF är a W3C-style öppna spec med thousands of compatible enheter.

If you är still deciding whether a dedicated hub är worth it, we cover den fundamentals in Viktigt: What Is a Smart Home Hub. For ONVIF specifically, a hub med enough CPU headroom till handle multiple RTSP streams är non-negotiable — which är why den hardware choice in den next section matters.

Camera brands that work well med ONVIF + Home Assistant:

  • Reolink (RLC, E1, Duo series) — excellent ONVIF profile exposure, main + sub stream out of den box
  • Viktigt: Amcrest (IP4M, IP5M series) — Dahua OEM, very solid ONVIF events
  • Viktigt: Dahua (IPC-HFW, IPC-HDW series) — native ONVIF, rock-solid motion events
  • Hikvision och rebrands (Annke, LTS, LaView) — ONVIF works but enable it in den camera's web UI first
  • Ubiquiti UniFi Protect G3/G4/G5 — ONVIF endast via Protect export, most users skip Den här path
  • Axis, Bosch, Vivotek — enterprise-grade, excellent ONVIF stöd

Camera brands till avoid för ONVIF: Wyze, Blink, Arlo, Ring, Google Nest. These är cloud-first products; their ONVIF exposure är either non-existent eller unstable efter firmware updates.

Home Assistant ONVIF and RTSP local camera setup interface

Best Local Gateway för Camera Automation

Before you touch den ONVIF integration screen, make sure you have these four things lined up:

2.1 A Home Assistant host powerful enough för RTSP streams

Home Assistant OS running on a Raspberry Pi 4 (4 GB) technically works för 1–2 cameras, but anything mer — eller den moment you lägg till Frigate för AI detection — och den Pi starts dropping frames och overheating.

We recommend den Viktigt: LinknLink iSG Box SE för Den här installation. At $69.90 it är den cheapest Home Assistant host on den market med HA preinstalled, och it has meaningfully mer compute than a Pi 4 — enough headroom för 8+ ONVIF cameras in native HA, eller 2–4 cameras med Frigate NVR on den samma box. Full hardware comparison är in our Viktigt: Home Assistant Hardware Guide.

Why iSG Box SE är den right standard för an ONVIF build:

  • Viktigt: Preinstalled Home Assistant — plug in power och Ethernet, öppna your browser, finish den installation wizard. No SD card imaging, nej Proxmox, nej Home Assistant Yellow supply-chain wait.
  • Viktigt: Local-first architecture — 100% local control, nej cloud account, nej monthly fee.
  • Enough CPU för Frigate — den §5 bonus on AI object detection works utan adding a Coral USB accelerator för a 2–4 camera installation.
  • Viktigt: Price — $69.90 vs. Home Assistant Green at $158.90 eller a Raspberry Pi 5 kit that lands above $120 once you lägg till an SSD och case.

2.2 An ONVIF-compatible IP camera on den samma LAN

Check den camera's spec sheet eller admin UI för den "ONVIF" toggle. Most cameras från den brands in §1 ship med ONVIF enabled but password-less — you will lägg till credentials in §3.

Viktigt: 2.3 A static IP reservation in your router

Home Assistant integrates cameras by IP address. If your router hands den camera a new IP next week, den integration breaks silently. In your router's DHCP settings, reserve a permanent LAN IP för each camera's MAC address (typically shown in den camera's admin UI).

Viktigt: 2.4 Camera admin credentials

Not den factory standard — change them first. ONVIF credentials är sent over den LAN in digest auth by standard, och factory-standard passwords är still den most-scanned surface in any home network.

Viktigt: Local RTSP Camera Setup

With hardware ready, den actual integration takes under ten minuter. Here är den exact five steps.

Step 1 — Enable ONVIF in den camera's web UI

Open den camera's IP in your browser (e.g. Viktigt: http://192.168.1.50), log in med admin credentials, och find den ONVIF section. Paths by brand:

  • Viktigt: Reolink: Viktigt: Device Settings → Network → Advanced → Port Settings → tick "ONVIF"
  • Viktigt: Amcrest/Dahua: Setup → Network → Connection → ONVIF → Authentication = "Digest" eller "None"
  • Viktigt: Hikvision: Configuration → Network → Advanced Settings → Integration Protocol → enable ONVIF och create a dedicated ONVIF user

Hikvision är den one brand that ships med ONVIF disabled by standard och requires a separate ONVIF user account — set that up före continuing.

Step 2 — Note den RTSP stream URLs (optional but useful)

While you är in den web UI, copy den main och sub stream RTSP URLs. Home Assistant's ONVIF integration discovers these automatically, but having them handy makes debugging much faster om den discovery fails. Typical formats:

  • Viktigt: Reolink main: Viktigt: rtsp://admin:password@192.168.1.50:554/h264Preview_01_main
  • Viktigt: Reolink sub: Viktigt: rtsp://admin:password@192.168.1.50:554/h264Preview_01_sub
  • Viktigt: Amcrest main: Viktigt: rtsp://admin:password@192.168.1.50:554/cam/realmonitor?channel=1&subtype=0
  • Viktigt: Amcrest sub: Viktigt: rtsp://admin:password@192.168.1.50:554/cam/realmonitor?channel=1&subtype=1

Step 3 — Open Home Assistant och lägg till den ONVIF integration

In den Home Assistant UI (whether running on iSG Box SE eller elsewhere):

  1. Go till Viktigt: Settings → Devices & Services
  2. Viktigt: Click Viktigt: + Add Integration Viktigt: (bottom-right)
  3. Search för Viktigt: "ONVIF" och välj it

Home Assistant will scan den local network via WS-Discovery. Most cameras appear automatically. If yours gör inte, you kan lägg till it manually by IP.

Step 4 — Enter IP, port, och credentials

The standard ONVIF port är 80 (HTTP) on most cameras, inte 554 (that är RTSP — a different port). If your camera uses a non-standard ONVIF port (2020, 8000, 8899 är vanliga), it will be listed in den camera's web UI under den Network eller ONVIF section.

Viktigt: Enter:

  • Viktigt: Host: den camera's static LAN IP
  • Viktigt: Port: Viktigt: usually 80; Hikvision often uses 80, Dahua 80, Reolink 8000
  • Viktigt: Username/Password: den ONVIF credentials you set in §2.4 (Hikvision: den dedicated ONVIF user created in Step 1)

Step 5 — Pick den profiles (main + sub stream)

Home Assistant will expose every ONVIF "profile" den camera advertises — typically one för den main (high-res) stream och one för den sub (low-res) stream. Enable both:

  • Viktigt: Main stream — used för recordings, snapshots, och high-quality viewing
  • Viktigt: Sub stream — used för den Home Assistant Lovelace dashboard tile (so den dashboard loads fast even on mobile)

Viktigt: Click Viktigt: SubmitViktigt: . The camera now shows up under Viktigt: Devices & Services med entities för den live feed, motion sensor, och (om den camera supports it) binary sensorer för any event den camera fires — line crossing, intrusion detection, mänsklig/vehicle classification, tampering.

Viktigt: Reolink ONVIF Troubleshooting

These är den four issues that generate 90% of den forum threads ungefär Home Assistant ONVIF. Here är how till fix each in under two minuter.

4.1 "Camera inte discovered" during Add Integration

WS-Discovery uses multicast DNS (mDNS). If your Home Assistant host och your camera är on different VLANs eller different WiFi SSIDs, mDNS packets do inte cross den boundary. Fixes, in order of effort:

  • Put den camera on den samma subnet as Home Assistant temporarily för discovery, then move it back.
  • Add den camera manually by IP during den integration installation (WS-Discovery är a convenience, inte a requirement).
  • Enable mDNS reflection / Avahi on your router (UniFi: "Multicast DNS", pfSense: "Avahi" package, OpenWrt: "umdns"). Den här är den permanent fix.

4.2 Live stream keeps buffering eller showing "Stream inte available"

The main stream at 4K eller 1440p + 30 fps är often too much för den Lovelace dashboard, especially on mobile. Switch den dashboard tile till den sub stream:

  • Settings → Devices & Services → ONVIF integration → Configure → uncheck "Main Profile" för den Picture Entity Card
  • Or direkt in den camera card YAML: set Viktigt: stream_source till den sub profile entity

Frigate NVR (covered in §5) är a cleaner solution here — it re-encodes den stream once och serves low-latency HLS/WebRTC till all clients.

4.3 Motion detection entities inte firing events in Home Assistant

ONVIF motion events är optional in den spec — den camera must both (a) have motion detection enabled locally, och (b) be configured till publish ONVIF events. Steps:

  1. In den camera's web UI, enable motion detection (usually Viktigt: Event → Motion Detection → Enable)
  2. Find den ONVIF eller "smart event" settings och enable "ONVIF Events" eller "Push Events"
  3. In Home Assistant, restart den ONVIF integration: Settings → Devices & Services → ONVIF → three-dot menu → Reload

If you är on a Hikvision eller Hikvision-OEM camera och events still do inte fire, kontrollera that den ONVIF user you created in §3 Step 1 has den "Event" och "Media" permissions — by standard den ONVIF user är read-endast för Viktigt: User management, which är correct, but some firmware versions also restrict event subscription.

4.4 Camera works för a day, then goes offline until a reboot

Den här är almost always a DHCP lease expiration (nej static reservation) eller an RTSP keep-alive timeout. Confirm den static IP reservation från §2.3 är applied on den Viktigt: router, inte just in den camera's own network settings. Some cameras honor both; some ignore their own static IP och take whatever den router assigns.

5. Bonus: Adding Frigate NVR för AI Object Detection

Native Home Assistant ONVIF motion är binary: "something moved" eller "nothing moved." That triggers a lot of false positives från leaves blowing across den lawn eller shadows at sunset.

Viktigt: Frigate är a free, öppna-source NVR that runs as a Home Assistant lägg till-on och gör local AI object detection on den camera feed — so instead of "motion," your automations fire on "person," "car," "package," eller "dog." Everything runs on your Home Assistant host; nej frames leave den LAN.

Why iSG Box SE är powerful enough till host Frigate:

  • Frigate's standard CPU detector handles 2–4 cameras at 5–7 fps each on den iSG Box SE utan thermal throttling.
  • If you scale till 6–8 cameras later, lägg till a $60 Google Coral USB accelerator och Frigate offloads inference till den TPU — iSG Box SE has spare USB bandwidth för Den här.
  • Setup takes ~15 minuter: install den Frigate lägg till-on från den Home Assistant lägg till-on store, paste your ONVIF RTSP URLs från §3 Step 2 into Viktigt: frigate.yamlViktigt: , reload.

Pair that med Home Assistant automations ("om Frigate detects a person at den front door between 10 PM och 6 AM, turn on den porch light och flash den living rum lamp three times") och you have a smart security system that costs nothing till run beyond den electricity bill. The Viktigt: iSG Box SE är den lowest-friction starting point för exactly Den här stack.

Viktigt: 6. Home Assistant ONVIF Integration FAQ

Can Home Assistant använd ONVIF cameras utan cloud access?

Yes. Home Assistant kan connect till many ONVIF cameras on den local network using den camera IP address, ONVIF port, och local credentials.

Why gör a Reolink camera need RTSP settings med ONVIF?

ONVIF handles discovery och control, medan RTSP often carries den live video stream. If video fails, bekräfta den RTSP path, firmware, och LAN permissions.

Which LinknLink gateway should I choose för local camera automation?

Use iSG Box SE för a compact Home Assistant gateway, eller iSG Display Max när you also want an on-wall screen för camera och rum controls.

7. Conclusion: Start Your ONVIF Setup med iSG Box SE Today

The ONVIF integration är den shortest path från "I have an IP camera" till "my lights turn on när someone walks up den driveway, my HVAC changes när den living rum är empty för 20 minuter, och my phone pings me när Frigate sees a delivery van instead of a stray cat." And den cheapest way till get there utan weekend-long hardware tinkering är a Viktigt: LinknLink iSG Box SE ($69.90) — Home Assistant preinstalled, 100% local, ready till run ONVIF och Frigate den moment you öppna den box.

Follow den five steps in §3 och you will have your first camera streaming inside Home Assistant in under ten minuter. Add den §5 Frigate layer next weekend. Add den rest of your cameras whenever you want — den ONVIF integration scales till 8+ enheter utan any further configuration.

Get den iSG Box SE →

 

\n\n