-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Notification is slow after update to stable #4060
Comments
There's a new notification blueprint for 0.10+ so recommend switching to that first |
i removed the automations and downloaded the new blueprint and setup the automation for notification, will check for a day when there is activity and update you on that. Also when i went to HACS from HASS it showed me that i am running Frigate v2.3 and v3.0 is available. I believe its the Frigate integration for home assistant. would it be safe to update? becaz of some warning message that shows about some changes: https://github.com/blakeblackshear/frigate-hass-integration/releases |
If you are running frigate 0.11 then you should be on 3.0 for the integration |
Great, going ahead with the update. |
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. |
Actually I updated integration i have been testing for some days and indeed the notifications are delayed around 30-50 seconds, Where can i start to troubleshoot? |
Is it the notifications or the automation that is delayed? If it's the notification then it's going to be because firebase is being slow to deliver the notification. If you enable the local websocket for notifications it'll use more battery but should be immediate. |
I am not sure if i understand, I am a software developer and technically very good, but have no expertise on tools that i don't know.
It was all working great until i updated the latest frigate. |
Check home assistant automations, does the automation show a trigger time when the event happens or after
It's not frigate that uses firebase it is home assistant which uses firebase to notify mobile devices
Talking about home assistant local websocket for notifications
What devices are you notifying then? |
I still did not get time to investigate between frigate video detection and hass notification to find which cause delay. But I noticed something today, while i was working from home today, sitting facing the window, i saw the garbage truck pass by, i opened the frigate ui and did live video feed, i notice the live feed is actually a full minute delay. What could be the problem? |
If it's a full minute behind then there's either something going on with the camera or if you're proxying the connection something with that |
I am going to check on another camera and see what happens, will be back shortly... |
The other camera (front door) seem work fine, no delays, when i walked i got the alert also with 5 sec. |
So, i did power cycle, then looked at frigate ui live feed, the camera time and my computers time where in sync. so i thought problem solved. then i walked in front of camera to trigger the notification, did not get any, came back home (approx min later), and i see myself walking in front of the camera on live feed, and i notice the delay of min even on the live feed. So its confirmed thats the delay its causing my notification also delayed. The camera is Wyze cam, its been running for a long time before even i updated the frigate to lastest. I opened up wyze app and there the time is in sync with my computer, but on frigate ui live feed its about 1+ min delayed. |
I've had a lot of problems with wyze cams personally and really don't recommend them. Comparing the wyze app to the rtsp feed is not a valid comparsion because the app does not use rtsp and wyze cameras do not support rtsp except for a number of different third party solutions. |
Yes, i understand, and i have heard before about wyze not being reliable, it was working fine for me till this issue and i will at some point move to better camera soon. I also agree wzye app vs rtsp comparision is not true, I tried open rtsp from vlc and vlc shows fine. |
Pasting your frigate config may help give more info |
Here is my full config, the camera in question is "driveway"
|
You can try using udp instead for that camera and see https://docs.frigate.video/configuration/camera_specific#udp-only-cameras |
so i just copy this line?
|
Yes, apply it to the camera that is facing this issue |
I tried, i get just green color in the camera feed. and I also see this error in the logs: ERROR : driveway: Unable to read frames from ffmpeg process. |
Looks like the camera doesn't support udp then |
Well, i guess its time to change the camera then, any recommendation? thats not super expensive |
Depends what you're using it for. I replaced my indoor wyze cams with eufy C24 and have been happy with it. |
Another thing i noticed just now, my eufy 360 camera on the backyard is actually do the delay of 2+ min. |
does eufy c24 does 24/7 rtsp? |
Maybe your computer that runs frigate is having some issue processing the network data or something. And yes the eufy c24 supports 24/7 rtsp out of the box |
its actually running on qnap 451, i never had issues before as i mentioned before. It all started with me updating it to latest frigate. I will look into to see if any network related issues exist. |
I ordered the eufy c24 yesterday and its delivered today, going to setup this camera and replace the wyze. any specific setting i should set? |
You'll need to enable the RTSP feed in settings. |
Yes I will have to do that, anything specific on frigate config side, can just replace the url from my driveway camera and that be it? |
The resolution of the stream is 1920x1080 so you'll want to update the detect size to match that. |
Thanks, i set it up and started watching the live fee on frigate UI, the time was in sync , then when i triggered in front of the camera it turned into the same 1+ min delay and now the live feed shows with delay. I need to figure out how i am going to troubleshot. I have only 3 cameras, one backyard which is eufy floodlight pro 360 which does not do 24/7 rtsp, so i can judge that, 2nd one near the front door which is wired, 3rd one this new eufy c24. So i can guess that wifi camera have delays. wonder if i can restart my ubiquity gateway and access point to see if it make any difference, other than that i am not sure how would I start my troubleshoot. |
Not totally sure, I use both of mine with 1 second delay on the detect stream |
in the process of reworking the network and hopefully it will smooth out, while i was working on it, I notice this Does frigate take that much cpu (its always near 45+%) even though i have google coral plugged in and the log shows "edge tpu found" and my config "cpu" is not set. Its running on QNAP Nas with Intel Celeron @1.50GHz /16GB Ram |
Good point, thanks for the doc, and thanks for the super quick response as always. |
Finally i got some time today to replace the wyze cam to eufy C24 hoping my problem will be solved. I also get this error repeating every few min:
|
That's odd, what is the wifi signal for the camera like? (-dBm) I've had nothing but stable connection from it although I have a solid network |
also what is your current config with it? |
its the same i posted above, all i changed is the camera rtsp url |
Do you think its a wifi issue? But i notice something called "AP/Client Signal Balance = Poor or Good" |
It is one potential cause. What CPU do you have? and if you disable hardware acceleration for that camera cameras:
driveway:
ffmpeg:
hwaccel_args: [] does it speed up at all? |
I updated the config as you mentioned, its few mins now and i see no errors yet, and the stream time is in sync with correct time, no delays yet. I will watch for sometime. And about my CPU:
|
You might have better luck using the i965 driver https://docs.frigate.video/configuration/hardware_acceleration#intel-based-cpus-10th-generation-via-quicksync |
okay will give it a try. thanks. |
I added this in the docker-compose yaml, its running okay and i am monitoring. But i have to say, Eufy C24 picture/video quality is not better than the Wyze Outdoor V2 i replaced, specially the night mode in color is so clear on wyze with Nighvision off. on Eufy its hard to see a persons/cars clearly though. We will see how will it works for sometime. |
I used mine inside my office, with the wyze official rtsp firmware and it was awful and unstable. Using ir at night it seems good on the eufy, no idea what outside use would be like |
Here is the comparison at night, 1st pic is wyze, 2nd is eufy **pic removed after couple of days ** |
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. |
Describe the problem you are having
I was running frigate 0.9.4-amd64 for long time, 2 days ago i decide to update and changed the image to frigate:stable which updated to (0.11.1-2eada21)
since then the notification is very slow, for example when someone arrives at driveway i get notification around 40 to 90 seconds later, before it use to be instant and i can look thru the windows as when it happens.
the notification automation is set thru blueprint on home assistant. I created another notificaiton automation for another camera and its also the same, takes time to arrive.
Where can i start my troubleshooting?
Version
(0.11.1-2eada21)
Frigate config file
not sure if you needed for my issue
Relevant log output
No errors in the frigate log that i notice
FFprobe output from your camera
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
different models
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: