-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathautomations.yaml
27 lines (27 loc) · 1004 Bytes
/
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
# - id: '1722733318654'
# alias: '[Paralympics] Notify on Medal Win'
# description: ''
# trigger:
# - platform: state
# entity_id:
# - sensor.paralympics_medal_count_total
# condition:
# - condition: template
# value_template: '{{ trigger.from_state.state|int(0) < trigger.to_state.state|int(0)
# }}'
# action:
# - data:
# title: Paralympics - Another Medal!
# data:
# push:
# badge: 1
# interruption-level: time-sensitive
# presentation_options:
# - alert
# - badge
# message: "Another Medal! Bringing our total to {{states('sensor.paralympics_medal_count_total')
# }}, ranked {{states('sensor.paralympics_medal_count_ranking') }} \n\U0001F947
# {{states('sensor.paralympics_medal_count_gold') }} \U0001F948 {{states('sensor.paralympics_medal_count_silver')
# }} \U0001F949 {{states('sensor.paralympics_medal_count_bronze') }}"
# action: notify.alert
# mode: single