Choose sources of ONKYO on Home assistant

Hello all,

I would like to request your help about how to integrate ONKYO receivers with home assistant.
At the moment I’m able to connect the Receiver by using home assistant but I’m having problem to choose different sources of the receiver on home assistant.
I have this code on the automation, but I’m not able to to choose the source. Any help?

#Automation
action:
- service: media_player.turn_on
entity_id: media_player.receiver_onkyo
- service: media_player.volume_level
data:
entity_id: media_player.receiver_onkyo
option: 3
- service: media_player.source
entity_id: media_player.video6

If someone needs, this is the configuration for ONKYO:

media_player:

  • platform: onkyo
    host: 192.168.100.13
    name: Receiver ONKYO
    sources:
    internet-radio: 3
    video2: CBL/SAT
    Video3: Game
    video4: Aux
    video6: PC
    fm: 100.3

(Use preformatted text when posting YAML. Formatting is significant.)

select_source requires you to specify the source as data. See if this works:
And you’re calling the wrong service, I think.

- service: media_player.select_source
  entity_id: media_player.receiver_onkyo
  data:
    source: PC

Experiment using the services dev tool in the HA interface.

1 Like

Thank you for your reply!
This the only thing I manage to work… Can you use more options to work with ONKYO?

action:
- service: media_player.turn_on
entity_id: media_player.receiver_onkyo
- service: media_player.volume_down
entity_id: media_player.receiver_onkyo
- service: media_player.select_source
data:
entity_id: media_player.receiver_onkyo
source: 3

On the develloper menu, not all the options works… Just volume down and up it works… :frowning:

I don’t have an Onkyo, so not sure. Your example doesn’t appear to correctly specify sources.

1 Like