Add support for Onkyo Audio Input selection

Hi! Very happy to hear that sound mode selection has made its way into the official Onkyo integration at last. I’d love to switch over to it fully and stop using all of my inconsistent shell_command actions, but I still need support for Audio Input switching.

These are hidden commands you can only seem to do with the network control that change the audio input for the current video input to either HDMI or Optical. Here are the shell commands I use for this currently:

onkyo_audio_selector_hdmi: onkyo --host ip --port 60128 main.audio-selector=hdmi
onkyo_audio_selector_opt: onkyo --host ip --port 60128 main.audio-selector=opt
onkyo_audio_selector_query: onkyo --host ip --port 60128 main.audio-selector=query

They do work, they’re just inconsistent and I imagine an official version would not be. I think that’s the last thing I’d need to fully ditch the custom older version of the Onkyo integration and the raw shell commands. Thank you!

Onkyo Integration: core/homeassistant/components/onkyo at dev · home-assistant/core · GitHub

Interesting use case.

Quite niche though, so definitely not a priority at this moment, but I will add it to the feature request list.

They do work, they’re just inconsistent and I imagine an official version would not be.

That depends on whether the inconsistency is the result of running it as an unsupported external command or whether it’s a bad implementation in the receiver itself. If it’s the latter, then there probably isn’t much that can be done.