-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathnotifications.yaml
103 lines (99 loc) · 2.67 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
---
#-
# _ _ __ _ _ _
# _ __ ___ | |_(_)/ _(_) ___ __ _| |_(_) ___ _ __ ___
# | '_ \ / _ \| __| | |_| |/ __/ _` | __| |/ _ \| '_ \/ __|
# | | | | (_) | |_| | _| | (_| (_| | |_| | (_) | | | \__ \
# |_| |_|\___/ \__|_|_| |_|\___\__,_|\__|_|\___/|_| |_|___/
#
#
#- from github.com/basnijholt/home-assistant-config
- alias: "Notifications: Marcella arrived at Rotterdam Centraal"
triggers:
trigger: state
entity_id: device_tracker.marcella_iphone
to: rotterdam_centraal
actions:
action: notify.iphone_bas
data:
title: "Arriving"
message: "Marcella arrived at Rotterdam Centraal"
- alias: "Notifications: front door has opened"
triggers:
trigger: state
entity_id: binary_sensor.openclose_front_door
to: "on"
conditions:
condition: state
entity_id: input_boolean.front_door_open_warning
state: "on"
actions:
- action: notify.mobile_app_basnijholt_iphone_13
data:
title: Security
message: Front door opened!
- action: notify.iphone_bas
data:
title: Security
message: Front door opened!
- action: input_boolean.turn_off
entity_id: input_boolean.front_door_open_warning
- alias: "Notifications: Daily New Word Notification"
triggers:
- trigger: time
at: "07:30:00"
actions:
- action: notify.mobile_app_marcella_iphone_14_pro
data:
title: "Daily new word"
message: >
{% set words = [
"Mama",
"Baby",
"Dog",
"Cat",
"Ball",
"Car",
"Book",
"Milk",
"Juice",
"Water",
"Apple",
"Banana",
"Eat",
"More",
"No",
"Yes",
"Please",
"Thank you",
"Hi",
"Bye",
"Night-night",
"Bath",
"Diaper",
"Shoe",
"Hat",
"Ear",
"Nose",
"Eye",
"Hand",
] %}
{% set word = words | random %}
{{ word }}
data:
actions:
- action: "AGREE_WORD"
title: "Great word!"
activationMode: background
authenticationRequired: true
destructive: true
- wait_for_trigger:
trigger: event
event_type: mobile_app_notification_action
event_data:
action: "AGREE_WORD"
timeout: "01:00:00"
continue_on_timeout: false
- action: notify.mobile_app_marcella_iphone_14_pro
data:
message: "We all love you! ❤️😘🥰💖💕🌷🌼🌈✨🎉🍀"