Just ran into the same issue… looks like the supervisor auto-updated
It must be auto updating as I didnt choose to update. I’ve even got Auto Updates to off.
Yeah, it looks like Supervisor will auto-update and there’s no way to disable it. Home Assistant Core auto-updates can of course still be disabled, but that doesn’t directly affect the Frigate add-on in this case.
I guess we’re out of luck until the HA devs revert the change or allow entries in the config more than 2 levels deep. For Blake to entirely rework Frigate’s config at this point would be ridiculous.
This issue with HA is just for the add-on? It has no bearing on the integration does it?
I don’t run the HA Frigate add-on so I’m wondering if the integration is not affected.
This is a common problem with notifications with HA. They can be delayed. You can try adding ttl
and priority
to the automation like mentioned here: https://companion.home-assistant.io/docs/notifications/critical-notifications/
However, I’ve found they are still delayed at times. I decided to use Pushover instead of the built-in notification service and those seem to come through faster.
Yeah, the issue (https://github.com/blakeblackshear/frigate/issues/703) only affects those using Home Assistant OS/Supervised and have installed the Frigate add-on. The HA integration is not affected.
When you are watching the mjpeg feed, is there a significant delay? You can test by turning on the timestamp and comparing to the time on your camera. The timestamp that frigate adds is the time that it reads the image from ffmpeg before any processing. That should give you a sense of the actual delay assuming your times are in sync across devices.
If not, you may need to adjust your masking. I think this is probably a perfect example of how too much masking prevents frigate from tracking objects until its too late. Version 0.8.2 will allow you to add required zones for mqtt/snapshots/clips to allow frigate to detect and track objects before they enter zones so that it can notify you the instant they cross into the zone without causing clips/snapshots/etc.
I just pushed a new version 1.7 of the addon. The configuration file is now located at the root of the homeassistant config directory and must be named frigate.yml
.
Wow, can’t believe a fix has been pushed already. I just ran into this issue. Thanks so much for all the work you put into developing and maintaining frigate. I just got it setup last week and have been loving it! Also, excited for required zones as that will fix my over masking issue.
Edit: After updating to 1.7 and copying and pasting my current config to config/frigate.yml, every is back up and running
after the update i created a frigate.yml file with my config in the homeassistant config directory.
but i have still this error message
- Starting nginx nginx
…done.
Error parsing config: [Errno 2] No such file or directory: ‘/config/frigate.yml’
stop the add on first. then create the file. it works for me
Arrghh, the latest version just installed… AGAIN
and now Frigate Error Log shows
* Starting nginx nginx
...done.
frigate.app INFO : Creating directory: /tmp/cache
frigate.app WARNING : Camera backgarden has record assigned to an input, but record is not enabled.
frigate.app WARNING : Camera driveway has record assigned to an input, but record is not enabled.
frigate.app WARNING : Camera frontdoor has record assigned to an input, but record is not enabled.
frigate.app WARNING : Camera frenchdoors has record assigned to an input, but record is not enabled.
Starting migrations
peewee_migrate INFO : Starting migrations
There is nothing to migrate
peewee_migrate INFO : There is nothing to migrate
frigate.app INFO : Camera processor started for backgarden: 38
frigate.app INFO : Camera processor started for driveway: 40
frigate.app INFO : Camera processor started for frontdoor: 41
detector.coral INFO : Starting detection process: 36
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.app INFO : Camera processor started for frenchdoors: 42
frigate.app INFO : Capture process started for backgarden: 44
frigate.app INFO : Capture process started for driveway: 46
frigate.app INFO : Capture process started for frontdoor: 48
frigate.app INFO : Capture process started for frenchdoors: 50
frigate.mqtt INFO : MQTT connected
frigate.mqtt INFO : Turning off detection for backgarden via mqtt
frigate.mqtt INFO : Turning off detection for frenchdoors via mqtt
watchdog.driveway INFO : No frames received from driveway in 20 seconds. Exiting ffmpeg...
watchdog.driveway INFO : Waiting for ffmpeg to exit gracefully...
watchdog.backgarden INFO : No frames received from backgarden in 20 seconds. Exiting ffmpeg...
watchdog.backgarden INFO : Waiting for ffmpeg to exit gracefully...
watchdog.frontdoor INFO : No frames received from frontdoor in 20 seconds. Exiting ffmpeg...
watchdog.frontdoor INFO : Waiting for ffmpeg to exit gracefully...
watchdog.frenchdoors INFO : No frames received from frenchdoors in 20 seconds. Exiting ffmpeg...
watchdog.frenchdoors INFO : Waiting for ffmpeg to exit gracefully...
Process detector:coral:
frigate.edgetpu INFO : No EdgeTPU detected.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
delegate = Delegate(library, options)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0
frigate.watchdog INFO : Detection appears to have stopped. Restarting frigate
frigate.app INFO : Stopping...
frigate.events INFO : Exiting event processor...
frigate.object_processing INFO : Exiting object processor...
frigate.events INFO : Exiting event cleanup...
frigate.record INFO : Exiting recording maintenance...
frigate.watchdog INFO : Exiting watchdog...
watchdog.driveway INFO : FFmpeg didnt exit. Force killing...
watchdog.backgarden INFO : FFmpeg didnt exit. Force killing...
watchdog.frontdoor INFO : FFmpeg didnt exit. Force killing...
watchdog.frenchdoors INFO : FFmpeg didnt exit. Force killing...
frigate.stats INFO : Exiting watchdog...
root INFO : Waiting for detection process to exit gracefully...
Exception ignored in: <Finalize object, dead>
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/util.py", line 224, in __call__
File "/usr/lib/python3.8/multiprocessing/util.py", line 464, in close_fds
AttributeError: 'NoneType' object has no attribute 'close'
I fixed it by removing the addon and reinstall
Unfortunately also getting this error now . Tried uninstalling, reinstalling, restarting, all the things to no avail.
* Starting nginx nginx
...done.
frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
peewee_migrate INFO : Starting migrations
There is nothing to migrate
peewee_migrate INFO : There is nothing to migrate
frigate.mqtt INFO : MQTT connected
frigate.app INFO : Camera processor started for front: 39
frigate.app INFO : Capture process started for front: 40
detector.coral INFO : Starting detection process: 36
Process detector:coral:
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.edgetpu INFO : No EdgeTPU detected.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
delegate = Delegate(library, options)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0
frigate.watchdog INFO : Detection appears to have stopped. Restarting frigate
frigate.app INFO : Stopping...
frigate.events INFO : Exiting event processor...
frigate.record INFO : Exiting recording maintenance...
frigate.object_processing INFO : Exiting object processor...
frigate.events INFO : Exiting event cleanup...
frigate.stats INFO : Exiting watchdog...
frigate.watchdog INFO : Exiting watchdog...
root INFO : Waiting for detection process to exit gracefully...
watchdog.front INFO : Terminating the existing ffmpeg process...
To be clear
I uninstalled
Rebooted host (not restart ha)
Reinstalled
Will give that a shot, thanks!
I have the same problem, tried your solution, didn’t work.
If I change to CPU it does work, though.
If anyone has a solution, please share!
You may want to try unplugging your coral and plugging back in to make sure it resets.
Just to be clear here…the filename ends with “yml”?
Is this simply a typo or on purpose? Seeing that everything else in HA is yaml I want to make sure because I would think there would be consistency.
Thanks
its yml! …