-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
170 lines (170 loc) · 3.87 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
- id: looper
alias: looper
initial_state: true
mode: restart
trigger:
- id: trigger_looper
platform: state
entity_id: input_boolean.activate_looper
to: 'on'
condition:
- condition: trigger
id: trigger_looper
action:
- repeat:
while:
- condition: or
conditions:
- condition: template
value_template: '{% if is_state(''input_boolean.activate_looper'', ''on'')
%} true {% else %} false {% endif %}'
sequence:
- service: persistent_notification.create
data_template:
title: Looper {{now().timestamp()|timestamp_local}}
message: Looper has triggered.
- delay: 00:00:01
- id: '1670317243362'
alias: nodered_restart
description: ''
trigger:
- platform: time
at: 00:00:00
condition: []
action:
- service: hassio.addon_restart
data:
addon: a0d7b954_nodered
mode: restart
- id: '1670317667056'
alias: watchdog_notification_example
description: ''
trigger:
- platform: time
at: 09:00:00
condition: []
action:
- service: persistent_notification.create
data:
title: '#Info- #Status'
notification_id: watchdog_notification_example
message: Daily Life Sign.
mode: restart
- id: '1672134136129'
alias: watchdog_led_temperature
description: ''
trigger:
- platform: time_pattern
seconds: /30
condition:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.pcs1_led_panel_max_temperature
above: '50'
- condition: numeric_state
entity_id: sensor.pcs1_growth_chamber_average_temperature
above: '26'
- condition: numeric_state
entity_id: sensor.pcs1_kin_dallas_4_temperature
above: '45'
- condition: state
entity_id: sensor.pcs1_max_temperature
state: '50'
action:
- service: homeassistant.turn_off
data: {}
target:
entity_id:
- sensor.pcs1_main_power
mode: single
- id: '1674218687970'
alias: watchdog_nodered_heartbeat_restart
description: ''
trigger:
- platform: time_pattern
seconds: /10
condition:
- condition: state
entity_id: input_boolean.node_red_heartbeat
state: 'off'
for:
hours: 0
minutes: 2
seconds: 0
action:
- service: hassio.addon_restart
data:
addon: a0d7b954_nodered
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.node_red_heartbeat
mode: single
- id: '1674833598388'
alias: automation_power_supply_control
description: ''
trigger:
- platform: time_pattern
seconds: /10
condition:
- condition: state
entity_id: input_boolean.pcs1_automation_power_supply_active
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: schedule.pcs1_main_power_schedule
state: 'off'
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.pcs1_main
default: []
mode: restart
- id: '1685090732927'
alias: watchdog_nodered_heartbeat_shutdown
description: ''
trigger:
- platform: time_pattern
seconds: /10
condition:
- condition: state
entity_id: input_boolean.node_red_heartbeat
state: 'on'
for:
hours: 0
minutes: 10
seconds: 0
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.pcs1_kin_stepper_enable_motor
- service: switch.turn_off
data: {}
target:
entity_id: switch.pcs1_main
mode: single
- id: '1685090902166'
alias: watchdog_nodered_heartbeat
description: ''
trigger:
- platform: time_pattern
seconds: /10
condition:
- condition: state
entity_id: input_boolean.node_red_heartbeat
state: 'off'
for:
hours: 0
minutes: 0
seconds: 0
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.node_red_heartbeat
mode: single