Activate image_processing (for HASS-Deepstack-face) when frigate sensor detects people in front of camera, scanning is repeated every x second until there they are no people notified by sensor.
https://gist.github.com/kakaki/c870d1837c9e28bd0f204c6212bfd24
blueprint:
name: Frigate Sensor Detect
description:
"## Frigate Detect\n\nThis blueprint will send a scan command\
\ to your image_processing device when a Frigate motion sensors detect items above 0.\n"
domain: automation
source_url: https://gist.github.com/kakaki/c870d1837c9e28bd0f204c6212bfd242
input:
sensor:
name: Frigate Sensor
description: The name of the sensor to detect
default: false
selector:
entity:
domain: sensor
image_proc:
name: Image
description: Image procesing to notify
default: false
selector:
entity:
domain: image_processing
cooldown:
name: (Optional) Cooldown
description:
Delay before sending another scan for this Image procesing after
the last event.
default: 10
selector:
number:
max: 3000.0
min: 0.0
unit_of_measurement: seconds
step: 1.0
mode: slider
mode: single
max_exceeded: silent
trigger:
platform: numeric_state
entity_id: !input "sensor"
above: 0
action:
repeat:
until:
- condition: numeric_state
entity_id: !input "sensor"
below: 1
sequence:
- service: image_processing.scan
target:
entity_id: !input "image_proc"
- delay:
seconds: !input "cooldown"