Hello,
I am still quite new to Home Assistant.
I use a Harmony Hub to control my TV and Nvidia Shield. For this purpose I have created a Unisversal Media Player and configured it accordingly.
I have the media player in HomeKit as accessory.
The player also appears in Home but the mute, play and stop button does not appear.
Maybe someone has an idea?
Here is my config:
HomeKit
homekit:
- port: 55704
name: Home Assistant Bridge
mode: bridge
filter:
include_entities:
- switch.mute_harmony_hub
- port: 55604
name: Harmony Media Player
mode: accessory
filter:
include_entities:
- media_player.harmony_media_player
entity_config:
media_player.harmony_media_player:
feature_list:
- feature: on_off
- feature: play_pause
- feature: play_stop
- feature: toggle_mute
Remote
remote:
- platform: harmony
name: Harmony Hub
host: 192.168.178.35
activity: Shield
Media Player
- platform: universal
name: Harmony Media Player
attributes:
state: remote.harmony_hub
source_list: remote.harmony_hub|activity_list
source: remote.harmony_hub|current_activity
is_volume_muted: input_boolean.harmony_hub_muted
commands:
turn_on:
service: remote.turn_on
entity_id: remote.harmony_hub
turn_off:
service: remote.turn_off
entity_id: remote.harmony_hub
volume_up:
service: remote.send_command
entity_id: remote.harmony_hub
data:
device: "Samsung Verst\u00c3\u00a4rker"
command: VolumeUp
volume_down:
service: remote.send_command
entity_id: remote.harmony_hub
data:
device: "Samsung Verst\u00c3\u00a4rker"
command: volume_down
volume_mute:
service: switch.toggle
entity_id: switch.mute_harmony_hub
select_source:
service: remote.turn_on
data:
entity_id: remote.harmony_hub
activity: '{{ source }}'
Switch
# Input_boolean_mute"
mute_harmony_hub:
friendly_name: "Mute Harmony Hub"
unique_id: "mute_harmony_hub"
value_template: "{{is_state('input_boolean.harmony_hub_muted','on')}}"
turn_on:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.harmony_hub_muted
- service: remote.send_command
data:
entity_id: remote.harmony_hub
device: "Samsung Verst\u00c3\u00a4rker"
command: Mute
turn_off:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.harmony_hub_muted
- service: remote.send_command
data:
entity_id: remote.harmony_hub
device: "Samsung Verst\u00c3\u00a4rker"
command: Muteor paste code here
customize
customize:
media_player.harmony_media_player:
device_class: tv
Entity
Many thanks in advance