forked from mcaminiti/homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
45 lines (42 loc) · 1.77 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
42
43
44
45
#################################################################
## Scripts
#################################################################
##########################################################
## Harmony Remote
##########################################################
input_select_remote_family_room:
alias: "Harmony Family Room - Start Remote activity from input select"
sequence:
service: remote.turn_on
data_template:
entity_id: remote.family_room
activity: >
{% if is_state("input_select.remote_family_room", "PowerOff") %}
-1
{% elif is_state("input_select.remote_family_room", "Watch TV") %}
46704437
{% elif is_state("input_select.remote_family_room", "Watch Apple TV") %}
46704549
{% elif is_state("input_select.remote_family_room", "Play Xbox One") %}
46704537
{% elif is_state("input_select.remote_family_room", "Play Wii U") %}
46704574
{% elif is_state("input_select.remote_family_room", "Play Nintendo Switch") %}
46704587
{% endif %}
input_select_remote_basement:
alias: "Harmony Basement - Start Remote activity from input select"
sequence:
service: remote.turn_on
data_template:
entity_id: remote.basement
activity: >
{% if is_state("input_select.remote_basement", "PowerOff") %}
-1
{% elif is_state("input_select.remote_basement", "Watch TV") %}
46364855
{% elif is_state("input_select.remote_basement", "Watch Basement Apple TV") %}
46272490
{% elif is_state("input_select.remote_basement", "Play Xbox Series X") %}
46854638
{% endif %}