Anyone installed Frigate on a separate computer?

I figured that with 8Gb of RAM, it would take a long time for me to run out of space. But today I am at 85% and it’s creeping up a little more every day.

When I look at the Frigate add-on, I see that the add-on is itself consuming 65% of my RAM.

So, before I hit 100% and everything shuts down, I am wondering about moving Frigate to its own NUC or other micro-PC. My question is, has anyone else done this? Any precautions I need to be aware of?

Frigate has an official docker container which makes it relatively easy to get an instance up and running on any docker-capable system. The processing power of the system is heavily dependent on how many cameras you have and the stream quality (2k, 4k, fps, h264, h265) you need to process and what you want to do with it.

For some sort of frame of reference, I have it running on an i3 10th gen for four 4k cameras. One camera is troublesome and has to be tweaked, so the majority of my processing goes towards ffmpeg having to transcode h265. I have a Coral which I’m using for object detection, though if I didn’t use that, the CPU supports OpenVINO which would cost me some CPU and RAM, but not that much all said (on a system with 16GB and running a bunch of other things too).

I’ve found that an under-powered CPU can cause it to chew through more RAM than it really needs. If you are trying to do some really interesting things with the feeds, having a supported GPU would be where it’s at.

I have a spare Intel NUC and two Coral USB processors where I was planning to install Frigate. My question is in the configuration and integration with Home Assistant. (The few times I used Docker were not pleasant experiences).

regarding frigate integrating with home assistant, it is the same regardless of if it was installed as an addon or on a separate device

When I added a 3rd camera to my Frigate setup I ran into the same issues as you did, @stevemann

I had an old Dell laptop with a broken screen (which I removed) that I just set up with a 2nd HAOS instance and the Frigate Add-On and I’m really happy with that because it means
a) I don’t have to deal with a separate docker setup and all the details
b) I can easily use the Remote Home-Assistant integration
c) I have a ‘playground area’ that allows me to test out some HA stuff that would otherwise interfere with my main HA instance (e.g. comparing Bermuda with ESPresence)
d) I can use the Frigate instance from my Android phone as well (switching with a single 3-finger swipe)
e) I don’t bog down my main instance when I do something that’s a little more taxing for the Frigate machine (e.g exporting clips)
f) improving (or using the more technical term: fiddling with) and restarting/rebooting my main instance doesn’t impact the Frigate one

Hope that helps :slight_smile:

That’s an idea I hadn’t thought of. I already have a Pi3 running an instance of HAOS named “sandbox” for testing purposes, but the NUC would be more capable than the Pi. Still, I also don’t want to learn Docker just for a single package.

How did you integrate Frigate on HAOS#2 so that HAOS#1 automations and cards would connect?

That’s cool. How does this work?

I use the Remote HA as well as the Frigate integration on both HAOS machines - not sure, if that’s absolutely necessary, but I did this such a long time ago, so that I have to honestly say: I don’t remember, but it was easy to set up :frowning:
All relevant entities are available on the main HA machine and blueprints work just like if they were using ‘local’ entities.

In the settings of the Android Companion App (not sure about the iOS one) you can add multiple servers and switch between them with a single 3-finger swipe to the right or the left.

GitHub - louislam/dockge: A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager makes it really easy to setup docker containers with an easy to use UI, without all the problems that portainer causes

I have spent the better part of a day trying to get Docker installed on an Intel NUC. I GIVE UP!

I’ll go with the second HAOS + Frigate add-on install next.

Moved and setting up a new HA instance (used to have two house with two dockered HA/Frigate installs). Trying something new with a new Debian 12 install with KVM HA OS VM (never used the OS before!) and local docker Frigate install for performance on the same hardware…will give it a go for a week or so. Anyone else doing this?

No. What KVM are you considering? I just installed NoMachine KVM on my computers. I have five in the basement and this makes it really easy do things on them without having to go down two flights to plug in a keyboard and monitor.

I can’t advise at all on OS’es since I am a big fan of HAOS, bare metal. But you might look at ZeroTier. ZeroTier is a software-defined networking (SDN) platform that creates encrypted, peer-to-peer virtual networks. It is a virtual Ethernet cable, so anywhere I have Internet I can connect to any of my servers as if I were home.

Continuing the original thread…
I have Frigate running in a Docker container (that only consumed 2 days) on an intel NUC computer. The dashboard works fine from http://192.168.1.156:5000/. Home Assistant is on a different computer.

I am trying to show a camera from Frigate on my Home Assistant dashboard.

This is what I’ve tried:

type: custom:advanced-camera-card
title: Driveway
cameras:
  - camera_entity: camera.driveway_3
frigate:
  camera_name: Driveway
  url: http://192.168.1.156:5000

I see the image for about a second then get an error:

Failed to receive response from Home Assistant for request . [Check troubleshooting](https://card.camera/#/troubleshooting)

request: type: frigate/events/get instance_id: frigate cameras: - driveway limit: 50 id: 48 response: code: frigate_error message: >- API error whilst retrieving events for cameras ['driveway'] for Frigate instance frigate

Any tips would be appreciated.

Little mor info required:
Did you set up the Frigate Integration on the HA machine?

1 Like

Thanks for the reply. Yes, and it appeared to install OK so I went to add the advanced-camera-card. After your post, I went back to the integration and it had failed. Which logs is the error message indicating I should look at. (There’s so many logs).

With the Frigate Integration on the HA machine, the simplest advanced-camera-card I can set up looks like this:

type: custom:advanced-camera-card
cameras:
  - camera_entity: camera.2_backyardcam

I can add this - and it seems to work - but the only thing it does is to show the live feed in the card itself (as compared to the pop-up when I click on the first version):

frigate:
  url: http://192.168.7.49:5000/
  camera_name: Backyard

Does your card work with only the minimum config or does it throw an error message then as well?

type: custom:advanced-camera-card
title: Driveway
cameras:
  - camera_entity: camera.driveway_3

I’m not sure what I did, but the error has gone away.
Thanks for the suggestions- I can proceed with some experiments.

Where did you put this?

frigate:
  url: http://192.168.7.49:5000/
  camera_name: Backyard

I just added it manually into the card code, exactly according to your example above.
I didn’t think there’s a GUI option to achieve that, but it seems to work for me.

Could you post your card’s yaml code? I can’t seem to get that structure to work.

Here you go:

type: custom:advanced-camera-card
title: Backyard
cameras:
  - camera_entity: camera.2_backyardcam
frigate:
  camera_name: Backyard
  url: http://192.168.7.49:50000

Just as I said, based 1:1 on your example - don’t know, though, where you got the frigate section from, but it kinda seems to work in my setup.

n.b.
The port on my Frigate is 50000, not 5000 and it runs as a HA Add-On, not in an ‘idependent’ Docker container, but I can reach it at the URL.

HACS:

That’s how I got mine working with Home Assistant.
That integration connects to my Frigate instance running on an different machine, and it adds the cameras from frigate directly to Home Assistant.