ONKYO 6050 beginner & beginner with Home Assistant

What a cool amp, and the Home Assistant takes advantage of many features. I’m no expert and have not yet worked out the front-end to make things pretty, but I thought I would share what I have learned.

For starters I installed the DLNA Server and DLNA Renderer. Those are integrations. Settings — Integrations then add in the lower right corner. While you are there install the file editor as well.

Next you must add a paragraph to your config.yaml. Use the file editor to access your config.yaml.

These paragraphs are very sensitive to spacing. Mess us the indents and nothing works!

media_player:
  - platform: onkyo
    host: 192.168.0.135  --- change to your IP
    name: onkyo
    sources:
      pc: "HTPC"
      fm: "FM Radio"  --- I'm not using this right now

I set up two radio presets on the Onkyo. I did that manually on the Onkyo.
I refer to them as 89-1 and 94-1, those 2 script paragraphs show you how to use radio presets in the Home Assistant system. In addition to presets, I have 3 examples of streaming stations. The Radio Trop Rock example does not use the station database that is inside home assistant, so you can see how to add about any stream.

So here is what you need to add to scripts.yaml using the file editor.

npr:
  alias: npr-stream
  sequence:
  - service: media_player.play_media
    target:
      entity_id: media_player.living_room_speaker
    data:
      media_content_id: media-source://radio_browser/7ba4c184-fc2b-11e9-bbf2-52543be04c81
      media_content_type: audio/mpeg
    metadata:
      title: NPR 24 Hour Program Stream
      thumbnail: https://static-assets.npr.org/static/images/favicon/favicon-96x96.png
      media_class: music
      children_media_class:
      navigateIds:
      - {}
      - media_content_type: app
        media_content_id: media-source://radio_browser
      - media_content_type: music
        media_content_id: media-source://radio_browser/country/US
  mode: single
npr1:
  alias: 89-1
  sequence:
  - data: {}
    entity_id: media_player.onkyo
    service: media_player.turn_on
  - data:
      source: fm
    entity_id: media_player.onkyo
    service: media_player.select_source
  - data:
      media_content_id: 1
      media_content_type: radio
    entity_id: media_player.onkyo
    service: media_player.play_media
radio2:
  alias: 94-1
  sequence:
  - data: {}
    entity_id: media_player.onkyo
    service: media_player.turn_on
  - data:
      source: fm
    entity_id: media_player.onkyo
    service: media_player.select_source
  - data:
      media_content_id: 2
      media_content_type: radio
    entity_id: media_player.onkyo
    service: media_player.play_media
play_radioparadise:
    alias: Play_Radioparadise
    sequence:
    - service: media_player.play_media
      target:
        entity_id: media_player.living_room_speaker
      data:
        media_content_id: 'https://stream.radioparadise.com/aac-128'
        media_content_type: MUSIC
        
        
play_radiotroprock:
    alias: Play_Radiotroprock
    sequence:
    - service: media_player.play_media
      target:
        entity_id: media_player.living_room_speaker
      data:
        media_content_id: 'https://s2.radio.co/s8a49db1ee/listen'
        media_content_type: MUSIC

So once you install these updates, you should go to Settings — Automations and Scripts.
From this Home Assistant menu you should click on scripts. Now you will see the scripts that you created by modifying scripts.yaml. Over on the right side see the three dots, click there, then choose run.

BE PATIENT, it takes 30 seconds on my little Raspberry Pi to get the stream going. The radio preset actions are much faster.

Lots more to do, but it’s a pretty decent start.

2 Likes