Frigate lovelac card + go2rtc stream

Hi !

Can anyone help me set up the frigate card to work with go2rtc?

The stream from the camera is available in go2rtc, and showing good.

But I can’t configure the frigate card.

I don’t know if I need a camera entity in this case ?
The camera have camera.vstarcam_c63s_stream but there its no picture .

Try this code, but have error…

type: custom:frigate-card
cameras:
  - live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc
      stream: bejarat

Thnaks for the help !

1 Like

you need frigate and the frigate integration setup, use the camera entity from the frigate integration

I don’t want to use the frigate addon, I have go2rtc instead. At the bottom of this description, it says that it can be solved with the frigate card, but I can’t…

Module: Hass

The best and easiest way to use go2rtc inside the Home Assistant is to install the custom integration WebRTC Camera and custom lovelace card.

But go2rtc is also compatible and can be used with RTSPtoWebRTC built-in integration.

You have several options on how to add a camera to Home Assistant:

  1. Camera RTSP source => Generic Camera
  2. Camera any source => go2rtc config => Generic Camera
  • Install any go2rtc
  • Add your stream to go2rtc config
  • Hass > Settings > Integrations > Add Integration > ONVIF > Host: 127.0.0.1, Port: 1984
  • Hass > Settings > Integrations > Add Integration > Generic Camera > Stream Source URL: rtsp://127.0.0.1:8554/camera1 (change to your stream name, leave everything else as is)

You have several options on how to watch the stream from the cameras in Home Assistant:

  1. Camera Entity => Picture Entity Card => Technology HLS, codecs: H264/H265/AAC, poor latency.
  2. Camera Entity => RTSPtoWebRTC => Picture Entity Card => Technology WebRTC, codecs: H264/PCMU/PCMA/OPUS, best latency.
  • Install any go2rtc
  • Hass > Settings > Integrations > Add Integration > RTSPtoWebRTC > http://127.0.0.1:1984/
  • RTSPtoWebRTC > Configure > STUN server: stun.l.google.com:19302
  • Use Picture Entity or Picture Glance lovelace card
  1. Camera Entity or Camera URL => WebRTC Camera => Technology: WebRTC/MSE/MP4/MJPEG, codecs: H264/H265/AAC/PCMU/PCMA/OPUS, best latency, best compatibility.
  • Install and add WebRTC Camera custom integration
  • Use WebRTC Camera custom lovelace card

You can add camera entity_id to go2rtc config if you need transcoding:

streams: “camera.hall”: ffmpeg:{input}#video=copy#audio=opus

PS. Default Home Assistant lovelace cards don’t support 2-way audio. You can use 2-way audio from Add-on Web UI. But you need use HTTPS to access the microphone. This is a browser restriction and cannot be avoided.

PS. There is also another nice card with go2rtc support - Frigate Lovelace Card.

1 Like

using go2rtc without frigate in the frigate card is only supported in the dev (unreleased) version.

hi, did you get it to work with that syntax and the “dev” version of the card? I want to know if an camera entity is needed, since I don’t have any :slight_smile: , the stream is configured in go2rtc directly