Closed jefhil closed 6 years ago
You've tried the other samples, like for Python and C++? When you created your device model, did you register any device actions?
Thanks for the response. I get the same behavior for python. C++ I did so long ago (and on diff machine) that I cant remember.
This project was initially done when I was working my way thru a sample, so I added the “blink
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Nick notifications@github.com Sent: Friday, October 5, 2018 1:20:57 PM To: googlesamples/assistant-sdk-nodejs Cc: jefhil; Author Subject: Re: [googlesamples/assistant-sdk-nodejs] Using real device loses all audio (#3)
You've tried the other samples, like for Python and C++? When you created your device model, did you register any device actions?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/googlesamples/assistant-sdk-nodejs/issues/3#issuecomment-427438415, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Al74t_wz82va2ZQYqIjd5JQUspAU6lU1ks5uh5T5gaJpZM4XHMnv.
So, i redid this whole process, created a new project, with new device models and devices and it worked fine. I tested builtin traits and added a couple of custom actions via the gactions tool and that worked too. Then, i realized that I was using my own account to grant permission to my device. So, I did it all over again, this time using a service account. I had to upgrade to google-auth-library 2.0 but i eventually got it all to work EXCEPT for device actions. It ignores the built in traits like dock and start/stop on/off and for 'color red' says it needs permission. any ideas? heres my action console screen: Linked device models . TPR Series Product name TPR Series Manufacturer name OhmniLabs Model Id ohmnilabstpr-tpr-series-9xw6v5 Device type Light Supported traits Brightness , ColorSpectrum , Dock , OnOff , StartStop
This works fine if I use it (typing "time" as the query) without a real device, namely: this.deviceModelId = 'default'; this.deviceInstanceId = 'default'; if I fill in a 'real' device that I registered in the action console as a speaker, I get no output -- neither text nor audio -- just a vacuous device_action. This happens in every version of the assistant sdk I have tried. Do I need to set something on my device definition? You'd think being a speaker would be enough. Attached are two logs showing output.
Bad.LOG:
GOOD.LOG