WebRTC provides better, more responsive camera streaming in Home Assistant while you are away from home.
Enabling the WebRTC relay server connection for improved camera streaming
If you are logged into Home Assistant Cloud in Home Assistant, WebRTC connections via our relay servers are enabled by default.
If you've disabled it, follow these steps to enable it.
-
In Home Assistant, go to Settings > Home Assistant Cloud.
-
Under WebRTC connections, enable the toggle.
- Result: You can now watch your cameras with the lowest latency possible, no matter where you are.
What is WebRTC?
WebRTC is a standard that makes a peer-to-peer connection for lower-latency audio and video streaming. It is widely used across the internet for video calling. Home Assistant uses WebRTC to provide more responsive and less delayed camera streaming. When you’re away from home, WebRTC will try to find the fastest and most direct path between your Home Assistant instance and the camera you are trying to view.
How is it different for Cloud and non-Cloud users?
TL;DR: As part of your Home Assistant Cloud subscription, you get access to a relay server that allows you to watch your cameras with the lowest latency possible, no matter where you are.
All Home Assistant users can use WebRTC connections, even if they do not have a Home Assistant Cloud subscription. This is facilitated by the Open Home Foundation, which is hosting the negotiating network infrastructure (STUN servers). However, sometimes a direct connection between the client (like your browser or mobile app) and the camera is not possible. In these situations, the camera stream needs to be relayed by an external server. Your Home Assistant Cloud subscription provides this relay server (TURN server), allowing you to connect to your cameras in the best possible way in more situations.
Disabling WebRTC relay server connection
If, for some reason, you would like to turn this feature off and only use peer-to-peer connections without the relay functionality, this setting is available.
- In Home Assistant, go to Settings > Home Assistant Cloud.
- Under WebRTC connections, disable the toggle.
- Result: If disabled, whenever a WebRTC connection is not possible, it will revert to using other less responsive video streaming methods.
Related topics
- Nabu Casa account log in page
- Enabling Home Assistant Cloud in Home Assistant
- Nabu Casa account pricing
- WebRTC is a standard
- Open Home Foundation
Edit this article on GitHub