-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
41 lines (41 loc) · 1.62 KB
/
scripts.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
iss_overhead_in_10_minutes:
alias: ISS overhead in 10 minutes
sequence:
- service: notify.mobile_app_mc_hass_app
data:
title: 🛰 ISS is arriving in 10 minutes 🛰
message: The ISS will arrive at {{ as_timestamp (states.input_datetime.iss_next_overhead_date_time.state)
| timestamp_custom('%I:%M %p') }} from {{ states.sensor.iss_approach.state
}} reaching a maximum height of {{ states.sensor.iss_elevation.state }} above
the horizon. After {{ states.sensor.iss_duration.state }} minutes, it will
leave {{ states.sensor.iss_departure.state }}.
data:
chronometer: true
when: '{{ (as_timestamp(now()) + 600) | round }}'
timeout: 600
tag: iss
ttl: 86400
priority: high
mode: single
icon: mdi:space-station
iss_overhead_now:
alias: ISS overhead now
sequence:
- service: notify.mobile_app_mc_hass_app
data:
title: 🛰 ISS is overhead for {{ states.sensor.iss_duration.state }} minutes
🛰
message: The ISS will arrive at {{ as_timestamp (states.input_datetime.iss_next_overhead_date_time.state)
| timestamp_custom('%I:%M %p') }} from {{ states.sensor.iss_approach.state
}} reaching a maximum height of {{ states.sensor.iss_elevation.state }} above
the horizon. After {{ states.sensor.iss_duration.state }} minutes, it will
leave {{ states.sensor.iss_departure.state }}.
data:
chronometer: true
when: '{{ (as_timestamp(now()) + 600) | round }}'
timeout: 600
tag: iss
ttl: 86400
priority: high
mode: single
icon: mdi:space-station