Amazon Echo Skill EchoToEventGhost

If you have a question or need help, this is the place to be.
Post Reply
phairplay
Posts: 10
Joined: Wed Jan 18, 2017 12:02 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by phairplay » Sat Jun 10, 2017 6:50 pm

Sweet
Thanks for the uploading the settings

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Wed Jun 28, 2017 12:06 am

Working on some new features. Merging my personal version with the my shared version. Plan to redo the guide.

I am also working on a Alexa Smart Home Skill (Maybe my by mid to late July).
https://developer.amazon.com/public/sol ... -skill-api

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Sat Jul 01, 2017 6:02 am

New Version, not fully tested but is working. This is a new version of the node.js code that runs in Lambda, if anyone is interested.
https://github.com/m19brandon/EchoToEve ... oToEGv2.js

Changes:
* Added a Welcome post to EG (allows for a custom responses, I'm suggesting an event bases on the time and past event history)
* The post to EG now has 4 objects in the payload('spoken string',deviceid, sessionid, requestId)
* Rewrote some of the code, it should look much cleaner

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Thu Jul 06, 2017 1:34 am

--New version has been uploaded - First Post
--The Guide has been rewritten
--I have included a working example of the python code for your Python Script Marco.

holdestmade
Posts: 34
Joined: Thu Dec 04, 2014 2:44 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by holdestmade » Thu Jul 06, 2017 11:28 am

Assume you mean 2017 for v2.2 and not 2014 !

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Mon Jul 10, 2017 1:54 am

Fixed thanks.

phairplay
Posts: 10
Joined: Wed Jan 18, 2017 12:02 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by phairplay » Tue Jul 11, 2017 3:12 pm

Hi,
I'm not able to use "type": "LITERAL" in the UK how can I get around this?

mine is currently set up using the below

Code: Select all

{
  "intents": [
    {
      "slots": [
        {
          "name": "Action",
          "type": "Commands"
        }
      ],
      "intent": "Intentrun"
    }
but I find it to miss hear what I say a lot.

Code: Select all

Intentrun {Action}

holdestmade
Posts: 34
Joined: Thu Dec 04, 2014 2:44 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by holdestmade » Wed Jul 12, 2017 11:46 am

I found this somewhere on the internet, so thanks to whoever it was. Works fine for me in UK, using EU West.

Don't think the devices list is needed as I use more commands than that any they work fine.

Code: Select all

{
  "intents": [
    {
      "slots": [
        {
          "name": "Action",
          "type": "Commands"
        }
      ],
      "intent": "Turn"
    }
  ]
}

Code: Select all

living room light off
living room light on
dining room light off
dining room light on
kitchen lights off
kitchen lights on
porch light off
porch light on
living room lamp off
living room lamp on

Code: Select all

Turn {Action}

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Wed Jul 12, 2017 1:06 pm

Sorry about that. The type LITERAL never made it past the US. Amazon is trying to remove it completely. They recommend a Catchall type with a random generated list of words. I will need to work on that.

rdgerken
Experienced User
Posts: 85
Joined: Fri Sep 21, 2012 7:41 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by rdgerken » Sat Jul 15, 2017 2:41 pm

B - Thanks for the update! It works awesome... love being able to use the deviceid to avoid having to specify the zone now!

igvk
Experienced User
Posts: 60
Joined: Wed Jan 09, 2013 7:22 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by igvk » Sat Jul 15, 2017 7:14 pm

It's a very interesting script, and it's working.
But I would like to suggest that you get rid of LITERAL and add processing of several intents, for example:
Schema:

Code: Select all

{
  "intents": [
    {
      "slots": [
        {
          "name": "Equipment",
          "type": "EQUIPMENT"
        },
        {
          "name": "State",
          "type": "STATE"
        }
      ],
      "intent": "TurnPower"
    },
    {
      "slots": [
        {
          "name": "Display",
          "type": "DEVICES"
        }
      ],
      "intent": "SwitchDisplay"
    }
  ]
}
Utterances:

Code: Select all

TurnPower turn {Equipment} {State}
SwitchDisplay display to {Display}
Also, it would be nice to implement dialog with confirmations, as in "Do you really want to turn computer off?"

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Sat Jul 15, 2017 10:17 pm

rdgerken wrote:B - Thanks for the update! It works awesome... love being able to use the deviceid to avoid having to specify the zone now!
Thanks, I have had this feature for about a year in my personal version through the use of different skill for kitchen and bedrooms but the with deviceid being supported by Amazon it is much easier to manage.

I am also going to use the same skill code I share so I don't hold out on forums members. Not sure what other features Amazon with add.

I'm working on cleaning up the my EG Python code I use so I can share this as well. There is just a lot of code that is very customized to my home.

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Sat Jul 15, 2017 10:26 pm

Thanks Igvk, it does support follow questions. There is an example in the included py. You would need to add some logic to remember want was said last but it would only take a few lines.

I don't plan to us amazon language model. I have been using Wit.ai for years to do this and before the Echo I used ok google with autoremote for voice commands.

m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by m19brandon » Mon Jul 17, 2017 4:13 am

If anyone is interest, I have shared all my EG side code that I use with this skill here viewtopic.php?f=18&t=9745

rdgerken
Experienced User
Posts: 85
Joined: Fri Sep 21, 2012 7:41 pm

Re: Amazon Echo Skill EchoToEventGhost

Post by rdgerken » Wed Jul 19, 2017 12:15 am

Thanks for sharing your code!

I'm hoping that Amazon will release the Voice ID stuff soon. That would be another great addition, to know who is speaking the command for even more customization. For example, I'd like to limit what zones my kids control (I don't really want them turning the fireplace on or off, messing with the thermostat, etc.) It could also be useful for personalized responses.

Post Reply