Hi all,
I’m trying to create a universal media_player to drive my old Rotel RSP980 via Broadlink IR.
I created an helpler to support the state of the mute button and another helper to support the source selection.
Here is the relevant config:
media_player:
- platform: universal
name: Rotel RSP-980
unique_id: rotel_rsp980
device_class: receiver
commands:
turn_on:
service: script.turn_on
data:
entity_id: script.1602356187424
turn_off:
service: script.turn_on
data:
entity_id: script.1602444332250
volume_mute:
service: script.rotel_toggle_mute
volume_up:
service: remote.send_command
data:
command: >-
b64:JgBYAAABJ5UROBI4EhMSFBISEhQRFBE4EjgTEhEUExISOBITExIRFBMSEzcROREUEjgRFBITEhMSNxMSEhQSNxIUETgSOBI4EwAFjwABJ0oUAAxYAAEoSRQADQU=
num_repeats: 2
target:
entity_id: remote.rmproplus_soggiorno_remote
volume_down:
service: remote.send_command
data:
command: >-
b64:JgBYAAABKJQTNxM3EhMTExEUERMSFBE4EzcRFBITEhMRORITERQRFBI4ETkROBITEzcSExIUERQSEhIUERQROBIUETgSOBE5EgAFkAABJ0oTAAxZAAEoSRIADQU=
num_repeats: 2
target:
entity_id: remote.rmproplus_soggiorno_remote
media_previous_track:
service: remote.send_command
data:
command: >-
b64:JgBYAB4cOzo7OjsdHjk8HB4dHhweOh4AC48eHDw5PDk8HB45Ox0fHB4cHzkeAAuOHh07OTw5PBwfOTscHxweHB85HwALjR4dOzo7OjscHjo7HR4cHh0eOR4ADQU=
target:
entity_id: remote.rmproplus_soggiorno_remote
media_play:
service: remote.send_command
data:
command: >-
b64:JgCEAB8cHhwfHDs5PBwfOR4cPDk8OR8AC40fHB4cHxw8OTscHzkfHDs5PDkfAAuNHxweHR4cOzo7HR45Hh07Ojs6HgALjx4cHxweHDw5PBweOR8cPDk8OR4AC44eHB8cHhw8OTwcHjoeHDw5PDkfAAuNHh0eHB4dOzk8HB46Hhw8OTw5HgANBQAAAAA=
target:
entity_id: remote.rmproplus_soggiorno_remote
media_next_track:
service: remote.send_command
data:
command: >-
b64:JgCEAB8cPDk7OjscHzk8HB4cHxweHB8AC6seHDw5PDk8HB45PBwfHB4cHxsfAAurHhw8OTw5Ox0eOjscHh0eHB4dHgALrB8bPDk8OTwcHzk7HB8cHhwfHB4AC6sfHDs6Ozk8HB85PBweHB8cHhwfAAuqHxw7Ojs6OxwfOTsdHhweHR4cHgANBQAAAAA=
target:
entity_id: remote.rmproplus_soggiorno_remote
media_pause:
service: remote.send_command
data:
command: >-
b64:JgBuAB4dOzk8OToeHjoeHDwcHh0eHB4AC6wfHDs6Ozk8HB85Hxs8HB8cHhwfAAuqHxw8OTw5PBsfOR8cOxwfHB4cHwALqx4cOzo7OjsdHjkeHTsdHhweHR4AC6weHDw5PDk8HB45Hxw8HB4cHxweAA0FAAAAAAAAAAAAAA=
target:
entity_id: remote.rmproplus_soggiorno_remote
source_list:
- Phono
- CD
- Tuner
- Video1
- Video2
- Video3
select_source:
service: script.rotel_select_source
data:
source: "{{ source }}"
attributes:
state: switch.stereo_switch
source: input_select.rotel_source
is_volume_muted: input_boolean.rotel_mute
The problem is that in the media_player is missing the sourc button and the supported_features misses the 2048 value.
Any clue?