assistant-sdk-python icon indicating copy to clipboard operation
assistant-sdk-python copied to clipboard

Turn on/off action problem

Open damian00716 opened this issue 5 years ago • 6 comments

I have a problem with the on / off action configuration from the guide from Google (https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands).

The assistant works on the button and I did everything according to the guide, but after running "python pushtotalk.py" an error appears

(env) pi@raspberrypi:~/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/grpc $ python pushtotalk.py Traceback (most recent call last): File "pushtotalk.py", line 423, in <module> device_handler = device_helpers.DeviceRequestHandler(device_id) NameError: name 'device_id' is not defined

but when I add the device_id = 'id' line to pushtotalk.py, no error occurs, but nothing else happens.

Can someone help me?

damian00716 avatar May 27 '20 13:05 damian00716

The device Id must match the registered device model ID.

Fleker avatar May 27 '20 15:05 Fleker

What should I do exactly? The command googlesamples-assistant-pushtotalk normally works for me and the assistant answers the questions.

damian00716 avatar May 27 '20 19:05 damian00716

Follow the guide on registering device models and IDs.

Fleker avatar May 27 '20 19:05 Fleker

Follow the guide on registering device models and IDs.

I did everything from the beginning. I still have the same problem.

20200528_194533

Still nothing is happening, and I still need to enter the device id to file.

damian00716 avatar May 28 '20 17:05 damian00716

I have the same problem idk what to do

Tatuck avatar Sep 16 '20 16:09 Tatuck

@damian00716 Did you solve it?

Tatuck avatar Sep 16 '20 20:09 Tatuck