Onkyo


The onkyo platform allows you to control a Onkyo and some recent Pioneer receivers from Home Assistant. Please be aware that you need to enable “Network Standby” for this component to work in your Hardware.

Configuration

To add an Onkyo or Pioneer receiver to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
media_player:
  - platform: onkyo
    host: 192.168.1.2
    name: receiver
    sources:
      pc: 'HTPC'

If your receiver has second or third zone’s available, they are displayed as additional media players with the same functionality as the main zone.

Configuration Variables

host

(string)(Optional)IP address of the device. Example:192.168.1.2. If not specified, the platform will load any discovered receivers.

name

(string)(Optional)Name of the device. (Required if host is specified)

max_volume

(number)(Optional)Maximum volume. Defaults to 80.

sources

(list)(Optional)A list of mappings from source to source name. Valid sources can be found below. A default list will be used if no source mapping is specified.

List of source names:

  • video1
  • video2
  • video3
  • video4
  • video5
  • video6
  • video7
  • dvd
  • bd-dvd
  • tape1
  • tv-tape
  • tape2
  • phono
  • cd
  • tv-cd
  • fm
  • am
  • tuner
  • dlna
  • internet-radio
  • usb
  • network
  • universal-port
  • multi-ch
  • xm
  • sirius

Example play_media script

The play_media function can be used in script to play radio station by preset number. Not working for NET radio.

# Example play_media script
#
script:
 radio1:
    alias: "Radio 1"
    sequence:
      - service: media_player.turn_on
        data:
          entity_id: media_player.onkyo
      - service: media_player.play_media
        data:
          entity_id: media_player.onkyo
          media_content_type: "radio"
          media_content_id: "1"