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

Not always take new photo #67

Open
luisrival opened this issue Dec 29, 2022 · 0 comments
Open

Not always take new photo #67

luisrival opened this issue Dec 29, 2022 · 0 comments

Comments

@luisrival
Copy link

luisrival commented Dec 29, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant