If you’re using the Homeway add-on for Home Assistant, there’s no configuration needed! The add-on will automatically configure Home Assistant to use Homeway’s WebRTC servers.
If you are using the standalone Homeway add-on for Home Assistant, your add-on might not have access to the Home Assistant YAML configuration file, which is needed to enable WebRTC camera streaming. But you can easily manually add the required WebRTC configuration!
Get Access To The Home Assistant Configuration File
Follow this guide to get access to the configuration.yaml file.
Find Your Unique WebRTC Username and Credential
WebRTC TURN servers require authentication to use them, so you must get your Homeway WebRTC username and credentials. The username and credentials can be found in two places.
- The Homeway Add-On Logs
- Access the add-on logs via the log file or the Docker log viewer (if running in Docker) and search for webrtc. You will find a printout that shows your username and credentials.
- The Homeway Config File
- Access your Homeway configuration file
homeway.conf and look for the WebRTC section. This section will list your username, credentials, and the current Homeway WebRTC servers.
Update the Home Assistant Configuration For WebRTC
Once you have access to the Home Assistant YAML configuration file and have your Homeway username and secret, add this block to your Home Assistant configuration.
web_rtc:
ice_servers:
- url:
- "stun:stun.cloudflare.com:3478"
- "stun:stun.cloudflare.com:53"
- "stun:webrtc.homeway.io:443"
- url:
- "turn:webrtc.homeway.io:443?transport=udp"
- "turn:webrtc.homeway.io:3478?transport=udp"
- "turn:webrtc.homeway.io:3478?transport=tcp"
- "turn:webrtc.homeway.io:80?transport=tcp"
- "turns:webrtc.homeway.io:443?transport=tcp"
- "turns:webrtc.homeway.io:5349?transport=tcp"
username: "<your Homeway username>"
credential: "<your Homeway credential>"
Be sure to update your username and credentials, restart Home Assistant, and you’re good to go!