Playing around with Amazon Echo (technical interface discussion)

Smart Tiles ? Don’t know what that is. Curious now…

There is still no integration between Smart Things and github as far as I know so yes you would have to install the code into the ide to get updated version. I just meant that anyone who was using my repo wouldn’t have to find @tgauchat 's repo to get dimming if I pull the change back into my version.

http://SmartTiles.click

it’s only the best part of ST…

1 Like

Oh I knew about that, didn’t remember the name. I thought you meant an official ST feature :smile:

This thing seemed too complicated to me in the past but no I am looking at it and they have video feed…I want that !!!

Update: Now I remember why I didn’t like this. Not sure I like authorizing third party to control my ST devices. Especially door controls etc.

The third party is you. :grinning:

1 Like

Thanks so much @Ron I got the bridge up and running without too much difficulty on a Mac. I did have to point directly to Java 8 in the startEchoStBridge.sh script.

One thing I did notice was that anyone from the outside who does a port scan will get the 8080 base web page with the “Display Configured Devices” link. Once you hit that link you get the device list which includes the on and off URLs complete with auth codes. Makes it very easy for hackers to start toggling your lights on and off in the middle of the night! :smile: Glad my nest thermostat is not on there!

I wonder if we could add a password to the base webpage or a toggle script that would turn those off after we have used them.

(disabling port forwarding on the router after config as you suggest is a good thing to do!)

2 Likes

Yes, that’s why I suggested the disable. I was considering adding password but honestly after setting it up and disabling I have not had to re-enable unless I add a switch. So not my priority project :smile:

This was coded in spring boot which has a security component. I need to look into how that is configured. Of course the best security is to just keep this behind your firewall and only open for Oauth when needed.

1 Like

I have the amazon echo setup to control my lights, and thought others might like to know how I got it done.

https://onedrive.live.com/redir?resid=DFED04EBC22940EA!295710&authkey=!AIxrMP4tI3tqHog&ithint=video%2Cmp4

The
echo doesn’t know how to directly control the LimitlessLED lights, but
it DOES know how to control the Philips Hue. So what I use is a chain
of commands that goes like this:

Amazon Echo -> Armzilla’s echo - ha bridge -> Domoticz Server -> LimitlessLED Bridge

Armzilla’s
echo-ha bridge fakes Philips hue lights, and allows you to send rest
commands to another server (in my case the Domoticz server) that knows
how to send stuff onto the limitless LED bridge, and presto voice
control

The Bits
Armzillas Echo-HA bridge https://github.com/armzilla/amazon-echo-ha-bridge/releases
Domoticz Home Control Server http://www.domoticz.com/

Hope this helps someone

-Qyiet

Amazon Echo and LimitlessLED demo on youtube… https://www.youtube.com/watch?v=X-SfZXhr-Uo&feature=youtu.be

thanks
to Ryan, using Amazon’s new Skills API for the Echo and he has managed
to control them using some Ruby Gems and a Sinatra Server.

https://github.com/hired/limitless-led to command lights

https://github.com/damianFC/alexa-rubykit to simplify responses for Echo

http://www.sinatrarb.com/intro.html to catch and parse HTTP POSTs

http://ruby-doc.org/stdlib-1.9.3/libdoc/webrick/rdoc/WEBrick.html for HTTPS wrapper

So i have never played around with python or Java before, I am using @Ron code for my Hue emulator but never looked into it really. I want to play around with some Amazon Dash units and try and make them control things in my house but to do it i need to write some code. Can anyone reccomend a editor for jave for osX.

I had found this Skill:

which was made to send Rest API urls for Homeseer. I was able to manipulate it enough to send urls to Eventghost on my Windows PC to control my Media Center PC.
I also use the Hue Emulator to turn the TV on and off, then the Skill to change the channels. So I can say:
Alexa, turn on the TV (Hue Emulator)
Alexa, tell the TV to goto channel 13 (Amazon Skill)

The Echo is my new favorite device. I am looking for more stuff to do with it :smile:

Combine this with @zpriddy’s Skill for SmartThings makes this geek very happy.

Scott

2 Likes

I’m sure Amazon will be sending out an email for this shortly, but I just saw this added to the What’s New section for the Echo.

Use Alexa skills on Echo

Want Amazon Echo to tell you about upcoming concerts in your city or play math games? You can now turn on skills, which are voice-driven capabilities created by developers that expand Alexa’s capabilities. To use an Alexa skill, you simply need to enable it in the Amazon Echo App, and then you’re ready to try it out.
To get started, open the Amazon Echo App, and then select Skills. Find the skill you’re interested in, and then select Enable. After you turn on the skill, say the example phrases in the app to Alexa to use the skill. You can also see more details about the skill in the app.

2 Likes

This is what I just got:

Want to control your lights and switches at home without even lifting a
finger? Now you can control even more devices using your voice. Echo has
added Wink-enabled Leviton and Lightify products to the growing collection of compatible lights, outlets, and switches from WeMo, Philips Hue, and more.

We also wanted to give you an early look at a few of the third-party
Alexa skills that are starting to come out of the pipeline. These are
from third-party developers using our software development kit to make
Alexa better for you. They are still being polished, but we thought
you’d enjoy taking a look at StubHub, Math Puzzles, and Crystal Ball.

To use these new skills, you will need to enable them in the Echo App.
Simply open the app and tap on “Skills” in the menu, and then press
“Enable” for the skill you want to use. For example, enable StubHub, and
then try: “Alexa, ask StubHub what is happening in Seattle this
weekend.” Enjoy.

Finally, with the anniversary of Woodstock this weekend, here is a Prime
Playlist to try—just ask: “Alexa, play the Prime Playlist Woodstock Revisited.” Speaking of playlists, a big thanks to @IamSubstantial for sharing his favorite playlist. Share what’s on your summer playlist on twitter using #AmazonEcho.

2 Likes

Im currently seeing if Amazon will approve my Skill for smartthings! :slight_smile:

Ill keep you guys updated. But in the meantime - You can all try it out at https://alexa.zpriddy.com

5 Likes

@zpriddy Are there any options for voice announcements with your app or does Amazon limit you to voice input and responses only? Right now I configuration that is more complex than I’d prefer to get announcements through the Echo like when mail has arrived, if a door opens after a certain hour, etc. It would be nice if Big Talker could interface directly with whatever you’re doing to use Echo as a voice output instead of needing to have Sonos or one of the DLNA interfaces (I’m using foobar2000).

Adding @rayzurbock for visibility also.

Hey guys, I had an idea for direct IFTTT integration rather than the cumbersome options Amazon provides. I noticed someone on Github (mefogle) had a similar idea so I made some customizations to allow direct voice commands sent to the IFTTT maker channel. This allows you to say something like “Alexa, tell my house to turn on the TV” or “Alexa, tell my house to turn on the lights” which would pass “turnonthetv” and “turnonthelights” to IFTTT Maker channel respectively which you can then pass to whatever channels you wanted.

I do still use the Hue Bridge for simple light commands as that flows better, but having the entire IFTTT channel library at your fingertips with simple commands is working out pretty well for everything else. All you have to do is sign up for ASK dev account and plop the code in AWS Lambda or your own server and you’re off to the races. I hope someone finds this useful.

Github Code:

Thanks go out to mefogle @ Github for the initial code.

Here’s another example of a direct IFTTT integration that’s in the works. Check out http://echottt.com/.

Side note - having Google Alerts set up for “Amazon Echo” and “SmartThings” has really started to limit my productivity at the office.

2 Likes

Yeah the IFTTT maker channel is really powerful. That’s how Beecon+ is doing its IFTTT integration. Since Smartthings already has an IFTTT channel this should be trivial provided there’s a trusted source to host the skill.

This is actually really similar to @Will_Poirier 's method for using hey Siri to voice control smartthings, except that his is just a text message to IFTTT. Will is the one who pointed out that in IFTTT, the same trigger can be used with multiple events, which makes it really powerful. You could have an event called “good morning” and use it to trigger 15 different smartthings events from a single voice command. :sunglasses:

Now it’s official!

You can now control even more connected home devices with your voice using Amazon Echo. In addition to controlling lights and switches from Belkin WeMo, Philips Hue, and Wink, Echo now supports Samsung SmartThings—including the new Samsung SmartThings Hub, the SmartThings Outlet, and the Lightify Smart Connected LED. A full list of Echo compatible devices can be found here.

To get started with SmartThings, connect your devices to your home Wi-Fi and name them in their respective app. Then say, “Alexa, discover my appliances.” After Echo’s confirmation, just ask:

“Alexa, turn on the television.”
“Alexa, turn on the stereo.”
“Alexa, turn off the lamp.”
“Alexa, turn on the porch light.”

Works great with virtual switches too, so we now have a natural voice interface to anything with a “that” IFTTT channel, using SmartThings as the “man in the middle.”