Hello and sorry for the noob questions. I have looked for answers but finally decided to ask for help.
A little background. I worked in Home Automation starting in the 1980ās and retired a few years back. Iāve designed products for multiple companies and have more than a casual knowledge of home systems and software. That said, my knowledge is a bit stale and Iām entirely new to Home Assistant and frigate. My linux knowledge is basic but I can usually make things work.
I have HA currently deployed in my loft running Supervised HA on a Pi 4b with 4G ram & Debian 10. Debian was used because I wanted to eliminate the SD card and go with a more robust SSD.
My loft is being used as a testbed for a very large system for a home Iām building in Costa Rica. The loft has 38 Hue Lights, 8 TPLink Light dimmers, Lutron Pro bridge to use Lutron Pico remotes, a tempest weather station, 1-wire environmental sensors, ecobee thermostats, and a variety of Audio/Video devices. The home in CR will be 3-4 times as many devices, but I intend to test any integrations here before shipping stuff to CR.
This brings me to frigate. I really want this to work but am running into walls. I should also note that I know the Pi4 will be under powered for my camera needs, but I was hoping to try out frigate before upgrading hardware. Iām testing with a reolink RLC-520 camera. I have a coral on order.
First I tried using the HACS custom component. HACS install works fine, but it fails to configure after I add the integration. No logs are visible since it never starts.
I also tried the add-on and had some success. Frigate installs OK but crashes after startup
Iām asking for assistance but also hopeful that I can find someone with expertise to assist me for a fee. I know this is generally frowned upon, but Iām willing to learn. When Iām over my head Iād like to have an experienced mentor to help guide me.
Lastly, my home in CR is on a 17 acre parcel of land. I intend to install somewhere between 12 and 15 cameras which are integral to my security system. This will obviously take more horsepower than a Pi can supply. I need guidance on which platforms I should consider and also how I might segment the system so that simple automation runs on a Pi and the processor intensive stuff like cameras runs on a more powerful platform.
Hereās the log
* Starting nginx nginx
...done.
frigate.app INFO : Creating directory: /tmp/cache
frigate.app INFO : Creating tmpfs of size 256m
mount: /tmp/cache: cannot mount tmpfs read-only.
frigate.app ERROR : Failed to create tmpfs, error code: 8192
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
detector.coral INFO : Starting detection process: 40
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.app INFO : Camera processor started for back: 43
frigate.app INFO : Capture process started for back: 44
frigate.edgetpu INFO : No EdgeTPU detected.
Process detector:coral:
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. Exiting 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.yml
cameras:
back:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554//h264Preview_01_main
roles:
- detect
- rtmp
width: 640
height: 480
fps: 4
mqtt:
# Required: host name
host: core-mosquitto
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
#user: mqtt_user
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
#password: password
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
clips:
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event.
max_seconds: 300
# Optional: size of tmpfs mount to create for cache files (default: not set)
# mount -t tmpfs -o size={tmpfs_cache_size} tmpfs /tmp/cache
# NOTICE: Addon users must have Protection mode disabled for the addon when using this setting.
# Also, if you have mounted a tmpfs volume through docker, this value should not be set in your config.
tmpfs_cache_size: 256m
# Optional: Retention settings for clips (default: shown below)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15