Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get device_action from AssistResponse #72

Open
maimang9 opened this issue Mar 11, 2020 · 6 comments
Open

How to get device_action from AssistResponse #72

maimang9 opened this issue Mar 11, 2020 · 6 comments

Comments

@maimang9
Copy link

First i have create some action for my device model with dialogflow.
then I run run_assistant_text and config with my device model id & device instance id,
when enter my "training phrases" of the action , assistant response only "text response" of the action, no device_action response.

how can i get device_action response from assistant?

@Fleker
Copy link
Collaborator

Fleker commented Mar 11, 2020

You cannot send a device action from a conversational action. A device action is triggered directly, without having to go through the "talk to" invocation.

@eron93br
Copy link

@Fleker , does this implementation have some bult-in actions like the seven (brightness, colorSpectrum, colorTemperature, dock, OnOff, StartpStop, getTemperature) from Python implementation?

I'm trying to use this cpp implementation as same the Python SDK on Raspberry Pi.

@toymak3r
Copy link

@maimang9 any progress with this issue?

@maimang9
Copy link
Author

@toymak3r currently have no progress. i think device & device instance's action maybe not configure correctly?

@toymak3r
Copy link

I'm not sure if the problem are device/device action configuration. We have the same problem even using same device with same id/model_id that works with python sdk version.

@toymak3r
Copy link

toymak3r commented Mar 25, 2020

@maimang9 after few days working on different part of code i returned today and got actions on response with CPP SDK example, i do not known why the Built-in Device Actions do not works but with custom actions worked as we needed.

use:
response.device_action().device_request_json()

do not forget to change this values:
kDeviceModelId and kDeviceModelId

if you do not already registered your device follows instructions:
here and here

Here the useful link: https://developers.google.com/assistant/sdk/device-actions-overview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants