-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A home assistant service to create manual event #747
Comments
+1 |
Something like this? :)
And then use this service:
|
@robinostlund I concocted something like that already. However :
|
because the /events topic has many fields that are not relevant for a manual event. Also, what is the point of a manual event being sent on /events when you as the user are triggering the manual event. You already know the manual event happened so you would just send a notification or whatever you expect at the same time that it is created in frigate |
Hi @NickM-27 , thx for chiming in. Now, about my second 'issue' : I had encountered your reply somewhere else already, and had dismissed it as 'besides the point' (sorry). Reading it now again I'm getting the impression that I'm misunderstanding the purpose and workings of this API call. FYI : all I want is to be able to (automatically) start an (unconditional !) recording in some cases, e.g. when I detect 'tampering' with my doorbell - which not only is situated outside my normal security perimeter, but could also happen when Frigate was basically inactive, e.g. during the day. And then be able to postprocess it as any other event/recording ... |
All of the API fields are explained in the current docs https://docs.frigate.video/integrations/api#post-apieventscamera_namelabelcreate This API creates an event and saves recordings assuming the recordings match your retention config which it should because you'd surely have event recording enabled. It would make absolutely no sense to send an update on /events MQTT topic because 95% of the fields there are specific to an object, so it would be a blank message and break many automations which expect these fields to be populated. And as I said you're triggering the manual event so it doesn't make sense for you to tell frigate about something and then wait for frigate to tell you about it. It would be faster and more direct to just send a notification directly in the automation that creates the event. If you have some specific behavior that doesn't seem right I'd suggest going over to the Frigate repo and making a support discussion there |
About the parameters for the API call I can only repeat that they are merely MENTIONED in the docs for the beta, but failing to see any EXPLANATION for them I still have no idea what some of them could or should be used for. I might even add that there is even a discrepancy between the current stable and beta versions - that or things have changed ? And the meaning or use of e.g. 'source_type' ? Anybody's guess ... Thanks beforehand for enlightening me in all of this |
Hi, did you manage to get this working? Thanks |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
It would be great to have a home assistant service call to create a manual event like the API
POST /api/events/<camera_name>//create does
For example tag in frigate when my home alarm activates or a door opens
Describe the solution you'd like
A service call to create a manual event
Describe alternatives you've considered
Using a script to make the call
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: