Migrating to Frigate - How to toggle recording in automation

Hi all,

I’m in the process of migrating from MotionEye to Frigate.

I have two camera’s up and running, in the UI I can toggle recording on/off.

But I’m totally lost on how I can do this in an automation! In the documentation I see there should be a switch created, but I can’t find anything.

Can someone point me in the right direction?

(So what I want is to be able to turn recording on/off via automation)

Kind regards,

Have you added the additional addon:

This should expose the sensors and switches you require.

1 Like

I think you’re referring to the integration https://github.com/blakeblackshear/frigate-hass-integration

In your actions in automations, choose device, then the camera. You should see options for turning off recordings among other things.

I’ve installed Frigate via add-on repositories: https://github.com/blakeblackshear/frigate-hass-addons

@Rich37804 I can’t select the camera. Can’t find any camera’s.

But I’ve got the cameras working…

EDIT: I’ve removed the camera’s in de configuration.yaml and only used them in frigate.yml. Did I get it wrong there?

You’ve installed frigate addon but the home assistant // frigate integration is something different and must also be installed https://github.com/blakeblackshear/frigate-hass-integration

addon =/= integration

1 Like

Sorry, you are correct of course!

I’ve installed the HACS integration now also, but still no sigar :frowning:

I did it in the order Add-on → Integration

Any ideas?

And is it correct that I’ve removed the camera’s from configuration.yaml (so the link to the camera’s are only in the frigate.yml)

EDIT: Major fail… I installed HACS, from HACS installed Frigate integration. BUT FAILED to install in via Settings → Devices & Services → Add Integration.

Now it’s working as it should be. Thank you all for your time and patience!

2 Likes

Keep in mind that if you add any zones you need to reload the frigate integration. If not, they wont show as entities.

Ok, thanx for the tip!

Does anyone know how to force the cameras to force record the cameras for x amount of time, is there a switch I can toggle and then use in automation? Right now it records on events but what if I want to be able to force none stop recording at a specific time?

In an automation, for the action, choose device, then the camera, then you can stop recordings. You can set that on a schedule if you like.

Right I know I can set up an automation to stop recordings but it just stops recording on motion for me. I am talking about enabling or disabling 24/7 recording. Is there an MQTT command I can send or any other way to set that up? So motion recording at all times, and sometimes I want it to do none stop recording for example for 10 minutes.

I think it’s not possible at this moment.

Thanks for pointing it out. Hope they implement that, just added my own bump to the thread for this feature.