![]() |
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 - 08-04-2015 Actually I think that CQC works well. It's three syllables that are very different, without any trailing off ending and with sharp initial consonants. New Amazon Echo Support - potts.mike - 08-04-2015 kblagron Wrote:Could you not do a Query Command in a global action? It would seem to me you could just just set GVar:EchoReply in the global action with "The current temperature is (String Value of your driver's temperature) and not have to use a macro. Is this a way to get Alexa to speak to you? Say if a window opens can we have Alexa announce that? If so what would that code look like? New Amazon Echo Support - Dean Roddey - 08-04-2015 AFAIK, it's not a text to speech device, it has to initiate the exchange. New Amazon Echo Support - Bugman - 08-04-2015 Dean Roddey Wrote:Yeh, you can do a macro or global action for any of them. Ah, light goes on. So you can use Action and Macro within the SetMap or QueryMap sections with ability to pass parameters? I just tried one but haven't built in the parameter portion in the action. I got "parms: seventy five". Is this parameter 1? Or is it two parameters (seventy, five). Trying to pass 75 to my thermostat. New Amazon Echo Support - Dean Roddey - 08-04-2015 You can have multiple action and/or macro entries within each map, as suites your needs, though of course you have to avoid ambiguous phrases, since if you use the same phrase within multiple entries in a given map, one will win and another lose. There's only one parameter, which is the whole variable bit from the utterance. I.e. the part that falls into the replacement pattern in the utterance. So it would just be one value, since CQC would have no way to know how you might want to break them up. New Amazon Echo Support - Dean Roddey - 08-04-2015 I updated the sample configuration file in the first page to include two different handlers in the Set map, just to make it more clear. One runs an action, one runs a macro. New Amazon Echo Support - Bugman - 08-04-2015 Bugman Wrote:Ah, light goes on. Ok. Got it to work by doing an If on the passed text number (seventy five) and just looking for that and writing a number to a device field. Is there any nifty CQC stuff that takes a text version of a number and makes it into an integer? Based on the mechanism below, I would have to stack a bunch of ifs to make this work, so looking to see what I don't know about CQC (which is a lot). Thanks. System::LogMsg P1=Temp GAct P2=0 P3=%(LVar:CQCActParm_1), Key: %(LVar:CQCActParm_2), Parms: %(LVar:CQCActParm_3) P4=Status If System::Equals P1=%(LVar:CQCActParm_3) P2=seventy five P3=Case Devices::FieldWrite P1=HVAC_Sensors.Downstairs_CoolSetpoint P2=75 P3=True End New Amazon Echo Support - Dean Roddey - 08-04-2015 In previous experiments, I'd seen it actually send a number, but maybe not. If it doesn't then, yeh, something available to do that would be very useful, but it might be quite a bit of grunt work to create such a thing. There's probably some clever way to do it, I'd have to poke around for some ideas. There again, a shortcoming of the way the Echo works in a way. I could make it provide a number, but only through a special intent or phrase in the set intent that indicates it takes a number, in order to differentiate it from a phrase that doesn't take a number. So again, unless you are doing very targeted and specialized syntax, it's difficult to really create a natural syntax that is unambiguous. New Amazon Echo Support - Bugman - 08-04-2015 Dean Roddey Wrote:In previous experiments, I'd seen it actually send a number, but maybe not. If it doesn't then, yeh, something available to do that would be very useful, but it might be quite a bit of grunt work to create such a thing. There's probably some clever way to do it, I'd have to poke around for some ideas. Dean, not a biggee, just thought there might be something out there already I missed. Trivial to code what I have in mind. Back to 5.0 for you!! New Amazon Echo Support - monetteboy - 08-04-2015 Looking for some suggestions... When telling echo to load the config file it responds saying the CQC config file couldn't be loaded and to contact the CQC admin. I can see the skill in the amazon portal and if I ask echo "ask control" it responds with the welcome to CQC message. I placed a test html file on the webserver and it loads from outside the LAN so the webserver port appears to be open and responding. Any tips on where to look next? |