blakeblackshear / frigate-hass-integration

Frigate integration for Home Assistant
MIT License
728 stars 114 forks source link

Clips and Snapshots in Media Browser "Unknown Error" #620

Closed Remko76 closed 8 months ago

Remko76 commented 8 months ago

After some initial issues with updating to 0.13.1 and the V5 of this integration (almost) everything is working perfectly again. Just one minor thing...using the built in Homeassistant media browser: This shows the "Frigate" option and under that are the clips, recordings and snapshots, which used to all show the corresponding items. After the upgrade I do see the 3 folders, I can browse "recordings" and they all show, but when I try to open "Clip" or "Snapshots" I only get an "Unknown Error".

I have reinstalled the integration completely from scratch and also actually emptied my folders and started with an empty database, but nothing is showing up. In the Frigate UI I do see that the cameras have recorded snapshots and clips, I can browse them and play them, but not through the Homeassistant Media LIbrary. Also on my NAS I do see that snapshots and clips have been recorded.

Anyone else with this issue? Again as with the previous 2 issues I opened and got closed with some very quick and good help from @NickM-27 , I see this issue on 2 different systems, with different setups...

The logs really do not show anything besides this;

2024-02-03 07:38:48.909 DEBUG (MainThread) [custom_components.frigate] Finished fetching frigate data in 0.002 seconds (success: True)

My Frigate Config:

mqtt:
  host: 192.168.76.6
  user: USER
  password: PASS

#database:
#  path: /media/database/frigate.db

ffmpeg:
  hwaccel_args: preset-vaapi
  output_args:
    record: preset-record-generic-audio-aac

detectors:
  coral:
    type: edgetpu
    device: usb

birdseye:
  enabled: True
  mode: continuous

# Resolutions 
# Wansview W5: High: 1920x1080, Low: 768x432 (15fps)
# Reolink E1Pro: High: 2560 x 1440, Low: 640x360 (15fps)
# Reolink RLC410W: High: 2560 x 1440, Low: 640x360 (15fps)

go2rtc:
  streams:
    esszimmer:
      - rtsp://USER:PASS@192.168.76.63:554/live/ch0
      - ffmpeg:esszimmer#audio=opus
    esszimmer_sub:
      - rtsp://USER:PASS@192.168.76.63:554/live/ch1
      - ffmpeg:esszimmer_sub#audio=opus
    carport:
      - rtsp://USER:PASS@192.168.76.61:554/live/ch0
      - ffmpeg:carport#audio=opus   
    carport_sub:
      - rtsp://USER:PASS@192.168.76.61:554/live/ch1
      - ffmpeg:carport_sub#audio=opus
    garten:
      - rtsp://admin:PASS@192.168.76.60:554/h264Preview_01_main
      - ffmpeg:garten#audio=opus
    garten_sub:
      - rtsp://admin:PASS@192.168.76.60:554/h264Preview_01_sub
      - ffmpeg:garten_sub#audio=opus
    garage:
      - rtsp://USER:PASS@192.168.76.62:554/live/ch0
      - ffmpeg:garage#audio=opus
    garage_sub:
      - rtsp://USER:PASS@192.168.76.62:554/live/ch1
      - ffmpeg:garage_sub#audio=opus
    eingang:
      - rtsp://admin:PASS@192.168.76.64:554/h264Preview_01_main
      - ffmpeg:eingang#audio=opus
    eingang_sub:
      - rtsp://admin:PASS@192.168.76.64:554/h264Preview_01_sub
      - ffmpeg:eingang_sub#audio=opus
    werkstatt:
      - rtsp://admin:PASS@192.168.76.65:554/h264Preview_01_main
      - ffmpeg:werkstatt#audio=opus
    werkstatt_sub:
      - rtsp://admin:PASS@192.168.76.65:554/h264Preview_01_sub
      - ffmpeg:werkstatt_sub#audio=opus
  webrtc:
    candidates:
    - 192.168.76.6:8555
    - stun:8555
##########################################################
cameras:
  esszimmer:
    ui:
      order: 4
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/esszimmer
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/esszimmer_sub
          roles:
            - detect
    detect:
      enabled: true
      width: 768
      height: 432
      fps: 5
    snapshots:
      enabled: true
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    

##########################################################
  garage:
    ui:
      order: 6
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/garage
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/garage_sub
          roles:
            - detect
    detect:
      enabled: true
      width: 768
      height: 432
      fps: 5
    snapshots:
      enabled: true
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    
    objects:
      track:
        - person
        - car
#        - motorcycle
        - cat
        - bird
        - mouse

##########################################################
  garten:
    ui:
      order: 3
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/garten
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/garten_sub
          roles:
            - detect
    detect:
      enabled: true
      width: 640
      height: 360
      fps: 5
    snapshots:
      enabled: true
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    
    objects:
      track:
        - person
        - cat
        - bird
      filters:
        person:
          threshold: 0.72
          min_area: 2500
    motion:
      mask:
        - 640,0,640,160,517,143,496,91,485,0
        - 0,0,239,0,289,0,292,92,266,203,30,360,0,360

##########################################################
  carport:
    ui:
      order: 2
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/carport
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/carport_sub
          roles:
            - detect
    detect:
      enabled: true
      width: 768
      height: 432
      fps: 5
    snapshots:
      enabled: true
      required_zones:
        - carport_under_roof
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    
        required_zones:
          - carport_under_roof
    zones:
      carport_under_roof:
        coordinates: 0,432,768,432,768,207,359,107,0,215
    motion:
      mask:
        - 768,202,312,92,0,182,0,0,768,0
    objects:
      track:
        - person
        - cat
        - bird
        - car
        - motorcycle

##########################################################
  werkstatt:
    ui:
      order: 5
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/werkstatt
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/werkstatt_sub
          roles:
            - detect
#    live:
#      stream_name: werkstatt_sub
    detect:
      enabled: true
      width: 640
      height: 360
      fps: 5
    snapshots:
      enabled: true
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    
    objects:
      track:
        - person
        - cat
        - car
        - mouse
#        - motorcycle

##########################################################
  eingang:
    ui:
      order: 1
    ffmpeg:
      inputs:
        #High Res
        - path: rtsp://127.0.0.1:8554/eingang
          roles:
            - record
        #Low Res    
        - path: rtsp://127.0.0.1:8554/eingang_sub
          roles:
            - detect
    detect:
      enabled: true
      width: 640
      height: 360
      fps: 5
    snapshots:
      enabled: true
      required_zones:
        - entry_front_door
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 10    
        required_zones:
          - entry_front_door
    motion:
      mask:
        - 0,0,39,0,33,22,0,36
        - 354,162,388,180,435,200,412,325,266,331,262,163
    zones:
      entry_carport:
        coordinates: 223,177,229,63,298,58,336,172
      entry_front_door:
        coordinates: 96,360,438,360,315,60,191,66
    objects:
      track:
        - person
        - cat
        - bird
        - car
        - umbrella
        - motorcycle
Remko76 commented 8 months ago

Sorry, duplicate of https://github.com/blakeblackshear/frigate-hass-integration/issues/600

Altough I do not see the answer there yet. Do I need to wait for an updated version?