Bridge Amazon Echo to Vera, on github!

Okay, gave up on the Synology, followed the instructions for windows…

How do I do this part? You can use the Vera app on your phone to trigger discovery, or forget previously discovered devices if you have a collision.

Should have read use the Echo app on your phone, not Vera app.

Gotcha, so in otherwords, it should see it when asking it to discover devices. Guess I need to figure out what is being blocked :slight_smile:

Figured it out, added a lamp, and it discovered!

Whoopie!

Asked Alexa to turn the pole lamp on, and it worked…but Echo then said “Sorry I couldn’t reach the device or group named pole lamp” however it still turned the lamp on or off. Spoke the error both times.

Any idea on how to correct it? It is funny since it works and turns the device on and off, but still gives an error.

Is there a limit of 10 devices?

My discovery seemed to stopped wanting to add any devices as soon as it hit 10.

Anyone have more then 10?

Also How do you delete one of the devices?

I had to add each one, one at a time… Is there a faster way?

[quote=“EOppie, post:44, topic:187039”]Figured it out, added a lamp, and it discovered!

Whoopie!

Asked Alexa to turn the pole lamp on, and it worked…but Echo then said “Sorry I couldn’t reach the device or group named pole lamp” however it still turned the lamp on or off. Spoke the error both times.

Any idea on how to correct it? It is funny since it works and turns the device on and off, but still gives an error.[/quote]

I’m seeing the same exact thing as well. It’s like the Echo isn’t getting the right response back. Looking at the logs, it seems that the Java app is throwing an exception, but I don’t know how to track down the root cause.

[quote=“mkrieger, post:46, topic:187039”][quote=“EOppie, post:44, topic:187039”]Figured it out, added a lamp, and it discovered!

Whoopie!

Asked Alexa to turn the pole lamp on, and it worked…but Echo then said “Sorry I couldn’t reach the device or group named pole lamp” however it still turned the lamp on or off. Spoke the error both times.

Any idea on how to correct it? It is funny since it works and turns the device on and off, but still gives an error.[/quote]

I’m seeing the same exact thing as well. It’s like the Echo isn’t getting the right response back. Looking at the logs, it seems that the Java app is throwing an exception, but I don’t know how to track down the root cause.[/quote]

I actually don’t have this issue on my windows 8.1 with JAVA 8 update 45, alexa says OK and moves on.

EOppie:
made a fix today based on mkrieger’s bug report, v0.1.1 (jar on github). On some veras the returning content type is invalid and fails on my side. That should solve the problem of the Echo erroring out while the light works ok.

the --upnp.config.address= config is required for now because I did not include any logic to get the address(es) from the interfaces.

working on ui to explore the vera and automatically expose that to the echo.

Arm

[quote=“integlikewhoa, post:45, topic:187039”]Is there a limit of 10 devices?

My discovery seemed to stopped wanting to add any devices as soon as it hit 10.

Anyone have more then 10?

Also How do you delete one of the devices?

I had to add each one, one at a time… Is there a faster way?[/quote]
I use a chrome plugin(postman)/curl to do all interactions with the restful service
https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en

when you list all devices with GET /api/devices/
gets you a list of devices with UUIDs

you can delete the device with DELETE /api/devices/

[quote=“arm, post:49, topic:187039”][quote=“integlikewhoa, post:45, topic:187039”]Is there a limit of 10 devices?

My discovery seemed to stopped wanting to add any devices as soon as it hit 10.

Anyone have more then 10?

Also How do you delete one of the devices?

I had to add each one, one at a time… Is there a faster way?[/quote]
I use a chrome plugin(postman)/curl to do all interactions with the restful service
https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en

when you list all devices with GET /api/devices/
gets you a list of devices with UUIDs

you can delete the device with DELETE /api/devices/[/quote]

Thanks I’ll give that a try.

Anything on the limit of 10?

I’m really close to getting this up and running on my Synology NAS:

  1. Installed the Java 8 package using the instructions here: Java SE Embedded package for Synology NAS | PC LOAD LETTER
  2. SSH’ed in and started the Bridge package from github successfully
  3. Used the I’m Only Resting app mentioned in previous apps to add a device to the Synology NAS

I’m now trying to add devices via the Echo, but it can’t see them. I’ve tried opening up ports on the firewall on the NAS, but it doesn’t seem to have any effect. It seems like at least the 8080 port should be open, or I wouldn’t have been able to successfully add the device in step 3?

I know just about zero when it comes to Linux, but I’m good at following directions…

Edit:

This is the response from the Synology server when I hit it at the ipaddress:8080/api/devices:

[{“content”:[{“id”:“47cbd9da-37e5-4ebd-8044-d6fddcade02d”,“name”:“Island Lights”,“deviceType”:“switch”,“offUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=19",“onUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=19”}],“facets”:[],“totalPages”:1,“totalElements”:1,“last”:true,“sort”:null,“first”:true,“numberOfElements”:1,“size”:1,"number”:0}]

I am unsure how to open up ports on the nas but here are the ports besides 8080

1900 UDP incoming for upnp multicast discovery
50000 UDP outbound to respond to the upnp discovery

[quote=“mpalensh, post:51, topic:187039”]I’m really close to getting this up and running on my Synology NAS:

  1. Installed the Java 8 package using the instructions here: Java SE Embedded package for Synology NAS | PC LOAD LETTER
  2. SSH’ed in and started the Bridge package from github successfully
  3. Used the I’m Only Resting app mentioned in previous apps to add a device to the Synology NAS

I’m now trying to add devices via the Echo, but it can’t see them. I’ve tried opening up ports on the firewall on the NAS, but it doesn’t seem to have any effect. It seems like at least the 8080 port should be open, or I wouldn’t have been able to successfully add the device in step 3?

I know just about zero when it comes to Linux, but I’m good at following directions…

Edit:

This is the response from the Synology server when I hit it at the ipaddress:8080/api/devices:

[{“content”:[{“id”:“47cbd9da-37e5-4ebd-8044-d6fddcade02d”,“name”:“Island Lights”,“deviceType”:“switch”,“offUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=19",“onUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=19”}],“facets”:[],“totalPages”:1,“totalElements”:1,“last”:true,“sort”:null,“first”:true,“numberOfElements”:1,“size”:1,"number”:0}][/quote]

Success! Like I said, I’m not all that experienced with command lines… I had neglected to pass the UPNP parameter when I started up the jar. That appears to have been the problem.

I have this up and running on my Synology NAS - DS415+, with the Intel chip.

If this thing only integrated with Google Now, my life would be complete. ;D

[quote=“mpalensh, post:51, topic:187039”]I’m really close to getting this up and running on my Synology NAS:

  1. Installed the Java 8 package using the instructions here: Java SE Embedded package for Synology NAS | PC LOAD LETTER
  2. SSH’ed in and started the Bridge package from github successfully
  3. Used the I’m Only Resting app mentioned in previous apps to add a device to the Synology NAS

I’m now trying to add devices via the Echo, but it can’t see them. I’ve tried opening up ports on the firewall on the NAS, but it doesn’t seem to have any effect. It seems like at least the 8080 port should be open, or I wouldn’t have been able to successfully add the device in step 3?

I know just about zero when it comes to Linux, but I’m good at following directions…

Edit:

This is the response from the Synology server when I hit it at the ipaddress:8080/api/devices:

[{“content”:[{“id”:“47cbd9da-37e5-4ebd-8044-d6fddcade02d”,“name”:“Island Lights”,“deviceType”:“switch”,“offUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=19",“onUrl”:“http://192.168.2.229:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=19”}],“facets”:[],“totalPages”:1,“totalElements”:1,“last”:true,“sort”:null,“first”:true,“numberOfElements”:1,“size”:1,"number”:0}][/quote]

Mpalensh:
Yep that parameter is annoying and I will remove that in the next release.

Glad it is working

Got it all set up with my Vera Lite UI5 and on my Raspberry Pi, just waiting for the Echo to try!

Question: I also have a Phillips Hue hub at home, will they coexist with each other, or more like only one or the other will work?

Thanks.

[quote=“jeff3lo, post:55, topic:187039”]Got it all set up with my Vera Lite UI5 and on my Raspberry Pi, just waiting for the Echo to try!

Question: I also have a Phillips Hue hub at home, will they coexist with each other, or more like only one or the other will work?

Thanks.[/quote]

I have both running through the Echo, and they seem to be fine together.

Success! Borrowed an echo from a friend to try it out. Vera Lite UI5 + Raspberry Pi B+ + Amazon Echo. Big thanks to Arm!

A question now that I see how it works: It currently has implemented the “on” and “off” commands, are these all Echo would support, all Hue would support, or need more time/effort to complete the implementation? It’s more for my education, I believe I can do everything I want by creating scenes this way already.

Jeff

Mpalensh: What sort of response time are you seeing between command and action while using the Synology? I have a 2012 Marvell chip model. Trying to get a sense if this is worth it to me. I have been considering get a Zotac ZBOX-BI320-U-W2 to handle blue iris, possible openhab, and now this. Thank you for sharing your thoughts.

[quote author=mpalensh link=topic=31920.msg1#msg1 date=1430424647]
Success! Like I said, I’m not all that experienced with command lines… I had neglected to pass the UPNP parameter when I started up the jar. That appears to have been the problem.

I have this up and running on my Synology NAS - DS415+, with the Intel chip.

If this thing only integrated with Google Now, my life would be

Sent from my GT-N5110 using Tapatalk

There is also dimming of individual devices that I have yet to implement. I have been looking at integrating other HA gateways (wink, etc) and the dimming was kinda forgotten about. Let me include this in the next release. You can also fork me in github!

Cheers!
Arm

[quote=“jeff3lo, post:57, topic:187039”]Success! Borrowed an echo from a friend to try it out. Vera Lite UI5 + Raspberry Pi B+ + Amazon Echo. Big thanks to Arm!

A question now that I see how it works: It currently has implemented the “on” and “off” commands, are these all Echo would support, all Hue would support, or need more time/effort to complete the implementation? It’s more for my education, I believe I can do everything I want by creating scenes this way already.

Jeff[/quote]

@integlikewhoa

I ran into the same limitation of 10 devices. When I did a GET to my /api/devices, I see a totalElements = 12, which corresponds to the 12 devices that I added for testing.

But when I ran discover on the Echo, it could only discover 10 devices max (the first 10 that I POSTed to /api/devices). At this point, I am guessing is a limitation on Echo side.