Charmed Quark Systems, Ltd. - Support Forums and Community
New Amazon Echo Support - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: New Amazon Echo Support (/showthread.php?tid=9423)



New Amazon Echo Support - Dean Roddey - 07-28-2015

I updated post 4 with an action example as well.


New Amazon Echo Support - Dean Roddey - 07-28-2015

OK, I updated the first post with a linke to a 4.7.5 to try.


New Amazon Echo Support - Deane Johnson - 07-28-2015

Will there be a CQC/Echo For Dummies published so that non-techies like me can use it?


New Amazon Echo Support - jkmonroe - 07-28-2015

OK, I got her replying to my name. She read me the text that is in the javascript I entered into Lambda.

Now I guess it's time to start making things happen!


New Amazon Echo Support - jkmonroe - 07-28-2015

I keep getting "The CQC handler for this device failed. Check with your CQC administrator."

Is that you? :-D


New Amazon Echo Support - Dean Roddey - 07-28-2015

I assume you really mean "The CQC handler for this COMMAND...", right?

That means that the action or macro wasn't found or caused an error in some way. Check the logs to see what showed up. That means the msg got to CQC, but whatever you indicated in the config file to handle it didn't work or wasn't found.

It will also, for now, unconditionally log the values it got from the AWS server so you see those as well for any msgs that make it to you.


New Amazon Echo Support - jkmonroe - 07-29-2015

yeah.

i thought i added things correctly, but i guess not.

where do i put the 'action' command?

Code:
System::LogMsg
    P1=Home Theater GAct
    P2=0
    P3=Intent: %(LVar:CQCActParm_1), Key: %(LVar:CQCActParm_2), Parms: %(LVar:CQCActParm_3)
    P4=Status

GlobalVars::SetVariable
    P1=GVar:EchoReply
    P2=The home theater has been started



New Amazon Echo Support - Dean Roddey - 07-29-2015

That is the action. That's invoked in response to the Echo command. Just do whatever you want to do in there. If you want to return text, put it into the EchoReply variable.

If you want to do something based on the key that was triggered, it's the 2nd parameter that gets passed to the action.


New Amazon Echo Support - Bugman - 07-29-2015

Dean Roddey Wrote:That is the action. That's invoked in response to the Echo command. Just do whatever you want to do in there. If you want to return text, put it into the EchoReply variable.

If you want to do something based on the key that was triggered, it's the 2nd parameter that gets passed to the action.

Dean: Not clear on this. Does this become a Global Action? As jkmonroe asked earlier on "where do i put the 'action' command?". So confused here, where does this get placed so it can monitor the incoming message. Doesn't make sense to put it in a typical action location (e.g. button press, etc) which is only actuated on a press.


New Amazon Echo Support - Dean Roddey - 07-29-2015

Oh, it's a global action. The path you indicate in the configuration file is the path of a global action you create to handle anything that matches the spoken phrases that that global action entry in the file indicates it handles. So the

/User/Echo/Home Theater

in my example file is the path to a global action.