WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Clarification on installation and basic setup

Open gardiol opened this issue 2 months ago • 1 comments

Hi, i have spent a good amount of time reading this and go2rtc documentation and i had quite a few questions like:

  • is go2rtc actually installed with this extension?
  • where do i configure it?
  • how to i add cameras?

because the documentation, while rich, assumes you already know what this is how it works and the basics. Which i did not, as i guess others.

So here is my experience, i hope it can be useful for others or maybe be added to the readme.

This extension really only need a manual configuration in a lovelace card, nothing else. Provided you have an RTSP (or other supported type) camera, just add a new lovelace card in a dashboard with YAML code similar to the following:

type: custom:webrtc-camera # always this string
streams:
  - url: rtsp://10.10.10.10:554/ch=1&subtype=0 # grab your camera stream url, usually from web interface or internet search
    media: video,audio,microphone # needed for 2 way audio
entity: camera.generic_stream
ptz: # PTZ setup for ONVIF, the speed, move_mode and distance is needed for PTZ to work for my camera
  service: onvif.ptz
  data_left:
    entity_id: camera.your_camera_id_onvif
    pan: LEFT
    speed: 1
    distance: 0.3
    move_mode: ContinuousMove
  data_right:
    entity_id: camera.your_camera_id_onvif
    pan: RIGHT
    speed: 1
    distance: 0.3
    move_mode: ContinuousMove
  data_up:
    entity_id: camera.your_camera_id_onvif
    tilt: UP
    speed: 1
    distance: 0.3
    move_mode: ContinuousMove
  data_down:
    entity_id: camera.your_camera_id_onvif
    tilt: DOWN
    speed: 1
    distance: 0.3
    move_mode: ContinuousMove
ui: true
muted: true

And that's it.

By the way, the Tenda two way audio camera (model CH3V2.0) works just fine with the above setup. Still need to check two way audio. One way works, will check second way when i will actually be at home.

gardiol avatar Oct 16 '25 06:10 gardiol

  • is go2rtc actually installed with this extension?

Yes.

  • where do i configure it?

go2rtc.yaml near configuration.yaml

  • how to i add cameras?

It depends on what you mean by this question. You simply enter the camera link in the lovelace card. As described above. If you don't understand how to use go2rtc and why you need it, don't worry. Just use this card "as is".

AlexxIT avatar Oct 16 '25 09:10 AlexxIT