forked from pliablepixels/zmeventnotification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathes_rules.example.yml
More file actions
34 lines (31 loc) · 861 Bytes
/
es_rules.example.yml
File metadata and controls
34 lines (31 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ES notification rules
#
# Define per-monitor rules to mute or escalate notifications
# based on time of day, day of week, and detection cause.
#
# Set the path in zmeventnotification.yml:
# customize:
# es_rules: /etc/zm/es_rules.yml
notifications:
monitors:
999:
rules:
- comment: "Be careful with dates, no leading spaces, etc"
time_format: "%I:%M %p"
from: "9:30 pm"
to: "1 am"
cause_has: person
daysofweek: "Mon,Tue,Wed"
action: mute
- time_format: "%I:%M %p"
from: "3 am"
to: "6 am"
action: mute
comment: "the pattern below is a negative match"
cause_has: "^(?!.*(plant|cat|dog)).*$"
998:
rules:
- time_format: "%I:%M %p"
from: "5 pm"
to: "7 am"
action: mute