Skip to content
Open seenzus

Camera Integration Tutorial

This tutorial explains how to connect a network camera to Home Assistant. The two mainstream protocols today are ONVIF and RTSP, each with its own integration method. To find out whether a specific camera supports a given protocol, ask the camera vendor.

ItemOSCore
Version14.1.12025.2.2

Before you start, make sure:

  • Your Home Assistant is running normally and you can access its admin interface.
  • You have confirmed that the camera supports the ONVIF or RTSP protocol (ask the camera vendor).
  • The HA box and the camera are on the same local network.

Tip: If you want to use Frigate, you must use the RTSP protocol.


Highlights: Uses the standard ONVIF protocol. Besides viewing the video feed, you can also control features such as pan/tilt (PTZ). Within the same IP segment, ONVIF-capable software can automatically discover the camera.

Official documentation: https://www.home-assistant.io/integrations/onvif/

In HA, go to Settings > Devices & Services > Integrations > Add Integration > search for “ONVIF”.

Step 1 screenshot


Check “Auto discovery” and click “Submit”.

Step 2 screenshot


Select the camera you want to add and click Submit.

Step 3 screenshot


Fill in the corresponding parameters.

Step 4 screenshot


Click Finish.

Step 5 screenshot


Find and open the “ONVIF” integration, and you will see the main-stream video feed from the camera.

Step 6 screenshot


Step 7: Switch to the Sub Stream (Open the Entity)

Section titled “Step 7: Switch to the Sub Stream (Open the Entity)”

Because the main stream consumes a lot of system resources, we recommend switching to the sub stream. Click “x entities not shown”, then find and click “PROFILE_001” (the name may vary).

Step 7 screenshot


Once inside, click the gear icon in the top-right corner.

Step 8 screenshot


Click “Enabled” and then click “Update”.

Step 9 screenshot


Disable the main stream using the same general method.


Official documentation: https://www.home-assistant.io/integrations/generic/

Step 1: Add the Generic Camera Integration

Section titled “Step 1: Add the Generic Camera Integration”

In HA, go to Settings > Devices & Services > Integrations > Add Integration > search for “Generic Camera”.

Step 1 screenshot


Step 2: Fill In the Configuration Parameters

Section titled “Step 2: Fill In the Configuration Parameters”

Referring to the glossary in the table below, fill in the configuration parameters in the dialog and click “Submit”.

No.FieldDescription
1Stream source URLThe device’s IP address and path
2RTSP protocolThe network transport protocol to use
3AuthenticationThe default, basic, is fine
4UsernameThe account for the camera’s admin interface
5PasswordThe password for the camera’s admin interface

Step 2 screenshot


ProblemSolution
Not sure which protocol the camera supportsAsk the camera vendor to confirm whether it supports ONVIF or RTSP.
Want to use FrigateYou must connect via the RTSP protocol.
Stuttering video or high system resource usageWith ONVIF, the main stream is very resource-intensive. Open the entity settings and switch to the sub stream (PROFILE_001), then disable the main stream.
ONVIF auto discovery cannot find the cameraMake sure the camera and HA are on the same IP segment and that the camera’s ONVIF feature is enabled.

The core camera integration flow is: first confirm which protocol the camera supports, then pick one of the two methods — ONVIF (PTZ control and auto discovery; remember to switch to the sub stream to save resources) or RTSP (use “Generic Camera” and fill in the stream source URL plus username/password; Frigate requires this method).