How to add 2K Smart Doorbell J5 to Home Assistant via WebRTC?

If you are using Home Assistant, you may want to add smart doorbell J5 to it. This tutorial shows you how to quickly add this device to your existing Home Assistant system through WebRTC. Though there are many methods to achieve this integration, WebRTC integration can support real-time video streaming. On the contrary, if adding the device through the built-in ONVIF component, the video stream will encounter serious latency (approximately up to 10 seconds) problem.

Ensuring you have bought the right version of J5, only CloudEdge version supports ONVIF protocol, hence can support third-party system integration. All Tuya based cameras and smart doorbells can not support this feature.

Enable ONVIF connection

To implement this integration, the ONVIF function needs to be enabled through CloudEdge app. Logon CloudEdge app, then tapping “Onvif Settings” and turn it on, then set a new password for the connection. Additionally, you can find the local IP address for the camera, and write it down for later configuration.

Onvif Settings on CloudEdge App

Install and Config WebRTC Camera

You can install “WebRTC camera” custom component by going to “HACS > Integrations > Plus > WebRTC > Install. Alternatively, you can install it manually by coping ‘WebRTC” folder from the Github, and putting the folder to the custom_component folder of your Home Assistant.

After installation of WebRTC Camera component, you should restart your Home Assistant, then go to “Configuration”, select “Devices&Services) from the page.

Devices & Services Home Assistant
Devices & Services Home Assistant

Clicking “+ ADD INTEGRATION” button which is on the right bottom of the page. Typing “WebRTC Camera” to add it. Now you have successfully added this custom component to your HASS.

Custom WebRTC Camera

Going to “Overview”, then click “Edit Dashboard”, click “ADD CARD” then scrolling down the page, and you can find a card titled “Custom: WebRTC Camera”, selecting it to continue.

Card Configuration WebRTC Camera - Home Assistant

Edit RTSP URL for WebRTC Camera

The card configuration will include the default example, you can find a media player on the right side. Now you may remove the existing url, replacing it with the RTSP URL of your Smart Doorbell.

The RTSP URL of Smart Doorbell J5 Shows As Below:

rtsp://admin:[email protected]:8554/Streaming/Channels/101
rtsp://admin:[email protected]:8554/Streaming/Channels/102
    RTSP URL path explanation:
  • admin: default username, should not be changed
  • onvif150: onvif connection password, modified through CloudEdge app
  • 192.168.0.179: local IP address of your smart doorbell
  • 101: main stream, resolution 2304x1296, 2K
  • 102: sub-stream, resolution 640x480, VGA

After replacing the sample configuration (URL), the new configuration should like this:

type: custom:webrtc-camera
url: rtsp://admin:[email protected]:8554/Streaming/Channels/102

Now, you should be able to watch the real-time video from your smart doorbell.

Watch live stream of smart doorbell on Home Assistant

Why not use the official ONVIF component?

Since ONVIF component is a built-in component in Home Assistant, it’s straightforward to add smart doorbell to Home assistant. However, this integration has a serious problem, that is the video streaming encounters video latency up to 10 seconds. It’s probably one of reasons why users abandon this component and opt for WebRTC Camera.

Can I remotely access the video?

It works locally and remotely. You can access the video remotely through Home assistant companion app or web browsers so long as you're able to access the Home Assistant (HASS).

Comments

Write Comment