Update to the current version
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
This commit is contained in:
86
configuration/automation/notification_frigate.yaml.bak
Normal file
86
configuration/automation/notification_frigate.yaml.bak
Normal file
@ -0,0 +1,86 @@
|
||||
---
|
||||
- alias: '[Frigate] Person enters Driveway Zone'
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: frigate/events
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
||||
- condition: template
|
||||
value_template: "{{ 'zone_driveway' in trigger.payload_json['after']['entered_zones'] }}"
|
||||
action:
|
||||
- service: telegram_bot.send_photo
|
||||
data:
|
||||
target: "-1002338954143"
|
||||
message_thread_id: 2
|
||||
message_tag: frigate
|
||||
caption: "A {{trigger.payload_json['after']['label']}} has entered the driveway."
|
||||
url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
|
||||
# - service: notify.telegram_alex
|
||||
# data:
|
||||
# message: "A {{trigger.payload_json['after']['label']}} has entered the yard."
|
||||
# data:
|
||||
# photo:
|
||||
# - url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
# # caption: "{{trigger.payload_json['after']['id']}}"
|
||||
|
||||
- alias: '[Frigate] Person leaves Driveway Zone'
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: frigate/events
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
||||
- condition: template
|
||||
value_template: "{{ 'zone_driveway' in trigger.payload_json['before']['current_zones'] }}"
|
||||
- condition: template
|
||||
value_template: "{{ not 'zone_driveway' in trigger.payload_json['after']['current_zones'] }}"
|
||||
action:
|
||||
- service: telegram_bot.send_photo
|
||||
data:
|
||||
target: "-1002338954143"
|
||||
message_thread_id: 2
|
||||
message_tag: frigate
|
||||
caption: "A {{trigger.payload_json['after']['label']}} has left the yard."
|
||||
url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
|
||||
# - service: notify.telegram_alex
|
||||
# data:
|
||||
# message: "A {{trigger.payload_json['after']['label']}} has left the driveway."
|
||||
# data:
|
||||
# photo:
|
||||
# - url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
# # caption: "{{trigger.payload_json['after']['id']}}"
|
||||
|
||||
- alias: '[Frigate] Person detected by Doorbell camera'
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: frigate/events
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.payload_json['after']['camera'] == 'doorbell' }}"
|
||||
action:
|
||||
- service: telegram_bot.send_photo
|
||||
data:
|
||||
target: "-1002338954143"
|
||||
message_thread_id: 2
|
||||
message_tag: frigate
|
||||
caption: "Person detected by Doorbell camera"
|
||||
url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
|
||||
# - service: notify.telegram_alex
|
||||
# data_template:
|
||||
# message: 'Person detected by Doorbell camera'
|
||||
# data:
|
||||
# photo:
|
||||
# - url: "https://objects.savin.nyc/api/events/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
|
||||
# # caption: "{{trigger.payload_json['after']['id']}}"
|
Reference in New Issue
Block a user