I have this automation:
alias: Restart Frigate when camera freeze
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.livingroom_motion
- binary_sensor.doorbell_motion
- binary_sensor.backgarden_motion
- binary_sensor.reolink_motion
- binary_sensor.bedroom_motion
to: "on"
for:
hours: 0
minutes: 20
seconds: 0
conditions: []
actions:
- action: hassio.addon_restart
metadata: {}
data:
addon: ccab4aaf_frigate-fa-beta
mode: single
I want to restart Frigate whenever ONE of the camera sensors gets stuck for 20 minutes. Is this correct with this automation?
I'm concerned if setting them all within the same trigger might check for 20min where ANY of them is "On" during those 20min. Not sure if I'm being clear. If sensor 1 is On for 19min, and then sensor 2 is On for 1min or more (overlapping the other sensor 19min), so the trigger essentially was true for 20min. Would that trigger the actions?
I wouldn't want that. I want it to run only when the same sensor is stuck for 20min. From the traces, I can see it's triggering more often than I expected, that's why I'm suspicious and asking.
Thanks!