Hi all
Ive setup double take with compreface with great success thankyou @Jako
But i would like to change my frigate TTS notifcation to notify who is detected
alias: Front door person detected
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.frontarea_person_motion
from: "off"
to: "on"
condition: []
action:
- service: notify.mobile_app_sm_n960f
data:
message: TTS
data:
tts_text: A Person has been detected on the Front Door camera
channel: alarm_stream
priority: high
ttl: 0
title: Person Detected
I know i can add multiple triggers but ideally id like to just have 1 notification automation and this would report the detected person or unknown.
I currently have
alias: doubletakenotify
description: Double Take Notify
trigger:
- platform: state
entity_id:
- sensor.double_take
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
- service: notify.mobile_app_sm_n960f
data:
message: TTS
title: Double Take Face Detected
data:
tts_text: |-
{% if trigger.to_state.attributes.match is defined %}
{{trigger.to_state.attributes.friendly_name}} is near the {{trigger.to_state.state}} @ {{trigger.to_state.attributes.match.confidence}}% by {{trigger.to_state.attributes.match.detector}}:{{trigger.to_state.attributes.match.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
{% elif trigger.to_state.attributes.unknown is defined %}
unknown is near the {{trigger.to_state.state}} @ {{trigger.to_state.attributes.unknown.confidence}}% by {{trigger.to_state.attributes.unknown.detector}}:{{trigger.to_state.attributes.unknown.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
{% endif %}
channel: alarm_stream
priority: high
ttl: 0
mode: parallel
max: 10
Any thought please gurus?
Thanks