dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
470 stars 52 forks source link

Home assistant web live view OK, companion app only latest.jpg per second #1411

Closed ronbruins closed 1 month ago

ronbruins commented 1 month ago

Checklist:

Release with the issue:

Last working release (if known):

Browser and Operating System:

Description of problem: configured go2rtc for live view in Home Assistant and in Frigate MSE works fine. Adding the frigate-card in HA and using the live view, work fine and it shows the live MSE stream.

However in the companion app (iOS) it still only shows the 1fps latest.jpg image. It looks like it tries, as the url for use show up (like via webbrowser, but then it falls back on fastest.jpg images

Frigate card diagnostic information

{
  "ha_version": "2024.3.0",
  "card_version": "5.2.0",
  "browser": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 17.4.1) Mobile/HomeAssistant, like Safari",
  "date": "2024-03-22T13:30:07.499Z",
  "frigate_version": {
    "b9646c51b4963f09abfcc04a80bd3e50": "5.0.1/0.13.2-6476f8a"
  },
  "lang": "en",
  "timezone": "Asia/Riyadh",
  "git": {
    "build_version": "5.2.0-HEAD+g69249b6",
    "build_date": "Fri, 23 Jun 2023 15:26:26 GMT",
    "commit_date": "Thu, 22 Jun 2023 09:21:26 -0600"
  },
  "config": {
    "type": "custom:frigate-card",
    "cameras": [
      {
        "camera_entity": "camera.achter",
        "go2rtc": {
          "modes": [
            "mse"
          ],
          "stream": "achter"
        },
        "live_provider": "go2rtc"
      }
    ],
    "menu": {
      "alignment": "right"
    },
    "live": {
      "preload": true,
      "lazy_load": false
    },
    "media_viewer": {
      "auto_play": "all"
    }
  }
}

Javascript errors shown in the web inspector (if applicable):

Additional information:

#####GOOD - FROM HA WEBBROWSER:#######
frigate  | 2024-03-22 07:16:31.189615444  192.168.1.171 - - [22/Mar/2024:07:16:31 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 268804 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:31.195558152  192.168.1.171 - - [22/Mar/2024:07:16:31 +0100] "GET /api/achter/latest.jpg HTTP/1.1" 200 146398 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:32.235494595  192.168.1.171 - - [22/Mar/2024:07:16:32 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 270943 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:32.236138053  192.168.1.171 - - [22/Mar/2024:07:16:32 +0100] "GET /api/voordeur/latest.jpg HTTP/1.1" 200 224370 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:32.239473714  192.168.1.171 - - [22/Mar/2024:07:16:32 +0100] "GET /api/achter/latest.jpg HTTP/1.1" 200 146737 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:33.181472142  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 268985 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:33.190283180  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /api/voordeur/latest.jpg HTTP/1.1" 200 224456 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:33.197086280  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /api/achter/latest.jpg HTTP/1.1" 200 146537 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:16:33.612522399  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /live/mse/api/ws?src=voordeur&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3YTI2N2FiYjkzNzE0N2QwODNkMGVjOTQyM2YyZWY0MCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJ2b29yZGV1ciJdXSwiaWF0IjoxNzExMDg3NzcyLCJleHAiOjE3MTExNzQxNzJ9.DWtY_KwWIlTTne6aKvGvwEpxS_67CJxd0s3PRa--AM0 HTTP/1.1" 101 1869168 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15" "178.80.149.253, 192.168.1.35"
frigate  | 2024-03-22 07:16:33.623898378  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /live/mse/api/ws?src=balkon&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3YTI2N2FiYjkzNzE0N2QwODNkMGVjOTQyM2YyZWY0MCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJiYWxrb24iXV0sImlhdCI6MTcxMTA4Nzc3MiwiZXhwIjoxNzExMTc0MTcyfQ.A7Upah_9AcKFIOx5SzuIxC7EMD8-j6tN8R8YKGsP_tk HTTP/1.1" 101 3194931 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15" "178.80.149.253, 192.168.1.35"
frigate  | 2024-03-22 07:16:33.633706556  192.168.1.171 - - [22/Mar/2024:07:16:33 +0100] "GET /live/mse/api/ws?src=achter&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3YTI2N2FiYjkzNzE0N2QwODNkMGVjOTQyM2YyZWY0MCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJhY2h0ZXIiXV0sImlhdCI6MTcxMTA4Nzc3MiwiZXhwIjoxNzExMTc0MTcyfQ.N_lVhq1DXA37n4fE99XrqmNId6JiNtO5iKJX8VD-tUw HTTP/1.1" 101 4207259 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15" "178.80.149.253, 192.168.1.35"

#####BAD - FROM HA COMAPNION:#######
frigate  | 2024-03-22 07:18:10.595829869  192.168.1.171 - - [22/Mar/2024:07:18:10 +0100] "GET /api/voordeur/latest.jpg HTTP/1.1" 200 222135 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:10.596782659  192.168.1.171 - - [22/Mar/2024:07:18:10 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 269590 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:11.144826813  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /live/mse/api/ws?src=balkon&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwNzQ3ZDgwMjA2ZDM0MTdkOWQ2NDFmMGIxZWU2NTFjOCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJiYWxrb24iXV0sImlhdCI6MTcxMTA4ODI4NSwiZXhwIjoxNzExMTc0Njg1fQ.WI64wj8tO1-fuIrLjEEG2Cgh5V4whW74lmMwbJFd5Kk HTTP/1.1" 101 1241973 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 17.4.0) Mobile/HomeAssistant, like Safari" "178.80.149.253, 192.168.1.35"
frigate  | 2024-03-22 07:18:11.144959945  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /live/mse/api/ws?src=voordeur&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwNzQ3ZDgwMjA2ZDM0MTdkOWQ2NDFmMGIxZWU2NTFjOCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJ2b29yZGV1ciJdXSwiaWF0IjoxNzExMDg4Mjg1LCJleHAiOjE3MTExNzQ2ODV9.1VzrjfPX14pAabBsrUxuGMqGa7169EsQZrfMoCtVvDQ HTTP/1.1" 101 1570514 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 17.4.0) Mobile/HomeAssistant, like Safari" "178.80.149.253, 192.168.1.35"
frigate  | 2024-03-22 07:18:11.148205523  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /live/mse/api/ws?src=achter&authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwNzQ3ZDgwMjA2ZDM0MTdkOWQ2NDFmMGIxZWU2NTFjOCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS9tc2UvYXBpL3dzIiwicGFyYW1zIjpbWyJzcmMiLCJhY2h0ZXIiXV0sImlhdCI6MTcxMTA4ODI4NSwiZXhwIjoxNzExMTc0Njg1fQ.SHfpWTb6B0AWEFDgrxKof6ShBJTgVb2ReaAzl0s32so HTTP/1.1" 101 1140142 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 17.4.0) Mobile/HomeAssistant, like Safari" "178.80.149.253, 192.168.1.35"
frigate  | 2024-03-22 07:18:11.595447215  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 271925 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:11.595812404  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /api/voordeur/latest.jpg HTTP/1.1" 200 222105 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:11.596290879  192.168.1.171 - - [22/Mar/2024:07:18:11 +0100] "GET /api/achter/latest.jpg HTTP/1.1" 200 146162 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:12.585522573  192.168.1.171 - - [22/Mar/2024:07:18:12 +0100] "GET /api/voordeur/latest.jpg HTTP/1.1" 200 222015 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:12.587673312  192.168.1.171 - - [22/Mar/2024:07:18:12 +0100] "GET /api/balkon/latest.jpg HTTP/1.1" 200 269928 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
frigate  | 2024-03-22 07:18:12.591524584  192.168.1.171 - - [22/Mar/2024:07:18:12 +0100] "GET /api/achter/latest.jpg HTTP/1.1" 200 145894 "-" "HomeAssistant/2024.3.0 aiohttp/3.9.3 Python/3.12" "-"
ronbruins commented 1 month ago

Ok, spent a good day of yesterday and today to figure this out. At least I know how to setup go2rtc, webrtc and the card. However it turned out to be a very silly reason.... The new (experimental) section dashboard from HA... When I created a normal masonry card it does work as expected and shows the proper MSE live view