forked from hemantkamalakar/haconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
46 lines (46 loc) · 1.35 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
<<<<<<< HEAD
=======
- alias: Notify Of New External IP
id: '1545644322222'
trigger:
platform: state
entity_id: sensor.external_ip
action:
- service: notify.slack
data_template:
message: 'Your External IP : {{ states.sensor.external_ip.state }} '
- alias: Update notifications
id: '918273645'
trigger:
platform: state
entity_id: updater.updater
action:
- service: notify.slack
data_template:
title: New Home Assistant Release
message: Home Assistant {{ states.updater.updater.state }} is now available.
- id: '1545644325295'
alias: Home Assistant startup notification
trigger:
- event: start
platform: homeassistant
action:
- service: notify.slack
data_template:
message: Home assistant restarted successfully!
title: Hass restart notification
- alias: Ruuvi sensors status check
trigger:
- platform: state
entity_id: sensor.living_room_ruuvi_battery
- platform: state
entity_id: sensor.time
condition:
condition: template
value_template: '{{ (now() - states.sensor.living_room_ruuvi_battery.last_changed).total_seconds() > 60*30 }}'
action:
service: notify.slack
data_template:
message: "Looks like RuuviTag sensors are offline. Please restart Ruuvi docker."
id: 880b46ef5d7b4133823829f7856ed77e
>>>>>>> aa66de496979c34a4a8d0561b9a83805219edfca