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
ih8gates
(Scott Reston)
May 24, 2017, 12:23pm
2
(Use preformatted text when posting YAML. Formatting is significant.)
Tips for new HASS/forum users. Help me out - what did I miss?
Posting your configuration
When you post your configuration, we need to see that you’ve got the spacing/indentation right. Use the “preformatted text”
[image]
YAML tips
YAML can be a harsh mistress. Spaces matter, tabs can break things. Here’s a post with some tips for editing YAML with Notepad++
What Home Assistant install method should I use?
If you’re pretty technical, use whatever works for you. Docker, NAS, All-in-one, Has…
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…
ih8gates
(Scott Reston)
May 29, 2017, 9:41pm
4
I don’t have an Onkyo, so not sure. Your example doesn’t appear to correctly specify sources.
1 Like