Read the statement by Michael Teeuw here.
GActions CLI Login Issue
-
I had recently tried the Google Assistant SDK (https://developers.google.com/assistant … ice/python) on my raspberry pi, but when I tried to add my custom actions It prompted my to download the gaction packet (https://developers.google.com/assistant … ctions-cli) and, in order to make it work, I now have to login:
./gactions login Visit the URL to authorize access: https://accounts.google.com/o/oauth2/v2/auth?(more and more...)
If I try to visit this address and I try to login with the account I created the project with:
https://i.stack.imgur.com/hw0bY.pngI get this error massage:
https://i.stack.imgur.com/QjjAz.pngAny idea how to fix this problem?
In addition to this whenever I try the default command “Turn On” the assistant answers:
“sorry, power control is not yet supported”
How can I fix this?Thank you
-
@Lorenzo_Zappa
for last question, unless overriding custom device traits, SDK (for device) itself don’t know how to treat it. -
@Sean if I override it, do I have to push it as a custom trail and therefore use gaction CLI?
-
@Sean if I override it, do I have to push it as a custom trail and therefore use gaction CLI?
I think that is another issue with your prior login issue.For login issue;
I’m usinggactions cli
also to provide custom action to my MMM-AssistantMk2https://developers.google.com/assistant/tools/gactions-cli
my steps are here; https://github.com/eouia/MMM-AssistantMk2/wiki/gAction
Those are all I have to do.For traits issue;
You have to addtrait
to your project. (It is called ascustom trait
but I thinkpre-defined trait
makes a sense better)
https://developers.google.com/assistant/sdk/guides/service/python/extend/register-device-traits
Then response of Assistant will have some additionalaction
field like “action.devices.commands.OnOff” when you say something like “turn on”. Before the registration, Assistant will response like “I can’t do” but after, response will be something defined in your action package.
Then, you can do your job when thataction
is comming as a response.