-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
executable file
·114 lines (108 loc) · 3.06 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
#
# Learn more at https://www.home-assistant.io/components/automation/
#
- alias: 'HASS RPi Low Disk Space Alert'
trigger:
- platform: numeric_state
entity_id: sensor.disk_use_percent
above: 90
action:
- service: notify.notify
data:
title: "HASS RPi Alert"
message: "Low Disk Space > 10% Free"
################################################################
- alias: 'HASS RPi Low Memory Alert'
trigger:
- platform: numeric_state
entity_id: sensor.memory_use_percent
above: 90
action:
- service: notify.notify
data:
title: "HASS RPi Alert"
message: "Low Memory > 10% Free"
################################################################
- alias: 'Update Notification'
trigger:
platform: state
entity_id: updater.updater
action:
service: notify.notify
data:
title: 'New HA release'
message: 'Home Assistant {{states.updater.updater.state}} is now available...'
- alias: 'Update Popup'
trigger:
platform: state
entity_id: updater.updater
action:
service: persistent_notification.create
data:
title: 'New HA release'
message: 'Home Assistant {{states.updater.updater.state}} is now available...'
################################################################
- alias: 'HASS Start'
trigger:
platform: event
event_type: homeassistant_start
action:
service: notify.notify
data:
message: 'HA started'
# message: 'Home Assistant started: {{ as_timestamp(now()) | timestamp_custom("%b %d %X") }}'
################################################################
- alias: 'HASS Stop'
trigger:
platform: event
event_type: homeassistant_stop
action:
service: notify.notify
data:
message: 'HA stopped'
################################################################
- alias: 'Backyard Light Timer'
trigger:
platform: state
entity_id: switch.back_yard_lights
to: 'on'
for:
minutes: 30
action:
service: notify.notify
data:
message: 'Backyard lights are on...'
################################################################
- alias: 'Garage Light Timer'
trigger:
platform: state
entity_id: switch.garage_light
to: 'on'
for:
minutes: 30
action:
service: notify.notify
data:
message: 'Garage lights are on...'
################################################################
- id: hass_theme
alias: 'Set Theme at Startup'
initial_state: 'on'
trigger:
- platform: homeassistant
event: start
action:
- service: frontend.set_theme
data:
name: material_dark_green
################################################################
- id: hass_theme
alias: 'HASS Theme'
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.hass_theme
action:
- service: frontend.set_theme
data_template:
name: "{{ states.input_select.hass_theme.state }}"