frigate-hass-card: First clip doesn't load
Hi,
I’m using the Frigate Lovelace card. Since the latest update the Lovelace card doesn’t show the 1st (latest) video anymore. I’m using the card in the “most recent clip” view.
I need to Android HA app: Swipe to the previous video and then swipe back to the newest video to be able to watch the newest video. Firefox browser: Navigate to another dashboard tab and go back to my “security” tab to be able to watch the newest video. or Choose to edit the HA dashboard > Then it showes the video correctly Chrome browser: Navigate to another dashboard tab and go back to my “security” tab to be able to watch the newest video. or Choose to edit the HA dashboard > Then it showes the video correctly
I did think about the browser cache and history wipe.
No error(s) logs in the HA log No error(s) in the Frigate log
Yesterday I rebuild all of the Frigate installation: Deleted HA add-on Deleted HA integration > Wich the Lovelace card is comming from Deleted all Frigate related files via the file editor Deleted all Media Media > Frigate (Integration folder) Media > My Media > frigate (Add-On folder)
Deleted the Lovelace card and builded it back up via the GUI
- type: custom:frigate-card
cameras:
- camera_entity: camera.frigate_cam1
- camera_entity: camera.frigate_cam2
- camera_entity: camera.frigate_cam3
view:
default: clip
update_force: true
scan:
show_trigger_status: true
menu:
style: outside
buttons:
media_player:
enabled: false
timeline:
enabled: false
live:
enabled: false
snapshots:
enabled: false
media_viewer:
controls:
title:
mode: none
thumbnails:
mode: none
timeline:
mode: below
window_seconds: 28800
media_gallery:
controls:
thumbnails:
show_favorite_control: false
show_timeline_control: false
show_download_control: false
filter:
mode: none
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 1
- Comments: 27 (9 by maintainers)
How strange. Thanks for the walk-thru screenshot. For the record, I can do the same, go to the media browser, choose Recordings, choose a camera, choose the latest available hour – it will play first time every time. I’m on HA 2024.1.3 (slightly older than you), I can try to upgrade later to see if perhaps something changed in HA itself?
Suggestion: In one window, navigate to “Logs” in your Frigate instance, and choose “Nginx” on the top-right. In another window, repeat your steps above (with the first request that fails, and the second that succeeds), then paste in what new log lines are created. Interesting ones likely contain something like “GET /vod/2024-02/…” [these are the requests HA is making to your backend, I’m curious if both requests are being received at all].
I can now confirm this issue and it’s probably an HA issue.
It works fine with
2024.1.5
but is broken since2024.2.0
with no other changes (same frigate and frigate-integration version)I missed that, great point! However, there must be more than just the card going on here since the issue happens in the stock media browser without the card at all.
@woempiej I wonder if you try to open it in the HA media browser (and it fails), but then you try to open it a second time, does it succeed? [i.e. are we seeing the same symptoms in the media browser as in the card].
Both the card and HA share the same video player code, so it could be that. Or I guess it could be that somehow something on the backend is returning different data on the first and subsequent requests?
That’s the integration, this repo is the card.
For the integration, all it is doing is showing the user the metadata, it is Frigate backend that provides the video. My theory is still this is a backend issue.