Skip to content
This repository was archived by the owner on Mar 19, 2023. It is now read-only.
This repository was archived by the owner on Mar 19, 2023. It is now read-only.

Not always take new photo #67

@alpha9295

Description

@alpha9295

I have the next script, but for some reason sometimes it don´t take a photo when it is executed and use the last time execution photo

`alias: Face Recognition Timbre
sequence:

  • service: image_processing.scan
    data: {}
    target:
    entity_id: image_processing.face
  • delay:
    hours: 0
    minutes: 0
    seconds: 2
    milliseconds: 0
  • service: notify.mobile_app_androidluis
    data_template:
    message: >-
    {{state_attr('image_processing.face', 'faces').0.name }} fue detectado
    con un nivel de precición de {{state_attr('image_processing.face',
    'faces').0.confidence | round(1) }}
    data:
    image: /media/local/deepstack/snapshots/face_latest.jpg
  • service: notify.mobile_app_iphone_luis
    data_template:
    message: >-
    {{state_attr('image_processing.face', 'faces').0.name }} fue detectado
    con un nivel de precición de
    {{state_attr('image_processing.face','faces').0.confidence | round(1) }}
    data:
    image: /media/local/deepstack/snapshots/face_latest.jpg
  • service: notify.mobile_app_ipad_de_luisr
    data_template:
    message: >-
    {{state_attr('image_processing.face', 'faces').0.name }} fue detectado
    con un nivel de precición de
    {{state_attr('image_processing.face','faces').0.confidence | round(1) }}
    data:
    image: /media/local/deepstack/snapshots/face_latest.jpg
    mode: single`

This script is executed when my doorbell is press, so in theory every time it is a person

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions