-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
84 lines (83 loc) · 1.92 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
- id: light_off_leave
alias: Turn off lights when I leave
trigger:
- entity_id: device_tracker.jc_motox4
platform: state
to: not_home
action:
- entity_id:
- light.bedroom
service: light.turn_off
- id: light_on_arrive
alias: Turn on lights when I arrive home
trigger:
- entity_id: device_tracker.jc_motox4
from: not_home
platform: state
to: home
condition:
- condition: and
conditions:
- condition: state
entity_id: device_tracker.xmfjvdpx_mk6p55
state: home
- after: sunset
after_offset: '-1:30:00'
condition: sun
action:
- data:
brightness: 200
rgb_color:
- 255
- 198
- 102
entity_id:
- light.bedroom
service: light.turn_on
- id: set_start_theme
alias: Set Theme on Startup
initial_state: true
trigger:
- platform: homeassistant
event: start
action:
service: frontend.set_theme
data:
name: main
- id: weather_forecast
alias: Weather Forecast
trigger:
- at: '5:30:00'
hours: 5
minutes: 30
platform: time
seconds: 0
action:
- data_template:
message: 'The weather for {{ states.sensor.pws_weather_1d.attributes.friendly_name
}} is{{ '':'' }} {{ states.sensor.pws_weather_1d.state }} {{ states.sensor.pws_weather_1d.attributes.entity_picture
}} {{ states.sensor.pws_weather_1d.attributes.attribution }}
'
service: notify.html5
- id: weather_alerts
alias: Weather Alerts
trigger:
- entity_id: sensor.pws_alerts
platform: state
condition:
- condition: state
entity_id: binary_sensor.alerts_increase
state: 'on'
action:
- data:
message: Active weather alerts in Home Assistant
service: notify.html5
- id: update_notifications
alias: Update Notifications
trigger:
platform: state
entity_id: updater.updater
action:
- service: notify.html5
data:
message: Update for Home Assistant is available.