frigate-hass-card: Frigate camera name autodetection doesn't work for JSMPEG

Hi, first of all great work on this card, it has all that’s needed to display frigate cameras and even more. 😃

I had a series of issues configuring it, I worked around most of them but probably I’m missing something, here the macro steps I followed:

  1. I didn’t have the WebRTC component, I just wanted to display the live view of frigate but it didn’t work, I was only seeing a grey rectangle.
  2. I installed WebRTC and I configured the camera throught the GUI, selecting the camera.citofono entity, I had an error displayed on the video “RTSP only stream supported” (something like that), but the camera (a doorbell) is RTSP.
  3. I read in the doc that I could also use a RTSP URL, but in the GUI I couldn’t find it, there was only the listbox with the entity selector: image
  4. I switched to YAML and replaced the entity: with url: and the RTSP path, then I finally saw the video appearing. 😃
  5. I wanted to try frigate-jsmpeg but in the GUI selector (see above) it didn’t appear. I’m using integration 2.1. image

So to summarize the issues:

  1. live view provider set with frigate doesn’t work (grey box)
  2. can’t find frigate-jsmpeg in live view provider listbox, even if using integration 2.1
  3. in webrtc (used as workaround) if I use the entity camera.citofono (created by frigate) webrtc complains about it not being an RTSP stream. Using the RTSP url as workaround means I’m opening a second stream from the camera. I’d prefer to use Frigate as proxy.
  4. in webrtc options GUI, you can’t set the rtsp url, as described in the documentation, only selection of entity is possible

This is the current config:

  - type: custom:frigate-card
    controls: {}
    menu_mode: overlay-bottom
    webrtc:
      url: rtsp://user:XXXXXX@citofono.axel.dom:554/Streaming/Channels/101
      webrtc: true
      mse: false
    autoplay_clip: false
    menu_buttons:
      frigate: false
      clips: true
      live: true
      snapshots: true
      frigate_ui: false
    camera_entity: camera.citofono
    frigate_url: http://hass.axel.dom:5000
    view_default: live
    live_provider: webrtc

I think that’s everything, if I missed something I’ll integrate the post. 😃

Thanks again for your great work and the support.

Alessandro

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

BTW: You mentioned it’d be nice if menu entities could be toggled by click, https://github.com/dermotduffy/frigate-hass-card/issues/74 has that feature request (and I do plan to work on it).

My pleasure. I’ll leave the name configured until next version. 😃

May I suggest to put the autodetected name somewhere in the input box, or the label maybe?

OK! Thank you – believe I figured it out.

In https://github.com/dermotduffy/frigate-hass-card/blob/main/src/components/live.ts#L53 we are using the raw configuration value for the camera name, rather than the autodetected one if that raw configuration value is empty. Let me add it to my bug list – thanks for helping me debug!