blakeblackshear / frigate-hass-integration

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

Camera images are not visible on camera view #675

Closed johansmitsnl closed 2 months ago

johansmitsnl commented 5 months ago

Version of the custom_component

5.2.0 5b9f4f7738c8755c3958a002f7cadfd72244ca4d

Describe the bug

Since ha 2024.4.4 the camera view does not work (now on 2024.5.1. When I go to the browser camera's I can see the images. When I press the play button it stays empty. Network tab of the browser I can see a undefined token?

afbeelding

I'm using the default picture card:

show_state: true
show_name: true
camera_view: live
aspect_ratio: 50%
entity: camera.voordeur
type: picture-entity

In the media section I do see that the thumbnails are loaded with the token, just the live view not.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

disconn3ct commented 4 months ago

"Me too."

And bugs don't go stale. Should I add a comment every day that the bug still occurs? How is this game supposed to be played?

NickM-27 commented 4 months ago

I'm not able to reproduce this issue, what is your frigate config.

bubba925 commented 3 months ago

I have something similar. Have not attempted to debug much yet. On the latest beta, running frigate on a separate lxc container with docker compose. Previously everything was fine, I can see the cameras in HA and in my HomeKit pass through but the snapshots don't update. If I click the camera it'll pull it up and update the snapshot but when I view on HomeKit they are all days old.

When on my local network they update as expected.

johansmitsnl commented 3 months ago
mqtt:
  host: mqtt.host.domain
  user: nvr
  password: XXXX
  client_id: nvr-01

birdseye:
  enabled: true
  mode: motion
  width: 1920
  height: 1080
  layout:
    max_cameras: 4

ffmpeg:
  hwaccel_args: preset-vaapi

objects:
  track:
  - bicycle
  - bus
  - car
  - cat
  - cell phone
  - dog
  - laptop
  - motorcycle
  - person

detectors:
  coral:
    type: edgetpu
    device: usb

motion:
  threshold: 40
  lightning_threshold: 0.7
  contour_area: 30

record:
  enabled: true
  retain:
    days: 7
    mode: motion
  events:
    retain:
      default: 30
      mode: active_objects
      objects:
        bicycle: 5
        bird: 1
        bus: 30
        car: 30
        cat: 1
        cell phone: 5
        dog: 1
        handbag: 5
        laptop: 5
        motorcycle: 30
        mouse: 1
        person: 30
        suitcase: 5

snapshots:
  enabled: true
  retain:
    default: 30

cameras:
  Voordeur:
    enabled: true
    detect:
      fps: 4
    ffmpeg:
      inputs:
      - path:
          rtsp://10.0.0.1:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
        roles:
        - record
        - detect
    motion:
      mask:
      - 744,1080,0,1080,0,0,0,0,1274,0
      - 1769,72,1513,887,1415,735,1581,318,1382,93,1692,145,1727,62
    zones:
      zone_entree:
        coordinates:
          1444,746,1479,699,1581,288,1380,99,1220,86,1184,354,885,838,641,845,642,1080,1586,1080
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70

  Oprit:
    enabled: true
    detect:
      fps: 4
    ffmpeg:
      inputs:
      - path:
          rtsp://10.0.0.2:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
        roles:
        - record
        - detect

    zones:
      zone_oprit:
        coordinates: 1168,1080,1779,320,1379,236,0,868,0,1080
    motion:
      mask:
      - 1206,124,1201,39,72,26,74,126
      - 1384,1022,1649,1024,1644,955,1386,955
      - 0,0,984,0,1301,282,276,788,158,892,0,574
      - 1920,1080,1920,0,1572,0,1259,1080
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70

  TuinGarage:
    enabled: true
    detect:
      fps: 4
    ffmpeg:
      inputs:
      - path:
          rtsp://10.0.0.3:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
        roles:
        - record
        - detect
    zones:
      zone_terras:
        coordinates: 0,1080,1920,1080,1920,0,1361,0,1299,78,1191,79,1191,256,898,367
    motion:
      mask:
      - 69,122,1195,116,1194,54,75,43
      - 1920,1026,1920,946,1385,938,1389,1022
      - 1363,0,782,0,900,368,1191,254
      - 407,271,897,292,976,683,428,1080,264,965,116,565
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70

  TuinTerras:
    enabled: true
    detect:
      fps: 4
    ffmpeg:
      inputs:
      - path:
          rtsp://10.0.0.4:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
        roles:
        - record
        - detect
    motion:
      mask:
      - 1189,121,1189,45,59,38,58,126
      - 1395,1016,1596,1018,1599,954,1388,952
      - 1920,0,1920,1018,542,246,665,227,656,69,524,0
      - 1061,688,1087,471,715,305,481,341,500,495,771,772
    zones:
      zone_terras:
        coordinates: 1920,1013,1920,1080,0,1080,0,0,660,60,662,241,536,240
      zone_keuken_deur:
        coordinates: 356,459,532,401,461,309,341,329
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70

  TuinZijkant:
    enabled: true
    detect:
      fps: 4
    ffmpeg:
      inputs:
      - path:
          rtsp://10.0.0.5:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
        roles:
        - record
        - detect
    zones:
      zone_terras:
        coordinates: 0,1080,1647,1080,1120,852,938,906,748,764,887,725,501,499,142,511,146,0,0,0
    motion:
      mask:
      - 74,132,1195,121,1200,40,73,40
      - 1920,952,1920,1035,1387,1026,1379,946
      - 1920,0,1920,1080,1614,1080,1142,855,914,925,718,758,891,727,487,491,134,518,127,232,161,0
    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70
NickM-27 commented 3 months ago

you don't have go2rtc setup so only snapshots will be available

johansmitsnl commented 3 months ago

@NickM-27 thanks for the reply. But how do you set this up? The information on https://docs.frigate.video points to an external site to setup but when I look at the external site https://github.com/AlexxIT/go2rtc/tree/v1.8.4#configuration I need to redefine all camera's?

The help is appreciated!

NickM-27 commented 3 months ago

https://docs.frigate.video/guides/configuring_go2rtc

johansmitsnl commented 3 months ago

@NickM-27 thanks for the quick reply. I was looking in the wrong location. It needs a little refactor then on the config side. I'll test it and let you know.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

johansmitsnl commented 2 months ago

I didn't do a refactor but the camera's are working now. Must been a fluke in my setup somewhere. I close it for now and refactor later. Thanks for the support.