-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.yaml
More file actions
150 lines (150 loc) · 4.09 KB
/
scripts.yaml
File metadata and controls
150 lines (150 loc) · 4.09 KB
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
---
alexa_notification:
alias: Alexa Notification
sequence:
- service: rest_command.voicemonkey
data:
monkey: echo-dot-monkey
message: "{{ message }}"
url: "{{ url }}"
image: "{{ image }}"
video: "{{ video }}"
mode: parallel
icon: mdi:hockey-puck
doorbell_alert_alexa:
alias: Alexa doorbell alerts
sequence:
- condition: state
entity_id: input_boolean.doorbell_alert_alexa
state: "on"
- service: rest_command.voice_monkey
data:
monkey: doorbell-monkey-alexa
message: "{{ message }}"
doorbell_alert_helen:
alias: Helen's doorbell alerts
sequence:
- condition: state
entity_id: input_boolean.doorbell_alert_helen
state: "on"
doorbell_alert_james:
alias: James's doorbell alerts
sequence:
- condition: state
entity_id: input_boolean.doorbell_alert_james
state: "on"
- service: rest_command.voice_monkey
data:
monkey: doorbell-monkey-james
message: "{{ message }}"
- service: script.ifttt_notification
data:
title: HomeAssistant Alert
message: Doorbell pressed at
{{ '{:02}:{:02}'.format(now().hour, now().minute) }}
url: http://{{ states('input_text.hostname') }}:8123/lovelace/doorbell
washing_machine_time_delay:
alias: Washing Machine Time Delay
sequence:
- if:
- condition: state
entity_id: switch.washing_machine
state: "off"
then:
- service: switch.turn_on
data: {}
target:
entity_id: switch.washing_machine
- service: input_text.set_value
data:
value: Waiting for start button to be pressed on washing machine.
target:
entity_id: input_text.washing_machine_status
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.washing_machine_activity_state
to: "on"
for:
hours: 0
minutes: 0
seconds: 8
- service: switch.turn_off
data: {}
target:
entity_id: switch.washing_machine
- service: input_text.set_value
data:
value: Waiting until {{ states('input_datetime.washing_start_time') }}
to start wash cycle.
target:
entity_id: input_text.washing_machine_status
- wait_for_trigger:
- platform: time
at: input_datetime.washing_start_time
- service: switch.turn_on
data: {}
target:
entity_id: switch.washing_machine
- service: input_text.set_value
data:
value: Wash cycle in progress.
target:
entity_id: input_text.washing_machine_status
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.washing_machine_activity_state
for:
hours: 0
minutes: 0
seconds: 30
to: "off"
- service: switch.turn_off
data: {}
target:
entity_id: switch.washing_machine
- if:
- condition: time
before: 08:00:00
weekday:
- sat
- sun
then:
- service: input_text.set_value
data:
value: Waiting until 08:00 to alert end of cycle.
target:
entity_id: input_text.washing_machine_status
- wait_for_trigger:
- platform: time
at: 08:00:00
- if:
- condition: time
before: 07:00:00
weekday:
- fri
- thu
- wed
- tue
- mon
then:
- service: input_text.set_value
data:
value: Waiting until 07:00 to alert end of cycle.
target:
entity_id: input_text.washing_machine_status
- wait_for_trigger:
- platform: time
at: 07:00:00
- service: notify.ADULT_PHONES
data:
title: HomeAssistant
message: Washing machine has finished cycle.
- service: switch.turn_on
data: {}
target:
entity_id: switch.washing_machine
mode: single
icon: mdi:washing-machine
...