-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia_players.yaml
executable file
·106 lines (98 loc) · 2.82 KB
/
media_players.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
- platform: braviatv
host: 192.168.0.128
- platform: cast
- platform: kodi
host: htpc.lan
username: !secret kodi_username
password: !secret kodi_password
- platform: plex
- platform: roku
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: yamaha
host: receiver.lan
source_names:
HDMI1: "HTPC"
HDMI3: "Wii U"
HDMI4: "Fire TV"
- platform: universal
name: living_room_universal
children:
- media_player.kodi
- media_player.xbr55x900e
- media_player.aftn
- media_player.sony_bravia_tv
commands:
turn_on:
service: media_player.turn_on
data:
entity_id: media_player.yamaha_receiver
turn_off:
service: media_player.turn_off
data:
entity_id: media_player.yamaha_receiver
volume_up:
service: media_player.volume_up
data:
entity_id: media_player.yamaha_receiver
volume_down:
service: media_player.volume_down
data:
entity_id: media_player.yamaha_receiver
volume_mute:
service: media_player.volume_mute
data:
entity_id: media_player.yamaha_receiver
select_source:
service: media_player.select_source
data_template:
entity_id: media_player.yamaha_receiver
source: '{{ source }}'
volume_set:
service: media_player.volume_set
data_template:
entity_id: media_player.yamaha_receiver
volume_level: '{{ volume_level }}'
attributes:
state: media_player.yamaha_receiver
is_volume_muted: media_player.yamaha_receiver|is_volume_muted
volume_level: media_player.yamaha_receiver|volume_level
source: media_player.yamaha_receiver|source
source_list: media_player.yamaha_receiver|source_list
- platform: universal
name: bedroom_universal
children:
- media_player.bedroom_chromecast
- media_player.bedroom_speaker
- media_player.bedroom_roku
commands:
turn_on:
service: media_player.turn_on
data:
entity_id: media_player.bedroom_speaker
turn_off:
service: media_player.turn_off
data:
entity_id: media_player.bedroom_speaker
volume_up:
service: media_player.volume_up
data:
entity_id: media_player.bedroom_speaker
volume_down:
service: media_player.volume_down
data:
entity_id: media_player.bedroom_speaker
volume_mute:
service: media_player.volume_mute
data:
entity_id: media_player.bedroom_speaker
volume_set:
service: media_player.volume_set
data_template:
entity_id: media_player.bedroom_speaker
volume_level: '{{ volume_level }}'
attributes:
state: media_player.bedroom_speaker
is_volume_muted: media_player.bedroom_speaker|is_volume_muted
volume_level: media_player.bedroom_speaker|volume_level