-
Notifications
You must be signed in to change notification settings - Fork 7
/
notifications.yaml
135 lines (126 loc) · 3.61 KB
/
notifications.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#Notifications Automation
- id: NotifyWhenDoorOpens
alias: Notify When Door Opens If No One Is Home
trigger:
platform: state
entity_id: sensor.kitchen_door, sensor.central_door, sensor.front_door, sensor.back_garage_door, cover.garage_door
to: 'open'
condition:
condition: state
entity_id: input_boolean.door_notifications
state: 'on'
action:
service: notify.notify
data_template:
message: >
{{ trigger.to_state.attributes.friendly_name }} Opened
- id: NotifyWhenCloudIsHome
alias: Notify when Cloud is at back door
trigger:
platform: state
entity_id: sensor.porch_motion
to: 'motion'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.scott
state: 'home'
- condition: state
entity_id: input_boolean.cloud_timer
state: 'off'
action:
- service: notify.notify
data_template:
message: "Cloud is Home."
- service: input_boolean.turn_on
entity_id: input_boolean.cloud_timer
- id: ResetCloudTimerAfter5Mins
alias: Reset Cloud Timer after 5 Minutes
trigger:
platform: state
entity_id: sensor.porch_motion
to: 'clear'
for:
minutes: 5
action:
service: input_boolean.turn_off
entity_id: input_boolean.cloud_timer
- id: NotifyWhenSmokeDetectorDetectsSmoke
alias: Notify When Smoke Detector Detects Smoke
trigger:
platform: state
entity_id: sensor.kitchen_smoke_detector, sensor.garage_smoke_detector, sensor.hallway_smoke_detector
to: 'Fire Detected'
action:
service: notify.notify
data_template:
message: >
{{ trigger.to_state.attributes.friendly_name }} Smoke Detected
- id: NotifyWhenSmokeDetectorDetectsCarbon
alias: Notify When Smoke Detector Detects Carbon Monoxide
trigger:
platform: state
entity_id: sensor.kitchen_smoke_detector, sensor.garage_smoke_detector, sensor.hallway_smoke_detector
to: 'Carbon Monoxide Detected'
action:
service: notify.notify
data_template:
message: >
{{ trigger.to_state.attributes.friendly_name }} Carbon Monoxide Detected
- id: NotifyWhenGarageIsOpenAfter10PM
alias: Notify When Garage Is Open after 10pm
trigger:
platform: state
entity_id: cover.garage_door
to: 'open'
condition:
condition: time
after: '22:00:00'
before: '23:59:59'
action:
service: notify.notify
data:
message: "Garage Door is still open."
- id: NotifyWhenGarageIsOpenFor30Mins
alias: Notify When Garage Is Open For 30 minutes
trigger:
platform: state
entity_id: cover.garage_door
to: 'open'
for:
minutes: 30
action:
service: notify.notify
data:
message: "Garage Door has been open 30 minutes."
- id: NotifyWhenDiskUseis95
alias: Notify When Disk Use is >95%
trigger:
platform: numeric_state
entity_id: sensor.disk_use_
above: '95'
action:
service: notify.notify
data:
message: "HASS disk use is 95% full."
- id: NotifyWhenUpdateAvailable
alias: Notify When Home-Assistant Has An Update
trigger:
- platform: state
entity_id: updater.updater
action:
service: notify.notify
data:
message: "Home-Assistant has an update."
- id: NotifyWhenSmokeDetectorBatteryLow
alias: Notify When Smoke Detector Battery Low
trigger:
platform: numeric_state
entity_id: sensor.kitchen_smoke_detector_battery, sensor.hallway_smoke_detector_battery, sensor.garage_smoke_detector_battery, sensor.thermostat_battery
below: '7'
action:
service: notify.notify
data_template:
message: >
{{ trigger.to_state.attributes.friendly_name }} Has Low Battery