mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Add harmony remote example to universal media player (#13925)
This commit is contained in:
parent
2a9de6d276
commit
e9cebe5c38
@ -231,3 +231,45 @@ automation:
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
#### Harmony Remote Example
|
||||
|
||||
The complete configuration is:
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
media_player:
|
||||
- platform: universal
|
||||
name: Media Room TV
|
||||
attributes:
|
||||
state: remote.alexander_down_guest
|
||||
source_list: remote.alexander_down_guest|activity_list
|
||||
source: remote.alexander_down_guest|current_activity
|
||||
commands:
|
||||
turn_on:
|
||||
service: remote.turn_on
|
||||
entity_id: remote.alexander_down_guest
|
||||
turn_off:
|
||||
service: remote.turn_off
|
||||
entity_id: remote.alexander_down_guest
|
||||
volume_up:
|
||||
service: remote.send_command
|
||||
entity_id: remote.alexander_down_guest
|
||||
data:
|
||||
device: Receiver
|
||||
command: VolumeUp
|
||||
volume_down:
|
||||
service: remote.send_command
|
||||
entity_id: remote.alexander_down_guest
|
||||
data:
|
||||
device: Receiver
|
||||
command: VolumeDown
|
||||
select_source:
|
||||
service: remote.turn_on
|
||||
data_template:
|
||||
entity_id: remote.alexander_down_guest
|
||||
activity: '{{ source }}'
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user