/
notifications.yaml
543 lines (507 loc) · 16.3 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
# This is the notifications page, you can edit notifications that are
# shown on the frontend in this file. This works with conditional cards.
# What this means is that the conditions need to be be met before these
# cards are shown. When there are more entities/states in a conditional
# card it will always be an 'AND' condition, it will never be an 'OR'
# condition. Edit the conditions, entities and notification content to
# your own likings.
#### #### #### #### #### #### #### #### #### #### #### #### #### #### #
# Card Config
# All Clear
- type: conditional
conditions:
- entity: binary_sensor.smoke_sensor
state: "off"
- entity: binary_sensor.voordeur
state: "off"
- entity: binary_sensor.woonkamer_deur
state: "off"
- entity: binary_sensor.slaapkamer_deur
state: "off"
- entity: switch.dryer
state: "off"
- entity: sensor.vaatwasser_status
state_not: "Clean"
- entity: switch.washing_machine
state: "off"
- entity: alarm_control_panel.home_alarm
state: disarmed
- entity: group.device_status
state: 'home'
- entity: switch.afzuigkap
state: "off"
- entity: binary_sensor.motion_toilet
state: "off"
- entity: binary_sensor.motion_bijkeuken
state: "off"
- entity: binary_sensor.motion_kennedylaan_links
state: "off"
- entity: binary_sensor.motion_gallerij_camera
state: "off"
- entity: switch.koelkast
state: "on"
- entity: switch.vriezer
state: "on"
- entity: binary_sensor.motion_gallerij_camera_2
state: "unavailable"
- entity: binary_sensor.motion_woonkamer_camera
state: "off"
- entity: binary_sensor.motion_office
state: "unavailable"
- entity: binary_sensor.motion_gang
state: "off"
- entity: vacuum.valetudo_gentlepossiblescorpion
state: "docked"
- entity: person.tala
state: "home"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:check-circle
name: Alles is rustig, er zijn geen meldingen
# Home Assistant Update
- type: conditional
conditions:
- entity: sensor.version_updater
state: "Update available"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:home-assistant
name: Er is een update voor Home Assistant!!
# Smoke Detector Triggered
- type: conditional
conditions:
- entity: switch.koelkast
state: "off"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:fridge
name: De koelkast staat uit!!
# Smoke Detector Triggered
- type: conditional
conditions:
- entity: binary_sensor.smoke_sensor
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:smoke-detector
name: Er is rook gesignaleerd in de keuken!!
spin: true
# Alarm Triggered
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state: "triggered"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:alert
name: LET OP! Het alarm is afgegaan, LET OP!
# Alarm Armed
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state_not: disarmed
- entity: alarm_control_panel.home_alarm
state_not: pending
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:alert
name: LET OP! Het alarm is ingeschakeld!
# Alarm Disarmed Not Home
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state: disarmed
- entity: group.device_status
state_not: home
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:alert-circle-outline
name: Er is niemand meer thuis, schakel het alarm in!
# Wedding Day (number of years married)
- type: conditional
conditions:
- entity: sensor.anniversary_wedding_day
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:ring
name: "[[[ return `Vandaag zijn we ${states['sensor.anniversary_wedding_day'].attributes.years} jaar getrouwd!` ]]]"
spin: true
# Anniversary (number of years since we are together)
- type: conditional
conditions:
- entity: sensor.anniversary_anniversary
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:ring
name: "[[[ return `Vandaag zijn we ${states['sensor.anniversary_anniversary'].attributes.years} jaar samen!` ]]]"
spin: true
# Afzuigkap
- type: conditional
conditions:
- entity: switch.afzuigkap
state: "on"
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:fan
name: De afzuigkap staat aan!
spin: true
# Voordeur
- type: conditional
conditions:
- entity: binary_sensor.voordeur
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:door
name: De voordeur staat open!
# Woonkamer Deur
- type: conditional
conditions:
- entity: binary_sensor.woonkamer_deur
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:door
name: De woonkamerdeur staat open!
# Slaapkamer Deur
- type: conditional
conditions:
- entity: binary_sensor.slaapkamer_deur
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:door
name: De slaapkamerdeur staat open!
# Keukenraam
- type: conditional
conditions:
- entity: binary_sensor.keukenraam
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:window-open
name: Het raam in de keuken staat open!
# Bijkeukenraam
- type: conditional
conditions:
- entity: binary_sensor.bijkeukenraam
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:window-open
name: Het raam in de bijkeuken staat open!
# Office Raam
- type: conditional
conditions:
- entity: binary_sensor.kleine_kamerraam
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:window-open
name: Het raam in de Kleine Kamer staat open!
# Droger
- type: conditional
conditions:
- entity: sensor.dryer_dryer_job_state
state: finish
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:tumble-dryer
name: De droger is klaar!
- type: conditional
conditions:
- entity: sensor.dryer_dryer_machine_state
state: run
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:tumble-dryer
name: "[[[ return `Droger status is ${states['sensor.dryer_dryer_job_state'].state} en de eindtijd is ${states['sensor.dryer_time_left'].state}` ]]]"
# Wasmachine
- type: conditional
conditions:
- entity: sensor.washing_machine_washer_job_state
state: finish
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:washing-machine
name: De wasmachine is klaar!
- type: conditional
conditions:
- entity: sensor.washing_machine_washer_machine_state
state: run
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:washing-machine
name: "[[[ return `Wasmachine status is ${states['sensor.washing_machine_washer_job_state'].state} en de eindtijd is ${states['sensor.washing_machine_time_left'].state}` ]]]"
# Vaatwasser
- type: conditional
conditions:
- entity: input_select.vaatwasser_status
state: Clean
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:dishwasher
name: De vaatwasser is klaar!
# Hond
- type: conditional
conditions:
- entity: person.tala
state_not: home
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:dog-side
name: Tala is niet thuis!
# Motion Gallerij
- type: conditional
conditions:
- entity: binary_sensor.motion_gallerij_camera_2
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging op de gallerij
# Motion Kennedylaan
- type: conditional
conditions:
- entity: binary_sensor.motion_kennedylaan_links
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging op de Kennedylaan
# Motion Woonkamer
- type: conditional
conditions:
- entity: binary_sensor.motion_woonkamer_camera
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging in de woonkamer
# Motion Bijkeuken
- type: conditional
conditions:
- entity: binary_sensor.motion_bijkeuken
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging in de bijkeuken
# Motion Toilet
- type: conditional
conditions:
- entity: binary_sensor.motion_toilet
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging op het toilet
# Motion Gang
- type: conditional
conditions:
- entity: binary_sensor.motion_gang
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging in de gang
# Motion Office
- type: conditional
conditions:
- entity: binary_sensor.motion_office
state: "on"
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:motion-sensor
name: Er is beweging in de kleine kamer
# Vacuum Notification (Cleaning)
- type: conditional
conditions:
- entity: vacuum.valetudo_gentlepossiblescorpion
state_not: docked
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:robot-vacuum
name: "[[[ return `Vacuum: ${states['vacuum.valetudo_gentlepossiblescorpion'].state}` ]]]"
spin: true
# APK Stephanie
- type: conditional
conditions:
- entity: input_boolean.apksteph
state: "on"
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:steering
name: "[[[ return `APK Citroën C1 verloopt op ${states['sensor.citroen_c1_expdate'].state}` ]]]"
spin: true
# APK Jimmy
- type: conditional
conditions:
- entity: input_boolean.apkjimz
state: "on"
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- icon: mdi:steering
name: "[[[ return `APK Peugeot 207 SW verloopt op ${states['sensor.peugeot_207_expdate'].state}` ]]]"
spin: true
## Birthdays
# Koos van Duuren
- type: conditional
conditions:
- entity: sensor.birthday_koos_van_duuren
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Koos van Duuren is vandaag ${states['sensor.birthday_koos_van_duuren'].attributes.years} geworden!` ]]]"
# Jimmy Schings
- type: conditional
conditions:
- entity: sensor.birthday_jimmy_schings
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Jimmy Schings is vandaag ${states['sensor.birthday_jimmy_schings'].attributes.years} geworden!` ]]]"
# Stephanie Schings
- type: conditional
conditions:
- entity: sensor.birthday_stephanie_schings
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Stephanie Schings is vandaag ${states['sensor.birthday_stephanie_schings'].attributes.years} geworden!` ]]]"
# Ralf Vogels
- type: conditional
conditions:
- entity: sensor.birthday_ralf_vogels
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Ralf Vogels is vandaag ${states['sensor.birthday_ralf_vogels'].attributes.years} geworden!` ]]]"
# Jos Schings
- type: conditional
conditions:
- entity: sensor.birthday_jos_schings
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Jos Schings is vandaag ${states['sensor.birthday_jos_schings'].attributes.years} geworden!` ]]]"
# Tala
- type: conditional
conditions:
- entity: sensor.birthday_tala
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_tala
icon: mdi:dog-side
name: "[[[ return `Tala is vandaag ${states['sensor.birthday_jimmy_schings'].attributes.years} geworden!` ]]]"
# Ad van Dartel
- type: conditional
conditions:
- entity: sensor.birthday_ad_van_dartel
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Ad van Dartel is vandaag ${states['sensor.birthday_ad_van_dartel'].attributes.years} geworden!` ]]]"
# Rick Oosterbosch
- type: conditional
conditions:
- entity: sensor.birthday_rick_oosterbosch
state: '0'
- entity: alarm_control_panel.home_alarm
state: disarmed
card:
!include
- '../hki-base/templates/header/subtitle-notification-template.yaml'
- entity: input_boolean.notification_birthday
icon: mdi:gift
name: "[[[ return `Rick Oosterbosch is vandaag ${states['sensor.birthday_rick_oosterbosch'].attributes.years} geworden!` ]]]"