-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
191 lines (191 loc) · 4.48 KB
/
automations.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
- id: '1578342611519'
alias: 'Notify on event and alarm is on '
description: ''
trigger:
- entity_id: light.dnevna_soba_luc
for: '1'
from: 'off'
platform: state
to: 'on'
- entity_id: light.klubska_soba_luc
for: '1'
from: 'off'
platform: state
to: 'on'
- entity_id: switch.alexa_flex_motion_sensor_1
for: '1'
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: switch.alarm_switch
state: 'on'
- condition: state
entity_id: switch.alarm_critical
state: 'off'
action:
- data:
message: Nekdo je doma.
title: Alarm
service: notify.mobile_app_pocophone_f1
- data:
message: Nekdo je doma
title: Alarm
service: notify.mobile_app_sm_g950f
- alias: ''
data: {}
entity_id: switch.alarm_critical
service: switch.turn_on
- id: '1578399900286'
alias: 'Snapshot on motion #1'
description: ''
trigger:
- entity_id: camera.spredaj2
for: '1'
from: streaming
platform: state
to: recording
condition:
- condition: state
entity_id: switch.alarm_switch
state: 'on'
action:
- data:
filename: /tmp/snapshot_spredaj_1.jpg
entity_id: camera.spredaj2
service: camera.snapshot
- data:
data:
images:
- /tmp/snapshot_spredaj_1.jpg
message: Snapshot spredaj
title: Snapshot spredaj
service: notify.smtp_alarm_milos
- id: '1578407118501'
alias: Turn on alarm when i am not at home
description: ''
trigger:
- entity_id: device_tracker.sm_g950f
event: leave
platform: zone
zone: zone.home
condition: []
action:
- alias: ''
data: {}
entity_id: switch.alarm_switch
service: switch.turn_on
- id: '1578737785528'
alias: Turn on water circulation while someone is at home.
description: ''
trigger:
- minutes: /15
platform: time_pattern
condition:
- condition: zone
entity_id: person.milos_kocbek
zone: zone.home
- after: 06:00:00
before: '22:00:00'
condition: time
action:
- alias: ''
data: {}
entity_id: light.kurilnica_cirkulacija
service: light.turn_on
- id: '1578778435926'
alias: Turn on hot water after hours on movement
description: ''
trigger:
- entity_id: switch.alexa_flex_motion_sensor_1
for: '1'
from: 'off'
platform: state
to: 'on'
condition:
- after: '22:00:00'
before: 06:00:00
condition: time
- condition: zone
entity_id: person.milos_kocbek
zone: zone.home
- condition: template
value_template: '{{(as_timestamp(now())-as_timestamp(states.light.kurilnica_cirkulacija.last_updated))
> 900 }}'
action:
- alias: ''
data: {}
entity_id: light.kurilnica_cirkulacija
service: light.turn_on
- id: '1578779088865'
alias: Turn on hot water on wc, batroom or kitchen light
description: ''
trigger:
- entity_id: light.kopalnica1_luc
for: '1'
from: 'off'
platform: state
to: 'on'
- entity_id: light.wc_luc
for: '1'
from: 'off'
platform: state
to: 'on'
- entity_id: light.kuhinja_luc
for: '1'
from: 'off'
platform: state
to: 'on'
condition:
- condition: template
value_template: '{{(as_timestamp(now())-as_timestamp(light.kurilnica_cirkulacija.last_updated))
> 900 }}'
action:
- entity_id: light.kurilnica_cirkulacija
service: light.turn_on
- id: '1579023972623'
alias: Akcije ob odhodu od doma
description: ''
trigger:
- entity_id: person.milos_kocbek
event: leave
platform: zone
zone: zone.home
- entity_id: person.suzana_susnik_kocbel
event: leave
platform: zone
zone: zone.home
condition:
- condition: zone
entity_id: person.milos_kocbek
zone: zone.home
- condition: zone
entity_id: person.suzana_susnik_kocbel
zone: zone.home
action:
- entity_id: switch.luci_ugasni_vse_luci_v_pritlicju
service: switch.turn_on
- entity_id: switch.luci_ugasni_vse_luci_v_nadstropju
service: switch.turn_on
- entity_id: switch.luci_ugasni_vse_luci_v_kleti
service: switch.turn_on
- data:
position: 0
entity_id: cover.jedilnica_terasa_roleta
service: cover.set_cover_position
- entity_id: switch.alarm_switch
service: switch.turn_on
- id: '1579031765503'
alias: Turn off sensor after 1 min
description: ''
trigger:
- entity_id: switch.alexa_flex_motion_sensor_1
for: '60'
from: 'off'
platform: state
to: 'on'
condition: []
action:
- entity_id: switch.alexa_flex_motion_sensor_1
service: switch.turn_off