Automation alarm+frigate

hello,
i am not clear about automation jobs… are they somehow automatically re-executed within some time interval? I have automation as

alias: Frigate Notify of Motion
description: ''
trigger:
  - type: motion
    platform: device
    device_id: 0df379864a641e0525096a95fa0798ec
    entity_id: binary_sensor.entrance_cam_person_motion
    domain: binary_sensor
condition:
  - condition: state
    entity_id: alarm_control_panel.58291_7295_zone_1_alarm
    state: armed_away
action:
  - service: notify.mobile_app_sm_g973f
    data:
      message: Motion Detected from Entrance
      title: Entrance Motion
mode: single

I want to run following scenario only while alarm is armed ie armed_away; send notification to mobile once there is motion ie trigger > binary_sensor.entrance_cam_person_motion …

Inside the logs i can see following >

Executed: October 6, 2021, 1:22:26 AM
Result:

result: false

## entity_id/0

Executed: October 6, 2021, 1:22:26 AM
Result:

result: false state: disarmed wanted_state: armed_away

Ie the automation failed, but question would be who will re-execute it again/how often will automation checks Condition ie alarm state is armed_away instead of disarmed?

thanks!

Triggers every time trigger conditions are met

If triggered, it then check condition
If condition true it runs action

There is “mode” to set for automation as well. In this case you can have automation restart at each trigger, run a parallel process, wait for current to finish(queue) or ignore new trigger and complete current (single…the default

@tmjpugh thanks, and is there a point for an automation?

yeah, it works properly, it was my fault - so all seems to be fine.

It is for use case like,

I dont have doorbell but have gated entry.
When person arrive I want to know they arrive so I make automation that

Trigger when frigate has detection
check that detection is in specifified zone (area where person/car try to enter)
send me notification when these occur
I can “click” in the notification to open gate/unlock door

In other case maybe you want the outdoor light to turn ON/OFF at some time

Maybe you want the alarm siren turn ON when motion and your away

Automation is for the action that should occur without the use need apply input or for thing that need regularly monitor and send report upon some occurance