Please post your automation config (copy the yaml mode content when editing it)
where is this section about that?
Because I canāt see nothing where we can use api command to generate clip, and second step is to move and rename it , into a folder.
I see you have already posted in the GitHub post about custom length clips from frigate.
That is the first step.
You would need to write a script to achieve all tasks. As Nick said in that other thread, it is not a frigate question and it is also not a blueprint question.
Frigate gives an API and the blueprint gives a trigger. The āhowā is outside of both of our areas. If I knew how I would share, but sadly I have not ever tried.
Example of one of the automations that I just triggered as a test.
"alias: Frigate - Notify Person Detection - Storage
description: āā
use_blueprint:
path: SgtBatten/Beta.yaml
input:
camera: camera.storage
message: A Person was detected on the {{camera_name}} camera.
critical: āfalseā
notify_device: b3603273bc3e8a3e3544d3310ed25aa2
android_auto: true
"
What are you clicking/tapping when you see the error message about the url
Is there a way to have the automation wait for a trigger?
My use case is on a video doorbell I want to show a clip when doorbell is pressed. The doorbell pressed entity is exposed to HA.
So it needs to see motion in ares of doorbell which is a zone in frigate. But only send notification once doorbell is pressed.
In the beta there is a custom filter where you can build a template that would be true if that button was pressed in the last minute or something.
Alternatively build a template entity outside of the automation which does the same thing, then use it in the state filter .
Yes I have the beta template running, but because the doorbell isnāt ON when it first detects a person the automation halts.
The doorbell sensor then stays on for about 20 seconds, so with the cool down period another automation wont trigger straight away when the doorbell is ON.
I could use the doorbell sensor as a trigger and snapshot the camera but Iād like to use the blueprint youāve created for all the extra features such as gif notifications
It shouldnāt halt, it should continue looping but just not send notifications while conditions are not met.
Do you have update image set to true?
Ah cool, well I will have to re test.
Iāve got update image on, thumbnail as attachment (is this correct for gif?) And Iāve got alert once on - but this is correct yes?
Thatās all fine but you do need video set
Yes, I have clip set in video section too. Thanks.
Not everytime a video is displayed for each detection on other cameras, is there a reason behind that?
I tested this again this morning and can confirm that it works with only a single button press, but there is around a 20second delay in the notification being sent compared to the reolink app.
In other android notifications i have had to set priority high to send faster using this:
ttl: 0
priority: high
Those are already hard coded into the blueprint.
If it is taking 20 seconds Iād say the logic involved to trigger the notification is not true until that time. As it runs every few seconds at most, so Iāll need to look at the logic when I have a second to ensure a change in the state trigger causes a true result. I suspect it requires a combo of things hence the delay.
Youād be able to follow it using the debug output if enabled too.
You can see here the timestamp difference from notification to phone.
I have now enabled debug too so will test again later.
As I said I need to check the conditions as I suspect a change in the state filter alone is not enough
Iāve never seen a delay in receiving the notifications except when I donāt have reception at the time.
Iāve seen this happen when my phone is on Power Save mode - Which delays notifications and caused timestamps to also be out of whackā¦
Thanks id appreciate that, I have to say though great work on this. Iāve not used home assistants notifications for years because I have everything in node red. This works very well on the majority of my cameras and provides great functionality that is complex such as the gif notifications. My NR ones are just using cam snapshots.
Thanks.
FYI the gods are a function of the companion app. We are sending the whole video and the app displays frames from the video. Itās not really a gif, just easy to explain as one.
Ah okay that makes sense. Itās much better to see a few frames in the preview when making a decision on which action to chose.