-
Notifications
You must be signed in to change notification settings - Fork 0
/
switches.yaml
72 lines (72 loc) · 2.22 KB
/
switches.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
# switch:
- platform: template
switches:
watch_tv:
friendly_name: Watch TV
value_template: "{{ is_state_attr('remote.living_room_lake', 'current_activity', '37670100') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.living_room_lake
activity: 37670100
turn_off:
service: remote.turn_off
data:
entity_id: remote.living_room_lake
activity: -1
watch_shield_tv:
friendly_name: Watch Shield TV
value_template: "{{ is_state_attr('remote.living_room_lake', 'current_activity', '37630791') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.living_room_lake
activity: 37630791
turn_off:
service: remote.turn_off
data:
entity_id: remote.living_room_lake
activity: -1
watch_apple_tv:
friendly_name: Watch AppleTV
value_template: "{{ is_state_attr('remote.living_room_lake', 'current_activity', '16598999') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.living_room_lake
activity: 16598999
turn_off:
service: remote.turn_off
data:
entity_id: remote.living_room_lake
activity: -1
listen_to_sonos:
friendly_name: Listen to Sonos
value_template: "{{ is_state_attr('remote.living_room_lake', 'current_activity', '11490583') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.living_room_lake
activity: 11490583
turn_off:
service: remote.turn_off
data:
entity_id: remote.living_room_lake
activity: -1
# volume_mute:
# friendly_name: Volume Mute
# value_template: "{{ is_state_attr('remote.living_room_lake', 'current_activity', '11490583') }}"
# mute:
# service: remote.send_command
# data:
# entity_id: remote.living_room_lake
# device: 14782575
# command:
# - Mute
# unmute:
# service: remote.send_command
# data:
# entity_id: remote.living_room_lake
# device: 14782575
# command:
# - Unmute