Wechsel von Frigate auf Frigate+

Hallo aus der Schweiz

Mein HA läuft auf einem NUC und Frigate läuft seit etwa drei Jahren Problemlos als Add-On. Nun möchte eine bessere Objekterkennung haben. Deshalb habe ich bei Frigate+ einbezahlt und mir dort einen API-key geholt. Zur Objekt Erkennung habe ich einen Coral-Stick im Einsatz

Wie die yaml-Datei aufgebaut sein soll, gibt es ja verschiedene Ansätze und ich habe verschiedenes versucht und für mich vor langer Zeit einen Weg gefunden, der sehr gut funktioniert.

Nun habe ich das Problem, dass ich weder auf meinem Live-System, weder auf meinem identischen Testsystem den API-Key für Frigate+ reinbekomme. Ich erhalte dabei verschiedene Fehlermeldungen.

Zum Beispiel folgendes:

Config Error:  Traceback (most recent call last):   File "/opt/frigate/frigate/api/app.py", line 200, in config_save     FrigateConfig.parse_yaml(new_config)   File "/opt/frigate/frigate/config/config.py", line 689, in parse_yaml     return cls.parse(config_yaml, is_json=False, \*\*context)   File "/opt/frigate/frigate/config/config.py", line 685, in parse     return cls.parse_object(config, \*\*context)   File "/opt/frigate/frigate/config/config.py", line 695, in parse_object     return cls.model_validate(   File "/usr/local/lib/python3.9/dist-packages/pydantic/main.py", line 568, in model_validate     return cls.\__pydantic_validator_\_.validate_python(   File "/opt/frigate/frigate/config/config.py", line 588, in post_validation     self.model.check_and_load_plus_model(self.plus_api)   File "/opt/frigate/frigate/detectors/detector_config.py", line 125, in check_and_load_plus_model     download_url = plus_api.get_model_download_url(model_id)   File "/opt/frigate/frigate/plus.py", line 221, in get_model_download_url     r = self.\_get(f"model/{model_id}/signed_url")   File "/opt/frigate/frigate/plus.py", line 86, in \_get     f"{self.host}/v1/{path}", headers=self.\_get_authorization_header()   File "/opt/frigate/frigate/plus.py", line 81, in \_get_authorization_header     self.\_refresh_token_if_needed()   File "/opt/frigate/frigate/plus.py", line 71, in \_refresh_token_if_needed     raise Exception( Exception: Plus API key not set. See https://docs.frigate.video/integrations/plus#set-your-api-key

Egal was ich versuche zu machen ich komme einfach nicht weiter. deshlab gelange ich mit der Frage an die Community ob jemand eine Idee hat, wie ich Frigate+ in meiner yaml Konfiguration eintragen muss.

Wie erwähnt läuft meine yaml soweit ohne Probleme. Vielleicht hat jemand ja eine Lösung und kann mir mitteilen, wo und wie ich den API-Key eintragen soll.


mqtt:
  host: 192.168.1.67
  port: 1883
  topic_prefix: frigate
  user: geheim
  password: geheim

database:
  path: /config/frigate.db

birdseye:
  enabled: true
  restream: true
  mode: objects
# motion oder continuous

record:
  enabled: true
  retain:
    days: 1
  alerts:
    retain:
      days: 7
  detections:
    retain:
      days: 7
snapshots:
  enabled: true
  timestamp: true
  bounding_box: true
  crop: true
  quality: 80
  retain:
    default: 14

timestamp_style:
  position: bl
  effect: solid

review:
  alerts:
    labels:
      - person
      - cat
      - dog


cameras:
  Unterstand: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://installer:1234567890@192.168.1.110:554/Streaming/Channels/101 # <----- The stream you want to use for detection
          roles:
            - detect
            - snapshots
            - record

    live:
      height: 720
    detect:
      height: 720
      width: 1280
      fps: 5
      enabled: true
      annotation_offset: -500

    objects:
      track:
        - person
        - cat
        - dog
      filters:
        person:
          threshold: 0.75 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
        cat:
          threshold: 0.7
        dog:
          threshold: 0.7

    motion:
      mask:
        - 0.458,0,0.46,0.093,0.024,0.093,0.023,0
        - 0.848,0.613,0.903,0.625,0.916,0.537,0.905,0.406,0.882,0.267,0.863,0.263
        - 0.094,0.215,0.113,0.331,0.153,0.313,0.134,0.19
        - 0.239,0.44,0.3,0.426,0.255,0.067,0.195,0.115
        - 0.359,0.356,0.434,0.348,0.394,0.005,0.327,0.047
      threshold: 25
      contour_area: 10
      improve_contrast: true
    zones:
      unterstand_auto:
        coordinates: 1280,720,1280,476,1166,450,1085,0,515,0,373,34,0,158,0,720
#
#
      Eingangsbereich:
        coordinates: 0.85,0.009,0.846,0.6,0.997,0.641,0.994,0.007
        loitering_time: 0
        inertia: 3
  Rasen: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://installer:1234567890@192.168.1.111:555/Streaming/Channels/101 # <----- The stream you want to use for detection
          roles:
            - detect
            - snapshots
            - record

    live:
      height: 720
    detect:
      height: 720
      width: 1280
      fps: 5
      enabled: true
      annotation_offset: -500

    objects:
      track:
        - person
        - cat
        - dog
        - bird
      filters:
        person:
          threshold: 0.7 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
          mask: 0.531,0,0.945,0,0.94,0.149,0.336,0.148,0.147,0.208,0,0.336,0,0,0.249,0
        cat:
          threshold: 0.7
        dog:
          threshold: 0.7
        bird:
          threshold: 0.6

    motion:
      mask:
        - 0.458,0,0.46,0.093,0.024,0.093,0.023,0
        - 0.795,0.26,0.324,0.194,0.272,0.224,0.269,0,0.457,0,0.671,0,0.991,0,0.973,0.157,0.954,0.372
  Teich: # <------ Name the camera
    ffmpeg:
#      hwaccel_args: # <------ verringert has high ffmpeg cpu usage
#        - -c:v:1
#        - h264_v4l2m2m
      inputs:
        - path: rtsp://installer:1234567890@192.168.1.112:554/Streaming/Channels/101 # <----- The stream you want to use for detection
          roles:
            - detect
            - snapshots
            - record

    live:
      height: 720
    detect:
      height: 720
      width: 1280
      fps: 5
      enabled: true
      annotation_offset: -500

    objects:
      track:
        - person
        - cat
        - dog
        - bird
        - mouse
      filters:
        person:
          threshold: 0.7 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
          mask: 0,0.555,0,1,1,1,1,0.622,0.839,0.738,0.559,0.71,0.407,0.695,0.164,0.665
        cat:
          threshold: 0.7 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
        dog:
          threshold: 0.7 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
        bird:
          threshold: 0.6 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot
          mask: 
            0.857,0.937,0.608,0.973,0.452,0.931,0.33,0.885,0.403,0.873,0.536,0.902,0.624,0.862,0.735,0.846,0.803,0.864
        mouse:
          threshold: 0.3 # Schwellenwert; ab welchem Wert erfolgt ein Snapshot

    motion:
      mask:

#

        - 0.458,0,0.46,0.093,0.024,0.093,0.023,0
        - 0.284,0.516,0.281,0.569,0.313,0.571,0.316,0.512
        - 0.625,0.053,0.978,0.031,0.991,0.274,0.835,0.594,0.708,0.572,0.637,0.4,0.481,0.413,0.427,0.255
  Reolink: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://admin:glm$R280171@192.168.1.114:554/h265Preview_01_main # <----- The stream you want to use for detection
          roles:
            - detect
            - snapshots
            - record

    live:
      height: 720
    detect:
      height: 720
      width: 1280
      fps: 5
      enabled: true
      annotation_offset: -500

#

version: 0.15-1
camera_groups:
  Standart:
    order: 1
    icon: LuBoxes
    cameras:
      - birdseye
      - Rasen
      - Teich
      - Unterstand

Ich danke für jede Unterstützung.

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)

Die frigate Dokumentation schreibt über eine Environment Variable:

Daran ist nicht zu zweifeln.

Super, danke für deinen Hinweis.

Manchmal muss man mit der Nase darauf gestossen werden :-).

Ich habe den API-Key eingetragen und Firgate neu gestartet. Nun bin ich aber etwas unsicher ob wirklich Frigate+ läuft. Kann ich das irgendwo sehen?

Liebe Grüsse aus der Schweiz

Beim Durchsehen der Aufzeichnungen gibt es ein submit to frigate+.

Dann da einloggen und das Bild bewerten oder sowas.

1 „Gefällt mir“

Danke vielmals für deine Unterstütztung. Ohne dich wäre ich heute noch am suchen :slight_smile:

1 „Gefällt mir“