google-home / smarthome-local

https://codelabs.developers.google.com/codelabs/smarthome-local
Apache License 2.0
28 stars 17 forks source link

action.devices.commands.selectChannel empty json #10

Closed enccompany closed 3 years ago

enccompany commented 4 years ago

When using Local fulfillment | Actions on Google Smart Home, the device is unable to process the request because the command payload is empty

action.devices.commands.OnOff:

URI: / Method: POST Arguments: 1 plain: {"on":false} or plain: {"on":true}

{"inputs":[{"context":{"locale_country":"US","locale_language":"en"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"1"}],"execution":[{"command":"action.devices.commands.OnOff","params":{"on":true}}]}]}}],"requestId":"2684167294084643688"}

action.devices.commands.selectChannel:

URI: / Method: POST Arguments: 1 plain: {}

{"inputs":[{"context":{"locale_country":"US","locale_language":"es"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"1"}],"execution":[{"command":"action.devices.commands.selectChannel","params":{"channelNumber":"200"}}]}]}}],"requestId":"13659619173073600206"}

proppy commented 3 years ago

Let's tack this here: https://github.com/actions-on-google/smart-home-local/issues/41