mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix notification examples
This commit is contained in:
parent
d376f6b1d2
commit
c065cb48f2
@ -52,7 +52,7 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: mqtt
|
platform: mqtt
|
||||||
topic: frigate/events
|
topic: frigate/events
|
||||||
conditions:
|
condition:
|
||||||
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
||||||
- "{{ 'yard' in trigger.payload_json['after']['entered_zones'] }}"
|
- "{{ 'yard' in trigger.payload_json['after']['entered_zones'] }}"
|
||||||
action:
|
action:
|
||||||
@ -69,7 +69,7 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: mqtt
|
platform: mqtt
|
||||||
topic: frigate/events
|
topic: frigate/events
|
||||||
conditions:
|
condition:
|
||||||
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
|
||||||
- "{{ 'yard' in trigger.payload_json['before']['current_zones'] }}"
|
- "{{ 'yard' in trigger.payload_json['before']['current_zones'] }}"
|
||||||
- "{{ not 'yard' in trigger.payload_json['after']['current_zones'] }}"
|
- "{{ not 'yard' in trigger.payload_json['after']['current_zones'] }}"
|
||||||
@ -87,7 +87,7 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: mqtt
|
platform: mqtt
|
||||||
topic: frigate/events
|
topic: frigate/events
|
||||||
conditions:
|
condition:
|
||||||
- "{{ trigger.payload_json['after']['label'] == 'dog' }}"
|
- "{{ trigger.payload_json['after']['label'] == 'dog' }}"
|
||||||
- "{{ trigger.payload_json['after']['camera'] == 'front' }}"
|
- "{{ trigger.payload_json['after']['camera'] == 'front' }}"
|
||||||
- "{{ trigger.payload_json['after']['top_score'] > 0.98 }}"
|
- "{{ trigger.payload_json['after']['top_score'] > 0.98 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user