Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since Frigate, and frigate card updates, my dashboard using frigate card in extremely slow and inconsistent #1773

Open
kevinm2 opened this issue Dec 17, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@kevinm2
Copy link

kevinm2 commented Dec 17, 2024

Checklist:

[REQUIRED] Card diagnostic information:

card_version: 6.0.12
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/131.0.0.0 Safari/537.36
date: 2024-12-17T12:26:49.093Z
lang: en
timezone: America/Los_Angeles
git:
  hash: e2b6d38
  build_date: Mon, 16 Dec 2024 05:43:24 GMT
  commit_date: Sun, 15 Dec 2024 21:42:12 -0800
ha_version: 2024.12.3
custom_integrations:
  frigate:
    detected: true
    version: 5.6.0
    devices:
      01J923AAFPVKWVVWVF***: 5.6.0/0.14.1-f4f3cfa
  hass_web_proxy:
    detected: false
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.camera7
  view:
    default: live
    update_force: true
    scan:
      enabled: true
      untrigger_seconds: 10
    update_cycle_camera: true
  menu: {}
  live:
    lazy_load: false
  performance:
    style:
      box_shadow: false
      border_radius: false

card_version: 6.0.12
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/131.0.0.0 Safari/537.36
date: 2024-12-17T12:28:11.302Z
lang: en
timezone: America/Los_Angeles
git:
  hash: e2b6d38
  build_date: Mon, 16 Dec 2024 05:43:24 GMT
  commit_date: Sun, 15 Dec 2024 21:42:12 -0800
ha_version: 2024.12.3
custom_integrations:
  frigate:
    detected: true
    version: 5.6.0
    devices:
      01J923AAFPVKWVVWVF1***: 5.6.0/0.14.1-f4f3cfa
  hass_web_proxy:
    detected: false
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.camera6
  view:
    default: live
    update_force: true
    scan:
      enabled: true
      untrigger_seconds: 10
    update_cycle_camera: true
  menu: {}
  live:
    lazy_load: false
  performance:
    style:
      box_shadow: false
      border_radius: false

[REQUIRED] Description of problem:

Issue 1: After installing the system and the new firgate updates, the cameras started to load extremely slowly , and a blue circle that is now appearing on the top right corner of the stream display, when the firgate card in my dashboard is in use. This blue circle sometimes stays on a couple of streams for a long time, and sometimes it moves to the other camera streams! I have 8 camera streams.

Issue 2: While using the firgate-card in the dashboard, the CPU works harder , sounding louder than before!

Issue 3: While in dashboard, trying to edit the card, I sometimes can only see and use the "SHOW CODE EDITOR", visual editor is not available. Today the visual "config" is showing up.

Note: In frigate itself, clicking on "Live", "Birdseye" and "All Cameras", camera stream show a lot faster, with out the blue circle!

Detail:
I never saw this before, but I am NOW getting a blue progress bar circle on the top right corner of the camera display in my dashboard. When I hover over it, it says "Waiting for live stream to load ...". It is very inconsistent, sometimes it stays there for a long time, sometime it goes away after 3 to 5 minutes. When I page refresh chrome while viewing a dashboard, it just hangs there, without displaying any other streams. But when I click on browser stop and refresh again, it displays other cameras fast, with the "blue circle" on some the cards.
image

  • I know the actual camera stream is not slow, because when I test the stream in VLC > Open Network Stream ..." it pulls and show the high resolution camera stream in 3 to 5 seconds. I am guessing there is something wrong with the frigate card add-on.

  • While viewing in frigate (not the dashboard) every thing seems to be normal.

  • I also noticed that as soon as I go to the dashboard containing the "Frigate cards" the CPU fan starts racing very fast.

UPDATE: 12/16/2024 - After seeing the circle for around 5 minutes of a frozen in time camera scene, I get following image in the Frigate Car, with the "blue circle" still on the top right"
image

What's going on here?

Current OS versions:

  • Core2024.12.2
  • Supervisor2024.11.4
  • Operating System14.0
  • Frontend20241127.7

Add-ons:
Frigate (Full Access) Current version: 0.14.1
Frigate Home Assistant Integration: Release v5.6.0
GitHub Release Build Status Test Coverage

Frigate Card:
GitHub Release Build Status HACS Sponsor

[OPTIONAL] Last working release (if known):
Unfortunately have not logged it.

[OPTIONAL] Javascript errors shown in the web inspector:
Do not know how to accesses it.

Typical frigate.yaml camera setting.

detectors:
  coral:
    type: edgetpu
    device: usb

logger:
  default: debug
  logs:
    frigate.event: debug

mqtt:
  host: 192.168.*.*
  user: USER_NAME
  password: PASSWORD

birdseye:
  enabled: true
  mode: continuous
  width: 1280
  height: 720

cameras:
  camera1: # <------ Name the camera 1 BEGIN  ------------------------------------------------------------------------------>
    enabled: true
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://USER_NAME:[email protected].*.*:554/cam/realmonitor?channel=1&subtype=1
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://USER_NAME:[email protected].*.*:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record

    detect:
      width: 1270 # <- optional, by default Frigate tries to automatically detect resolution
      height: 720 # <- optional, by default Frigate tries to automatically detect resolution
      fps: 5
      stationary:
        interval: 20
        threshold: 50

    # object track ????
    objects:
      track:
        - person
        - car
        - cat
        - dog

      filters:
        person:
          min_area: 5000
          min_score: 0.5
          threshold: 0.6
        car:
          min_area: 16000 # 5000
          min_score: 0.8
          threshold: 0.6

    # Optional: Record configuration
    record:
      enabled: true
      retain:
        days: 3
        mode: all #options: all motion active_objects
      events:
        pre_capture: 20
        post_capture: 20
        retain:
          default: 3
          mode: active_objects  #options: All motion active_objects
          # Optional: Objects to save recordings for. (default: all tracked objects)
        objects:
          - person
          - car
          - cat
          - dog
        #  Optional: Per object retention days
        #  objects: 4
        #  person: 7

    # Optional: Configuration for the jpg snapshots written to the clips directory for each event
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      crop: false
      retain:
        default: 7

    zones:
      front1_zone1:
        coordinates: 
          0,0.998,0,0.239,0.106,0.269,0.147,0.239,0.199,0.244,0.205,0.362,0.212,0.403,0.365,0.382,0.37,0.355,0.454,0.321,0.496,0.299,0.62,0.307,0.679,0.323,0.79,0.375,0.911,0.443,1,0.458,1,1
        loitering_time: 0
        objects: person
        inertia: 3
      Driveway_Entry:
        coordinates: 0.221,0.391,0.345,0.372,0.45,0.39,0.2,0.44
        loitering_time: 0
        objects: car
        inertia: 3
      front1_zone3:
        coordinates: 
          0.644,0.325,0.701,0.332,0.779,0.376,0.923,0.531,0.717,0.424,0.659,0.384,0.638,0.35
        loitering_time: 0
        inertia: 3
        objects:
          - cat
          - dog
    motion:
      mask:
        - 1,0,1,0.225,0.971,0.402,0.599,0.217,0.619,0.1,0.62,0
        - 0,0,0.614,0,0.613,0.111,0.591,0.217,0.463,0.235,0.37,0.263,0.306,0.236,0.312,0.15,0.282,0.148,0.202,0.231,0.146,0.221,0.105,0.252,0,0.219
    review:
      alerts:
        required_zones:
          - front1_zone1
          - Driveway_Entry
          - front1_zone3
      detections:
        required_zones:
          - front1_zone1
          - Driveway_Entry
          - front1_zone3

Logs > Frigate (Full access) log:

2024-12-17 12:48:20.699215888  [2024-12-17 04:48:20] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:22.484847650  [2024-12-17 04:48:22] frigate.stats.emitter          DEBUG   : Starting stats collection
2024-12-17 12:48:22.484857033  [2024-12-17 04:48:22] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:23.084384241  [2024-12-17 04:48:23] frigate.stats.emitter          DEBUG   : Finished stats collection
2024-12-17 12:48:25.703908787  [2024-12-17 04:48:25] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:25.838772041  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera2/48.11.mp4 in 0.11241698265075684 seconds.
2024-12-17 12:48:25.839655053  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera7/48.12.mp4 in 0.09868884086608887 seconds.
2024-12-17 12:48:25.840517809  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera3/48.12.mp4 in 0.08396005630493164 seconds.
2024-12-17 12:48:25.841697607  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera8/48.13.mp4 in 0.07083678245544434 seconds.
2024-12-17 12:48:25.842605368  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera6/48.13.mp4 in 0.05722188949584961 seconds.
2024-12-17 12:48:25.843715289  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera4/48.13.mp4 in 0.044554948806762695 seconds.
2024-12-17 12:48:25.844485058  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera1/48.13.mp4 in 0.03165102005004883 seconds.
2024-12-17 12:48:25.851413706  [2024-12-17 04:48:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera5/48.15.mp4 in 0.023149967193603516 seconds.
2024-12-17 12:48:25.853711604  [2024-12-17 04:48:25] peewee.sqliteq                 DEBUG   : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2024-12-17 12:48:25.853828728  [2024-12-17 04:48:25] peewee                         DEBUG   : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['1734439691.0-2dxliv', 'camera2', '/media/frigate/recordings/2024-12-17/12/camera2/48.11.mp4', 1734439691.0, 1734439702.412109, 11.412109375, 0, 0, 0, 6.0, 0, '1734439692.0-ygufvt', 'camera7', '/media/frigate/recordings/2024-12-17/12/camera7/48.12.mp4', 1734439692.0, 1734439703.629753, 11.629752604166667, 0, 0, 0, 6.0, 0, '1734439692.0-w87kac', 'camera3', '/media/frigate/recordings/2024-12-17/12/camera3/48.12.mp4', 1734439692.0, 1734439703.316667, 11.316666666666666, 0, 0, 0, 6.0, 0, '1734439693.0-umfoqo', 'camera8', '/media/frigate/recordings/2024-12-17/12/camera8/48.13.mp4', 1734439693.0, 1734439700.77806, 7.778059895833334, 0, 0, 0, 4.0, 0, '1734439693.0-v7632w', 'camera6', '/media/frigate/recordings/2024-12-17/12/camera6/48.13.mp4', 1734439693.0, 1734439702.834049, 9.834049479166666, 0, 0, 0, 5.0, 0, '1734439693.0-bzvzvs', 'camera4', '/media/frigate/recordings/2024-12-17/12/camera4/48.13.mp4', 1734439693.0, 1734439700.716732, 7.716731770833333, 0, 0, 0, 4.1, 0, '1734439693.0-hoc185', 'camera1', '/media/frigate/recordings/2024-12-17/12/camera1/48.13.mp4', 1734439693.0, 1734439702.80957, 9.8095703125, 0, 0, 0, 5.0, 0, '1734439695.0-kpx7bf', 'camera5', '/media/frigate/recordings/2024-12-17/12/camera5/48.15.mp4', 1734439695.0, 1734439702.848633, 7.8486328125, 0, 0, 0, 4.0, 0])
2024-12-17 12:48:26.994805167  127.0.0.1 - - [17/Dec/2024:04:48:26 -0800] "" 400 0 "-" "-" "-"
2024-12-17 12:48:30.712125279  [2024-12-17 04:48:30] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:35.697936635  [2024-12-17 04:48:35] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:35.813242375  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera8/48.21.mp4 in 0.09911298751831055 seconds.
2024-12-17 12:48:35.814149557  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera4/48.21.mp4 in 0.08572101593017578 seconds.
2024-12-17 12:48:35.815239683  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera2/48.22.mp4 in 0.07194900512695312 seconds.
2024-12-17 12:48:35.815904689  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera6/48.23.mp4 in 0.05706501007080078 seconds.
2024-12-17 12:48:35.816593553  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera1/48.23.mp4 in 0.04459786415100098 seconds.
2024-12-17 12:48:35.817403720  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera7/48.24.mp4 in 0.029941082000732422 seconds.
2024-12-17 12:48:35.825856255  [2024-12-17 04:48:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera3/48.24.mp4 in 0.023176193237304688 seconds.
2024-12-17 12:48:35.829041358  [2024-12-17 04:48:35] peewee.sqliteq                 DEBUG   : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2024-12-17 12:48:35.829052113  [2024-12-17 04:48:35] peewee                         DEBUG   : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['1734439701.0-txc5v1', 'camera8', '/media/frigate/recordings/2024-12-17/12/camera8/48.21.mp4', 1734439701.0, 1734439712.501497, 11.501497395833333, 0, 0, 0, 6.0, 0, '1734439701.0-zsd6ho', 'camera4', '/media/frigate/recordings/2024-12-17/12/camera4/48.21.mp4', 1734439701.0, 1734439712.446549, 11.446549479166666, 0, 0, 0, 6.0, 0, '1734439702.0-w1ms30', 'camera2', '/media/frigate/recordings/2024-12-17/12/camera2/48.22.mp4', 1734439702.0, 1734439709.862826, 7.862825520833333, 0, 0, 0, 4.0, 0, '1734439703.0-g7idgu', 'camera6', '/media/frigate/recordings/2024-12-17/12/camera6/48.23.mp4', 1734439703.0, 1734439712.857292, 9.857291666666667, 0, 0, 0, 5.0, 0, '1734439703.0-z8yz7o', 'camera1', '/media/frigate/recordings/2024-12-17/12/camera1/48.23.mp4', 1734439703.0, 1734439712.895703, 9.895703125, 0, 0, 0, 5.0, 0, '1734439704.0-cu2zxg', 'camera7', '/media/frigate/recordings/2024-12-17/12/camera7/48.24.mp4', 1734439704.0, 1734439711.75026, 7.750260416666667, 0, 0, 0, 4.0, 0, '1734439704.0-8cbhpr', 'camera3', '/media/frigate/recordings/2024-12-17/12/camera3/48.24.mp4', 1734439704.0, 1734439711.716146, 7.716145833333334, 0, 0, 0, 4.0, 0])
2024-12-17 12:48:38.086377084  [2024-12-17 04:48:38] frigate.stats.emitter          DEBUG   : Starting stats collection
2024-12-17 12:48:38.086629129  [2024-12-17 04:48:38] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:38.695672899  [2024-12-17 04:48:38] frigate.stats.emitter          DEBUG   : Finished stats collection
2024-12-17 12:48:40.708926700  [2024-12-17 04:48:40] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:40.753452546  [2024-12-17 04:48:40] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera5/48.23.mp4 in 0.024916887283325195 seconds.
2024-12-17 12:48:40.755959702  [2024-12-17 04:48:40] peewee.sqliteq                 DEBUG   : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2024-12-17 12:48:40.756058509  [2024-12-17 04:48:40] peewee                         DEBUG   : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['1734439703.0-n7affc', 'camera5', '/media/frigate/recordings/2024-12-17/12/camera5/48.23.mp4', 1734439703.0, 1734439714.912565, 11.912565104166667, 0, 0, 0, 6.0, 0])
2024-12-17 12:48:45.720097537  [2024-12-17 04:48:45] asyncio                        DEBUG   : Using selector: EpollSelector
2024-12-17 12:48:45.873205587  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera2/48.31.mp4 in 0.1176600456237793 seconds.
2024-12-17 12:48:45.874157205  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera7/48.32.mp4 in 0.10296797752380371 seconds.
2024-12-17 12:48:45.874959619  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera3/48.32.mp4 in 0.08977603912353516 seconds.
2024-12-17 12:48:45.875823229  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera8/48.32.mp4 in 0.07520604133605957 seconds.
2024-12-17 12:48:45.876740629  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera6/48.33.mp4 in 0.06036210060119629 seconds.
2024-12-17 12:48:45.877597257  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera4/48.33.mp4 in 0.04533982276916504 seconds.
2024-12-17 12:48:45.878214586  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera1/48.33.mp4 in 0.029834985733032227 seconds.
2024-12-17 12:48:45.886118012  [2024-12-17 04:48:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2024-12-17/12/camera5/48.35.mp4 in 0.023043155670166016 seconds.
2024-12-17 12:48:45.888205452  [2024-12-17 04:48:45] peewee.sqliteq                 DEBUG   : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2024-12-17 12:48:45.888488574  [2024-12-17 04:48:45] peewee                         DEBUG   : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration", "motion", "objects", "dBFS", "segment_size", "regions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['1734439711.0-43ifmv', 'camera2', '/media/frigate/recordings/2024-12-17/12/camera2/48.31.mp4', 1734439711.0, 1734439720.777604, 9.777604166666666, 0, 0, 0, 5.0, 0, '1734439712.0-hgp5x5', 'camera7', '/media/frigate/recordings/2024-12-17/12/camera7/48.32.mp4', 1734439712.0, 1734439723.804297, 11.804296875, 0, 0, 0, 6.0, 0, '1734439712.0-7n8o2x', 'camera3', '/media/frigate/recordings/2024-12-17/12/camera3/48.32.mp4', 1734439712.0, 1734439723.654362, 11.654361979166666, 0, 0, 0, 6.0, 0, '1734439712.0-z3rtc4', 'camera8', '/media/frigate/recordings/2024-12-17/12/camera8/48.32.mp4', 1734439712.0, 1734439723.765951, 11.765950520833332, 0, 0, 0, 6.0, 0, '1734439713.0-t3pxgz', 'camera6', '/media/frigate/recordings/2024-12-17/12/camera6/48.33.mp4', 1734439713.0, 1734439722.727409, 9.727408854166667, 0, 0, 0, 5.0, 0, '1734439713.0-33wp53', 'camera4', '/media/frigate/recordings/2024-12-17/12/camera4/48.33.mp4', 1734439713.0, 1734439720.675716, 7.675716145833333, 0, 0, 0, 4.1, 0, '1734439713.0-eejub5', 'camera1', '/media/frigate/recordings/2024-12-17/12/camera1/48.33.mp4', 1734439713.0, 1734439722.876563, 9.8765625, 0, 0, 0, 5.0, 0, '1734439715.0-1maeho', 'camera5', '/media/frigate/recordings/2024-12-17/12/camera5/48.35.mp4', 1734439715.0, 1734439722.682161, 7.682161458333333, 0, 0, 0, 4.0, 0])

Here is the card config for Camera 2:

type: custom:frigate-card
cameras:
  - camera_entity: camera.camera2
view:
  default: live
  update_force: true
  scan:
    enabled: true
    untrigger_seconds: 10
  update_cycle_camera: true
menu: {}
live:
  lazy_load: false
performance:
  style:
    box_shadow: false
    border_radius: false

Card config for Camera 6

type: custom:frigate-card
cameras:
  - camera_entity: camera.camera6
view:
  default: live
  update_force: true
  scan:
    enabled: true
    untrigger_seconds: 10
  update_cycle_camera: true
menu: {}
live:
  lazy_load: false
performance:
  style:
    box_shadow: false
    border_radius: false

All other cameras settings are similar to the above.

[OPTIONAL] Additional information:

  • On the dashboard, I have 10 frigate-cards, 8 for 8 IP cameras, plus 2 for a Ring door bell and a stick up camera. All were working perfectly before!
  • I have not updated to v6.0.13 and v6.1.0
  • I have cleared the browser cache
  • My HA is on an OptiPlex 3050 Micro Form Factor, Intel Core i5-7500T, 32GB DDR4, 2TB WD NVMe (boot & data), 1 Coral TPU
@kevinm2 kevinm2 added the bug Something isn't working label Dec 17, 2024
@dermotduffy
Copy link
Owner

dermotduffy commented Dec 17, 2024

What's going on here?

Maybe a few issues?

This is a big one:

When I hover over it, it says "Waiting for live stream to load ..."

Your stream is not loading. Instead, the card is trying to show you something and so is showing you one still image / second, until the stream loads. I recommend you set this:

live:
  show_image_during_load: false

... and this will disable that "masking" behavior. Instead, you'll probably just see an empty video playing that's trying to load the screen. If you're lucky, it will give you some hint as to what the issue is. Also recommend you access the Javascript console (F12 in Chrome) and you may see a hint.

Issue 3: While in dashboard, trying to edit the card, I sometimes can only see and use the "SHOW CODE EDITOR", visual editor is not available. Today the visual "config" is showing up.

This suggests your browser is unable to load the card correctly. As above, your Javascript console may include a clue. But this is definitely something outside of the card's control.

Could you be experiencing network connectivity issues between your browser, and your HA instance? Are they on the same network?

@kevinm2
Copy link
Author

kevinm2 commented Dec 18, 2024

Thank you for your response. I do not know java, and trying to figure out how to relay the information back to you.

This is a big one:

When I hover over it, it says "Waiting for live stream to load ..."

Your stream is not loading. Instead, the card is trying to show you something and so is showing you one still image / second, until the stream loads. I recommend you set this:

live:
  show_image_during_load: false

... and this will disable that "masking" behavior. Instead, you'll probably just see an empty video playing that's trying to load the screen. If you're lucky, it will give you some hint as to what the issue is. Also recommend you access the Javascript console (F12 in Chrome) and you may see a hint.

Following the above suggestion, I added the following to all 10 frigate cards and refreshed the page.

live:
show_image_during_load: false

When clicking on the dashboard tab where the camera are, displayed all 10 cameras but number 2 and 3. No more "blue circle". Pressing F12 showed,

image

Refreshed the page, pressing F12 in Chrome, it went on for trying to reloaded the page, timing the refresh period, it went on for about 7 minutes, and I stop the refresh. The last 2 are from Ring devices. (redacted ones) Here is a screen capture:

image

Refreshed again after about 30 seconds i got all cameras casting, but camera 4 and 6 . The F12 showed
image
With cursor blicking here:
image

Issue 3: While in dashboard, trying to edit the card, I sometimes can only see and use the "SHOW CODE EDITOR", visual editor is not available. Today the visual "config" is showing up.

This suggests your browser is unable to load the card correctly. As above, your Javascript console may include a clue. But this is definitely something outside of the card's control.

Could you be experiencing network connectivity issues between your browser, and your HA instance? Are they on the same network?

Yes they are on the same network.

image

image

I will look into the above more and will keep you posted.

BTW, I updated Frigate Card to v 6.0.13 & v6.1.0

@dermotduffy
Copy link
Owner

Are you saying the blue circle showed up even though you had show_image_during_load: false? That shouldn't happen.

The error log refers to image.camera1, is that referred to in your configuration somehow? Those times when you see a 500 error, you'll likely have an exception or something in your Home Assistant log.

@kevinm2
Copy link
Author

kevinm2 commented Dec 19, 2024

Are you saying the blue circle showed up even though you had show_image_during_load: false? That shouldn't happen.

No, after using show_image_during_load: false, the blue circles are no longer visible. I probably made a mistake in the descriptions somewhere up there.

The error log refers to image.camera1, is that referred to in your configuration somehow? Those times when you see a 500 error, you'll likely have an exception or something in your Home Assistant log.

No, I don't think I referred to or used image.camera1 anywhere. All I do in the dashboard is add the Frigate card and then using the visual config area, I pick the camera name in "Camera" > [Add new camera...], and manually add the following to the yamil code.

live:
  show_image_during_load: false

here is camera1 yamil:

type: custom:frigate-card
cameras:
  - camera_entity: camera.camera1
live:
  show_image_during_load: false

That's it.

Here are some things new I have done, and observations made.

  • I created a new dashboard called "TEST FRIGATE CAMERA CARD". I created 8 new "Custom: Frigate cards", using the above settings. I do not have the ring cameras in this dashboard.

Observations
Clicking on "TEST FRIGATE CAMERA CARD":

  • Almost always, only 6 out of 8 cameras show up, cameras 1-6. Cameras 7 & 8 have a blank place holder
    image

Pressing F12 - view the line number and the cursor posting on the following capture:
image

  • When I refresh the page ("TEST FRIGATE CAMERA CARD") in Chrome, trying to regenerate the display of all cameras, the refresh command hangs there for a long time. After 2 to 3 minutes I give up and click on stop.
    image

Then I get this:
image

When I refresh again. Now cameras 1 and 8, do not show up and the remaining cameras are there. It seems that it can only show 6 cameras at a time.
F12 produces
image
image

  • I think I forgot to mention that I am using an ethernet cable to connect to a switch in my network. And HA OptiPlex is on the same network as my PC.
  • As I noted at the beginning, all this started when I updated all HA, Frigate, and the frigate-card! Could HA updates be causing these issues?
  • I can replicate the same on my laptop using Wi-Fi.
  • Please note: Interestingly on my iPhone, using any of the dashboard tabs, all the cameras display perfectly in a split second!

Also found the following warnings & errors in the logs. I don't know if they have anything to do with this issue.

Home Assistant Core:

This error originated from a custom integration.

Logger: custom_components.frigate.api
Source: custom_components/frigate/api.py:364
integration: Frigate (documentation, issues)
First occurred: December 18, 2024 at 1:30:32 PM (2 occurrences)
Last logged: December 18, 2024 at 1:30:43 PM

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [DNS server returned answer with no data]
Logger: haffmpeg.core
Source: components/ring/camera.py:185
First occurred: December 18, 2024 at 2:23:47 PM (7 occurrences)
Last logged: 6:32:15 AM

Timeout while waiting of FFmpeg

Supervisor:

Supervisor:
2024-12-19 10:31:23.311 WARNING (SyncWorker_2) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access) Beta
2024-12-19 10:31:23.312 WARNING (SyncWorker_2) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access)
2024-12-19 10:31:23.434 WARNING (SyncWorker_3) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access) Beta
2024-12-19 10:31:23.435 WARNING (SyncWorker_3) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access)

The error log refers to image.camera1, is that referred to in your configuration somehow? Those times when you see a 500 error, you'll likely have an exception or something in your Home Assistant log.

I have not been able to regenerate the 500 error.

@dermotduffy
Copy link
Owner

It seems that it can only show 6 cameras at a time.
Please note: Interestingly on my iPhone, using any of the dashboard tabs, all the cameras display perfectly in a split second!

I think you're running into some kind of browser max connections limitation. 6 is a common limitation browsers may enforce.

  • Does the behavior change in a different browser (e.g. Firefox)?
  • Try it with live_provider: go2rtc?

FWIW: I can have 8 cameras running at the same time in Chrome on Linux without issue.

@kevinm2
Copy link
Author

kevinm2 commented Dec 20, 2024

I think you're running into some kind of browser max connections limitation. 6 is a common limitation browsers may enforce.

I have been using the same configuration for months now. How come this is happening now?

FWIW: I can have 8 cameras running at the same time in Chrome on Linux without issue.

And why is it that Linux can display 8 cameras, and Win 11 Chrome can not?

FYI:

  • I tired MS Edge browser. Same issues as above.
  • I just installed Firefox on Win 11. It does not display any of the cameras. Please view the following clip.
Recording.2024-12-20.054026.mp4
  • Frigate UI, using Chrome Win 11, is displaying all 8 cameras!
    image

And in Frigate's Birdseye's view, I can see all the cameras live!

New error under Home Assistant Core logs

This error originated from a custom integration.

Logger: custom_components.frigate.api
Source: custom_components/frigate/api.py:364
integration: Frigate (documentation, issues)
First occurred: 6:18:07 AM (2 occurrences)
Last logged: 6:18:16 AM

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [DNS server returned answer with no data]
This error originated from a custom integration.

Logger: py.warnings
Source: custom_components/frigate/ws_api.py:162
integration: Frigate (documentation, issues)
First occurred: 6:18:03 AM (1 occurrences)
Last logged: 6:18:03 AM

/usr/local/lib/python3.13/functools.py:59: RuntimeWarning: coroutine 'EntityPlatform._async_add_entity' was never awaited getattr(wrapper, attr).update(getattr(wrapped, attr, {}))

One more observation:
Before, when everything was working perfectly, I could open Home Assistant, open 2, 3, or more Camera sessions, and view the cameras in dashboard sessions in different tabs, looking at Frigate UI, and different sessions of HA, without any issues. But now when I am looking at a camera dashboard session, and open a second Chrome browser session, I can not view the content of some of the apps. Please view the clip below for clarity (Please look at the URL).

Recording.2024-12-20.074354.mp4

Do you think Home Assistant OS is causing this?

@dermotduffy
Copy link
Owner

I just installed Firefox on Win 11. It does not display any of the cameras. Please view the following clip.

That shows the card is not initializing. That is certainly the fault of the card. The errors you show from the logs are not related. How about you give me that whole dashboard config here, and I'll try it out on Firefox on Windows and see if I can reproduce?

@kevinm2
Copy link
Author

kevinm2 commented Dec 21, 2024

The errors you show from the logs are not related. How about you give me that whole dashboard config here, and I'll try it out on Firefox on Windows and see if I can reproduce?

Absolutely.

My observations. With my latest version updates, I can ONLY see 6 out of 8 cameras at a time. And it is not consistent on which cameras are showing, or not. I guess it depends on, and changes between which 6 cameras load first. It is like first come first served! The fastest 6 loaded, gets displayed first, and the last two will not.

By the way, I don't remember mentioning this before.

In Chrome:
In the first tab called "CAMERA", I am using a "Picture glance Card" scenario with all 8 cameras in it, and have the same issues, that the firgate-card has, specifically showing 6 out of 8 cameras only, and when the page is refreshed. I get the Chrome browser spinning circle. When stop is clicked I see the following.
image

In Firefox;
In the first tab called "CAMERA", when the page is refreshed. I do NOT get the browser spinning circle. But I only see 6 out of 8 cameras.

In Edge:
In the first tab called "CAMERA", when the page is refreshed. I do get the browser spinning circle like Chrome. When stop is clicked I see the following, same as Chrome.:
image

I know I have mentioned this before, but here are my two cents. I think this might have something to do with HA's updates also!

Here is the raw configuration. Thank you

views:
  - type: sections
    max_columns: 4
    title: Camera
    path: camera
    sections:
      - type: grid
        cards:
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera1
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera2
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera3
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera4
        column_span: 4
      - type: grid
        cards:
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera5
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera6
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera7
          - camera_view: live
            type: picture-glance
            entities: []
            camera_image: camera.camera8
        column_span: 4
  - title: Cameras Frigate-card
    path: cameras
    cards:
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera1
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera2
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera3
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera4
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera5
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera6
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera7
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.camera8
        view:
          default: live
          update_force: true
          scan:
            enabled: true
            untrigger_seconds: 10
          update_cycle_camera: true
        menu: {}
        live:
          show_image_during_load: false
        performance:
          style:
            box_shadow: false
            border_radius: false
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.front_door
        view:
          default: live
          update_force: true
          update_cycle_camera: true
        live:
          preload: true
      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.garden
        view:
          default: live
          update_force: true
          update_cycle_camera: true
        live:
          preload: true
    icon: mdi:cctv
    type: masonry
  - background: {}
    cards: []
    title: Alarm Status
    icon: mdi:alarm-light
    type: sections
    max_columns: 6
    dense_section_placement: true
    sections: []
  - title: Inside Lights
    path: inside-lights
    cards: []
    type: sections
    sections: []
    max_columns: 3
    icon: mdi:lamps
    badges: []
  - title: Shades
    path: shades
    type: sections
    sections: []
    max_columns: 4
    icon: mdi:roller-shade
    cards: []
  - title: Sprinkler
    path: sprinkler
    type: sections
    sections: []
    max_columns: 3
    icon: mdi:sprinkler-variant
    cards: []
    badges: []
  - title: test door bell snap shot images
    path: sensors
    cards: []
  - type: sections
    max_columns: 4
    title: Test Frigate camera card
    path: test-frigate-camera-card
    sections:
      - type: grid
        cards:
          - type: heading
            heading: New section
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera1
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera2
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera3
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera4
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera5
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera6
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera7
            live:
              show_image_during_load: false
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.camera8
            live:
              show_image_during_load: false
        column_span: 4

NOTE: Also while trying to edit an existing "Frigate Card configuration", or add a new "Frigate Card configuration" to an existing dashboard, Once in a while you will not see the "Frigate Card configuration" UI! And, you can only see the "SHOW CODE EDITOR" link.
An existing card in the dashboard:
image

Adding a new card to the dashboard:
image

@kevinm2
Copy link
Author

kevinm2 commented Dec 28, 2024

@dermotduffy
Do you have any hope of resolving this issue?

@dermotduffy
Copy link
Owner

@dermotduffy Do you have any hope of resolving this issue?

Always hope! I just need time to get a Windows machine and test it out -- and haven't been able to do that yet.

@kevinm2
Copy link
Author

kevinm2 commented Dec 28, 2024

@dermotduffy
I understand. Thank you
Happy Holidays

@kevinm2
Copy link
Author

kevinm2 commented Jan 2, 2025

@dermotduffy Happy New Year
Here is an update for you. Even though the Picture Glance card does not have the functionalities of the Frigate Card, I tested the Glance Card in my environment with 14 live feeds, without any issues as follows:

I added my 8 IP cameras utilizing the "Generic Camera" integration to HA. Then I added these 8 IP cameras, 5 other Ring cameras, and a Ring doorbell (all with live feed), in a dashboard, using the "Picture Glance Card".

Looking forward to a solution with the Frigate Card, or Frigate. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants