New user to HA and Frigate. A bit of a threshold
Running both as VE:s in Proxmox and generally working very well.
Something I am unable to build:
We want to be able to start and stop recording from the HA GUI of each camera manually.
Start recording /create event is working fine via the “Frigate create event” action.
However to stop recording we need to create an “Frigate:end an event” action in HA GUI
and it is asking for an “event ID” to stop recording:
I don’t use Frigate, but a look through their docs suggests that the creating the event will return the event_id in the response. If you have no way of capturing that, try calling get events - that should give you a list of open events with their IDs
Thanks for reply, very kind of you.
I have done the /api/events and searched for the names of the automations and the variables in there but not finding anything and the word “event” is not in there either. Not sure what I am looking for…
edit: found the responses in the api/events payloads as described below.
Thanksfor this suggestion @ShadowFist it seems the correct path so I need to find a way to do precisely this.
So I experimented a little and realised by naming the label of the “create event/start rec” I can find the ID using the /api/events method, but it appears to change and give each new created event a new ID, so I guess the “end event/stop rec” command needs to contain each new ID as a variable that can be known by the response command directly. This is a little tricky for my skillset on these things.
Anybody out there that has done this and can add an example?
In my examples below the event ID is just the latest one as placeholders for the examples.
Thanks for your patience @petro ! You have been most helpful and I very much appreciate it.
Your suggestions starts the event but does not end it so far and I still have to restart Frigate to end the event/recording. Will start debugging tomorrow. Thanks again so far!
Thanks @steve. I have something like that working too for all cameras for automations and manual switching but have some other manual needs also for various reasons.
I see no errors in the log when testing these by @petro but still can’t stop the recording/create event.
Any chance anyone else here can test them and report here if you can get it working or if I have errors in there that don’t trigger errors?
Obviously using the GUI initially to get your own device_id. Many thanks!