Frigate Sensor Detect for DeepStack to run face scan

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.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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"
2 Likes

Awesome blueprint! do you or anyone have anything to then take the results of the deepstack image processing and send a notification with the identified person?