Adding an IP camera -hoz Home Assistant sounds simple — until you learn that every camera brand speaks its own dialect. The ONVIF integration van a one standard that cuts keresztül a noise: a single Home Assistant integration that works a(z) Reolink, Amcrest, Dahua, Hikvision clones, és most "ONVIF-compatible" IP cameras sold since 2018. Ez a útmutató walks you keresztül a fejezze be beállítás, a traps nobody mentions in forum threads, és a cheapest way -hoz run it: a LinknLink iSG Box SE a(z) Home Assistant preinstalled a $69.90.

1. What Is ONVIF és Why Home Assistant Users Need It
ONVIF (Open Network Video Interface Forum) van an nyissa meg standard that defines how IP cameras, NVRs, és video clients talk -hoz each other over a local network. Instead of needing a different app a every camera brand, any ONVIF-compatible eszköz képes discover, stream, és receive events -tól any other ONVIF-compatible eszköz.
For Home Assistant users, that matters a three reasons:
- Privacy és local control. ONVIF runs entirely on your LAN. No video leaves your house, nem account van szükséges, nem camera manufacturer képes shut off your feed a(z) a firmware update. Ez a van a exact opposite of a Wyze, Ring, vagy Arlo model.
- Fontos: Latency. A cloud-based camera feed typically round-trips 300–1200 ms keresztül a vendor server előtt reaching Home Assistant. ONVIF over a local network van usually under 150 ms — fast enough -hoz trigger Home Assistant automations (lights, HVAC, sirens) előtt a person walking into frame has finished taking two steps.
- Fontos: No vendor lock-in. If your camera brand goes out of business vagy pivots -hoz a subscription model, your system keeps working. ONVIF van a W3C-style nyissa meg spec a(z) thousands of compatible eszközök.
If you vannak still deciding whether a dedicated hub van worth it, we cover a fundamentals in Fontos: What Is a Smart Home Hub. For ONVIF specifically, a hub a(z) enough CPU headroom -hoz handle multiple RTSP streams van non-negotiable — which van why a hardware choice in a next section matters.
Camera brands that work well a(z) ONVIF + Home Assistant:
- Reolink (RLC, E1, Duo series) — excellent ONVIF profile exposure, main + sub stream out of a box
- Fontos: Amcrest (IP4M, IP5M series) — Dahua OEM, very solid ONVIF events
- Fontos: Dahua (IPC-HFW, IPC-HDW series) — native ONVIF, rock-solid motion events
- Hikvision és rebrands (Annke, LTS, LaView) — ONVIF works but enable it in a camera's web UI first
- Ubiquiti UniFi Protect G3/G4/G5 — ONVIF csak via Protect export, most users skip Ez a path
- Axis, Bosch, Vivotek — enterprise-grade, excellent ONVIF támogatás
Camera brands -hoz avoid a ONVIF: Wyze, Blink, Arlo, Ring, Google Nest. These vannak cloud-first products; their ONVIF exposure van either non-existent vagy unstable után firmware updates.

Best Local Gateway a Camera Automation
Before you touch a ONVIF integration screen, make sure you have these four things lined up:
2.1 A Home Assistant host powerful enough a RTSP streams
Home Assistant OS running on a Raspberry Pi 4 (4 GB) technically works a 1–2 cameras, but anything további — vagy a moment you adja hozzá Frigate a AI detection — és a Pi starts dropping frames és overheating.
We recommend a Fontos: LinknLink iSG Box SE a Ez a beállítás. At $69.90 it van a cheapest Home Assistant host on a market a(z) HA preinstalled, és it has meaningfully további compute than a Pi 4 — enough headroom a 8+ ONVIF cameras in native HA, vagy 2–4 cameras a(z) Frigate NVR on a azonos box. Full hardware comparison van in our Fontos: Home Assistant Hardware Guide.
Why iSG Box SE van a right alapértelmezett a an ONVIF build:
- Fontos: Preinstalled Home Assistant — plug in power és Ethernet, nyissa meg your browser, finish a beállítás wizard. No SD card imaging, nem Proxmox, nem Home Assistant Yellow supply-chain wait.
- Fontos: Local-first architecture — 100% local control, nem cloud account, nem monthly fee.
- Enough CPU a Frigate — a §5 bonus on AI object detection works nélkül adding a Coral USB accelerator a a 2–4 camera beállítás.
- Fontos: Price — $69.90 vs. Home Assistant Green at $158.90 vagy a Raspberry Pi 5 kit that lands above $120 once you adja hozzá an SSD és case.
2.2 An ONVIF-compatible IP camera on a azonos LAN
Check a camera's spec sheet vagy admin UI a a "ONVIF" toggle. Most cameras -tól a brands in §1 ship a(z) ONVIF enabled but password-less — you will adja hozzá credentials in §3.
Fontos: 2.3 A static IP reservation in your router
Home Assistant integrates cameras by IP address. If your router hands a camera a new IP next week, a integration breaks silently. In your router's DHCP settings, reserve a permanent LAN IP a each camera's MAC address (typically shown in a camera's admin UI).
Fontos: 2.4 Camera admin credentials
Not a factory alapértelmezett — change them first. ONVIF credentials vannak sent over a LAN in digest auth by alapértelmezett, és factory-alapértelmezett passwords vannak still a most-scanned surface in any home network.
Fontos: Local RTSP Camera Setup
With hardware ready, a actual integration takes under ten perc. Here vannak a exact five steps.
Step 1 — Enable ONVIF in a camera's web UI
Open a camera's IP in your browser (e.g. Fontos: http://192.168.1.50), log in a(z) admin credentials, és find a ONVIF section. Paths by brand:
- Fontos: Reolink: Fontos: Device Settings → Network → Advanced → Port Settings → tick "ONVIF"
- Fontos: Amcrest/Dahua: Setup → Network → Connection → ONVIF → Authentication = "Digest" vagy "None"
- Fontos: Hikvision: Configuration → Network → Advanced Settings → Integration Protocol → enable ONVIF és create a dedicated ONVIF user
Hikvision van a one brand that ships a(z) ONVIF disabled by alapértelmezett és requires a separate ONVIF user account — set that up előtt continuing.
Step 2 — Note a RTSP stream URLs (optional but useful)
While you vannak in a web UI, copy a main és sub stream RTSP URLs. Home Assistant's ONVIF integration discovers these automatically, but having them handy makes debugging much faster ha a discovery fails. Typical formats:
- Fontos: Reolink main:
Fontos: rtsp://admin:password@192.168.1.50:554/h264Preview_01_main - Fontos: Reolink sub:
Fontos: rtsp://admin:password@192.168.1.50:554/h264Preview_01_sub - Fontos: Amcrest main:
Fontos: rtsp://admin:password@192.168.1.50:554/cam/realmonitor?channel=1&subtype=0 - Fontos: Amcrest sub:
Fontos: rtsp://admin:password@192.168.1.50:554/cam/realmonitor?channel=1&subtype=1
Step 3 — Open Home Assistant és adja hozzá a ONVIF integration
In a Home Assistant UI (whether running on iSG Box SE vagy elsewhere):
- Go -hoz Fontos: Settings → Devices & Services
- Fontos: Click Fontos: + Add Integration Fontos: (bottom-right)
- Search a Fontos: "ONVIF" és válassza ki it
Home Assistant will scan a local network via WS-Discovery. Most cameras appear automatically. If yours tesz nem, you képes adja hozzá it manually by IP.
Step 4 — Enter IP, port, és credentials
The alapértelmezett ONVIF port van 80 (HTTP) on most cameras, nem 554 (that van RTSP — a different port). If your camera uses a non-standard ONVIF port (2020, 8000, 8899 vannak gyakori), it will be listed in a camera's web UI under a Network vagy ONVIF section.
Fontos: Enter:
- Fontos: Host: a camera's static LAN IP
- Fontos: Port: Fontos: usually 80; Hikvision often uses 80, Dahua 80, Reolink 8000
- Fontos: Username/Password: a ONVIF credentials you set in §2.4 (Hikvision: a dedicated ONVIF user created in Step 1)
Step 5 — Pick a profiles (main + sub stream)
Home Assistant will expose every ONVIF "profile" a camera advertises — typically one a a main (high-res) stream és one a a sub (low-res) stream. Enable both:
- Fontos: Main stream — used a recordings, snapshots, és high-quality viewing
- Fontos: Sub stream — used a a Home Assistant Lovelace dashboard tile (so a dashboard loads fast even on mobile)
Fontos: Click Fontos: SubmitFontos: . The camera now shows up under Fontos: Devices & Services a(z) entities a a live feed, motion érzékelő, és (ha a camera supports it) binary érzékelők a any event a camera fires — line crossing, intrusion detection, emberi/vehicle classification, tampering.
Fontos: Reolink ONVIF Troubleshooting
These vannak a four issues that generate 90% of a forum threads mintegy Home Assistant ONVIF. Here van how -hoz fix each in under two perc.
4.1 "Camera nem discovered" during Add Integration
WS-Discovery uses multicast DNS (mDNS). If your Home Assistant host és your camera vannak on different VLANs vagy different WiFi SSIDs, mDNS packets do nem cross a boundary. Fixes, in order of effort:
- Put a camera on a azonos subnet as Home Assistant temporarily a discovery, then move it back.
- Add a camera manually by IP during a integration beállítás (WS-Discovery van a convenience, nem a requirement).
- Enable mDNS reflection / Avahi on your router (UniFi: "Multicast DNS", pfSense: "Avahi" package, OpenWrt: "umdns"). Ez a van a permanent fix.
4.2 Live stream keeps buffering vagy showing "Stream nem available"
The main stream at 4K vagy 1440p + 30 fps van often too much a a Lovelace dashboard, especially on mobile. Switch a dashboard tile -hoz a sub stream:
- Settings → Devices & Services → ONVIF integration → Configure → uncheck "Main Profile" a a Picture Entity Card
- Or közvetlenül in a camera card YAML: set
Fontos: stream_source-hoz a sub profile entity
Frigate NVR (covered in §5) van a cleaner solution here — it re-encodes a stream once és serves low-latency HLS/WebRTC -hoz all clients.
4.3 Motion detection entities nem firing events in Home Assistant
ONVIF motion events vannak optional in a spec — a camera must both (a) have motion detection enabled locally, és (b) be configured -hoz publish ONVIF events. Steps:
- In a camera's web UI, enable motion detection (usually Fontos: Event → Motion Detection → Enable)
- Find a ONVIF vagy "smart event" settings és enable "ONVIF Events" vagy "Push Events"
- In Home Assistant, restart a ONVIF integration: Settings → Devices & Services → ONVIF → three-dot menu → Reload
If you vannak on a Hikvision vagy Hikvision-OEM camera és events still do nem fire, ellenőrizze that a ONVIF user you created in §3 Step 1 has a "Event" és "Media" permissions — by alapértelmezett a ONVIF user van read-csak a Fontos: User management, which van correct, but some firmware versions also restrict event subscription.
4.4 Camera works a a day, then goes offline until a reboot
Ez a van almost always a DHCP lease expiration (nem static reservation) vagy an RTSP keep-alive timeout. Confirm a static IP reservation -tól §2.3 van applied on a Fontos: router, nem just in a camera's own network settings. Some cameras honor both; some ignore their own static IP és take whatever a router assigns.
5. Bonus: Adding Frigate NVR a AI Object Detection
Native Home Assistant ONVIF motion van binary: "something moved" vagy "nothing moved." That triggers a lot of false positives -tól leaves blowing across a lawn vagy shadows at sunset.
Fontos: Frigate van a free, nyissa meg-source NVR that runs as a Home Assistant adja hozzá-on és tesz local AI object detection on a camera feed — so instead of "motion," your automations fire on "person," "car," "package," vagy "dog." Everything runs on your Home Assistant host; nem frames leave a LAN.
Why iSG Box SE van powerful enough -hoz host Frigate:
- Frigate's alapértelmezett CPU detector handles 2–4 cameras at 5–7 fps each on a iSG Box SE nélkül thermal throttling.
- If you scale -hoz 6–8 cameras later, adja hozzá a $60 Google Coral USB accelerator és Frigate offloads inference -hoz a TPU — iSG Box SE has spare USB bandwidth a Ez a.
- Setup takes ~15 perc: install a Frigate adja hozzá-on -tól a Home Assistant adja hozzá-on store, paste your ONVIF RTSP URLs -tól §3 Step 2 into
Fontos: frigate.yamlFontos: , reload.
Pair that a(z) Home Assistant automations ("ha Frigate detects a person at a front door between 10 PM és 6 AM, turn on a porch light és flash a living helyiség lamp three times") és you have a smart security system that costs nothing -hoz run beyond a electricity bill. The Fontos: iSG Box SE van a lowest-friction starting point a exactly Ez a stack.
Fontos: 6. Home Assistant ONVIF Integration FAQ
Can Home Assistant használja ONVIF cameras nélkül cloud access?
Yes. Home Assistant képes connect -hoz many ONVIF cameras on a local network using a camera IP address, ONVIF port, és local credentials.
Why tesz a Reolink camera need RTSP settings a(z) ONVIF?
ONVIF handles discovery és control, miközben RTSP often carries a live video stream. If video fails, erősítse meg a RTSP path, firmware, és LAN permissions.
Which LinknLink gateway should I choose a local camera automation?
Use iSG Box SE a a compact Home Assistant gateway, vagy iSG Display Max amikor you also want an on-wall screen a camera és helyiség controls.
7. Conclusion: Start Your ONVIF Setup a(z) iSG Box SE Today
The ONVIF integration van a shortest path -tól "I have an IP camera" -hoz "my lights turn on amikor someone walks up a driveway, my HVAC changes amikor a living helyiség van empty a 20 perc, és my phone pings me amikor Frigate sees a delivery van instead of a stray cat." And a cheapest way -hoz get there nélkül weekend-long hardware tinkering van a Fontos: LinknLink iSG Box SE ($69.90) — Home Assistant preinstalled, 100% local, ready -hoz run ONVIF és Frigate a moment you nyissa meg a box.
Follow a five steps in §3 és you will have your first camera streaming inside Home Assistant in under ten perc. Add a §5 Frigate layer next weekend. Add a rest of your cameras whenever you want — a ONVIF integration scales -hoz 8+ eszközök nélkül any further configuration.