I am developing a Smart Home Action and have managed to get my soundbar-like device to link in the Google Home app, where I can control its volume using voice commands. I do not see a volume control in the app though, like I do for other speaker-like devices such as the Google Home or my TV.
When I tap on my device in the Google Home app (linked as a test account), I just see Device Settings, and no controls at all.
This is the SYNC response for my device:
{
"requestId": "7848726039212384681",
"payload": {
"agentUserId": "robin@mccorkell.me.uk",
"errorCode": null,
"debugString": null,
"devices": [
{
"id": "ampcontrol@mccorkell.me.uk",
"type": "action.devices.types.SOUNDBAR",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.MediaState",
"action.devices.traits.Volume",
"action.devices.traits.TransportControl"
],
"name": {
"defaultNames": null,
"name": "Amplifier",
"nicknames": null
},
"willReportState": false,
"notificationSupportedByAgent": false,
"roomHint": null,
"deviceInfo": null,
"attributes": {
"transportControlSupportedCommands": [],
"volumeMaxLevel": 100,
"volumeCanMuteAndUnmute": false,
"levelStepSize": 10,
"queryOnlyOnOff": true
},
"customData": null,
"otherDeviceIds": null
}
]
}
}
This is the QUERY response for my device:
{
"requestId": "15675955780684435642",
"payload": {
"errorCode": null,
"debugString": null,
"devices": {
"ampcontrol@mccorkell.me.uk": {
"online": true,
"status": "SUCCESS",
"errorCode": null,
"on": true,
"currentVolume": 96
}
}
}
}