Control Denon receivers via Google Assistant

I have a Denon AVR-X3300 receiver. I would like to be able to control it with Google Assistant via the Home Assistant cloud. Right now, it shows up as a switch in Google Assistant, so all I can do is turn it off and on. I would like to be able to change input source, set volume level, etc.

Support for Sources could be added by exposing the Mode trait for media_player devices.
Adding this support will enable settings via voice commands. This setting will not be visible in the Google Home app or on Smart Displays.

Support already exists for volume control via brightness settings. This will not be visible in the Google Home app or on Smart Displays, but will work for voice commands.

so, this is pretty obnoxious.
Google requires specific names for their Modes trait. I can get this hooked up, but your sources will need to match the things in the mode settings list.

PR is here:

Enabled support for sources that match the list that Google supports.
Example command:
“Hey Google, set input source to TV on Living Room Receiver.”

Code tested against my pioneer avr.

I think this is now possible thanks to this PR:

Try “Set input on [Device Name] to [Source name]”.