-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitches.yaml
83 lines (83 loc) · 2.52 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
73
74
75
76
77
78
79
80
81
82
83
- platform: flux
lights:
- light.under_cabinet
mode: rgb
start_colortemp: 15000
disable_brightness_adjust: true
- platform: wake_on_lan
mac: !secret prometheus_mac_address
host: !secret prometheus_ip_address
- platform: template
switches:
watch_netflix_amazon:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Watch Netflix/Hulu/Plex/Amazon') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "31723829"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"
watch_a_movie:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Watch a Movie') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "31991234"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"
watch_tv:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Watch TV') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "31723708"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"
play_switch:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Play Switch') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "31724466"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"
play_steam_link:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Play Steam Link') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "31724685"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"
listen_to_bluetooth:
value_template: "{{ is_state_attr('remote.home_theater', 'current_activity', 'Listen to Bluetooth') }}"
turn_on:
service: remote.turn_on
entity_id: remote.home_theater
data:
activity: "Listen to Bluetooth"
turn_off:
service: remote.turn_off
entity_id: remote.home_theater
data:
activity: "-1"