Cloud and Google Home - Media Player Support

Hi all,
I just subscribed to the Cloud subscription and exposed only some switches and lights.
Finally I also added one of my media players, but when it shows up in my Google Home app, it just looks like a switch with the possibility to turn on/off and brightness up and down, which I then can use for Volume control.

Can I do anything about that part, so it would act more like a Media Player, like a Chromecast or is it a matter of how it gets populated from HA by default?

1 Like

While I don’t have a solution to offer, I did at least find this in the source code (smart_home.py, within the components directory) that helps explain where this mapping is coming from.
I am going to study the Google Assistant interface docs to see if it was written this way because Google can’t understand an object that would resemble a media player, or if this was a feature the HA code’s author intended to come back and finish later, and just called them switches for the meantime.

DOMAIN_TO_GOOGLE_TYPES = {
climate.DOMAIN: TYPE_THERMOSTAT,
cover.DOMAIN: TYPE_SWITCH,
fan.DOMAIN: TYPE_FAN,
group.DOMAIN: TYPE_SWITCH,
input_boolean.DOMAIN: TYPE_SWITCH,
light.DOMAIN: TYPE_LIGHT,
lock.DOMAIN: TYPE_LOCK,
media_player.DOMAIN: TYPE_SWITCH,
scene.DOMAIN: TYPE_SCENE,
script.DOMAIN: TYPE_SCENE,
switch.DOMAIN: TYPE_SWITCH,
vacuum.DOMAIN: TYPE_VACUUM,
}