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 - dlmorgan999 - 12-14-2016

Yup - that's why I asked. Since it doesn't cost anything to get it, I'll probably try it anyway. I just had lunch with a friend who has developed some stuff on AWS, and he's pretty sure Let's Encrypt will be a CA that Amazon trusts.


New Amazon Echo Support - dgage - 12-14-2016

Check page 46 (post 451-on) as there is some discussion of setting up SSL using StartSSL, which at least a couple have setup, used, and verified to be working with the Amazon Echo service. Free as well.


New Amazon Echo Support - dlmorgan999 - 12-15-2016

I have most everything working (I found that the local Best Buy had the Dots in stock, so I cancelled the Amazon order and bought them at BB :-)). I got all the AWS stuff done, and I have the config file created. I got it loaded successfully, and I issued a query command. I got a response that "CQC has done that". I looked in the logs and everything looks correct. The only issue is that the global action isn't running.

I'm going to keep reading this thread, but can anyone suggest where I might look or how to troubleshoot this? I'm sooooooo close!


New Amazon Echo Support - Dean Roddey - 12-15-2016

What is the action doing? If it was supposed to return some text, you have to put into the appropriate global variable. If not, you'll get that generic reply.


New Amazon Echo Support - dlmorgan999 - 12-15-2016

Initially, I just had it doing a text return. Then I added a device write. Here is what my action does:

Code:
Devices::FieldWrite
    P1=OmniProII.LGHT#Dim_Mstr_Bed_Lts
    P2=0
    P3=True

GlobalVars::SetVariable
    P1=GVar:EchoReply
    P2=$(Weather.WEATH#FCCurrent)

I don't get a response back, and the lights don't get shut off.


New Amazon Echo Support - Dean Roddey - 12-15-2016

What does your config file look like?


New Amazon Echo Support - dlmorgan999 - 12-15-2016

This is the config file:

Code:
EchoConfig
    MyKey=*****
EndEchoConfig

RunMap
EndRunMap

SetMap
    Action=\User\Echo\Lights
        Lights
    EndAction
EndSetMap

QueryMap
    Action=\User\Echo\Weather
        Today, Weather Forecast, Today's Weather, Today's Forecast
        Tomorrow, Tomorrow's Weather, Tomorrow's Forecast
    EndAction
    Action=\User\Echo\Test
        Test, testing
    EndAction
EndQueryMap

Also, here is a typical log entry:

Code:
12/15 16:14:23-CQC-MASTER, CQCWebSrv, CQCWebSrvWorkerThread1
{
    CQCWebSrvC, CQCWebSrvC_EchoHandler.cpp.809, Status/App Status
    Key=*****, Intent=CQCQueryIntent, Phrase=today, Value=
}



New Amazon Echo Support - Dean Roddey - 12-15-2016

And you don't see any subsequent error about the action running or not? Change the action to be just a System::LogMsg command.


New Amazon Echo Support - dlmorgan999 - 12-15-2016

After nearly tearing my hair out, I figured out what was going on, and it had nothing to do with Echo. I don't know if this is intended, but in the v5 Admin UI, when you click Save after editing an action, it isn't really saved yet. You also have to type Ctrl-S, or use the File menu. That's not very intuitive.


New Amazon Echo Support - Dean Roddey - 12-15-2016

Which save are you clicking?