googlesamples / assistant-sdk-python

Samples and bindings for the Google Assistant API
http://developer.google.com/assistant/sdk
Apache License 2.0
916 stars 320 forks source link

Turn on/off action problem #406

Open damian00716 opened 4 years ago

damian00716 commented 4 years ago

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?

Fleker commented 4 years ago

The device Id must match the registered device model ID.

damian00716 commented 4 years ago

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

Fleker commented 4 years ago

Follow the guide on registering device models and IDs.

damian00716 commented 4 years ago

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.

Tatuck commented 4 years ago

I have the same problem idk what to do

Tatuck commented 4 years ago

@damian00716 Did you solve it?