armzilla / amazon-echo-ha-bridge

emulates philips hue api to other home automation gateways
Apache License 2.0
732 stars 168 forks source link

Echo not recognising devices I have added via the configurator page #51

Closed litfoo closed 8 years ago

litfoo commented 8 years ago

I have managed to add a device on the Hue Bridge emulator configurator page and it has been assigned with an ID, has a name and is labelled as a Switch

However, when I ask Alexa to discover my devices, it does not pick it up. - Says it can't find any devices

Anyone have any ideas as to why it is not picking it up?

thanks,

litfoo

paulwakeford commented 8 years ago

I had the same issue until I started it with --upnp.config.address= pointing to the server on which I was running the jar.

litfoo commented 8 years ago

Thanks for this paul - excuse my ignorance

on the box (xxx.xxx.x.80) i have the jar on , i am currently entering C:\echo>java -jar amazon-echo-bridge-o.2.1.jar to get the bridge running

where would I run/start with --upnp.config.address= exactly?

paulwakeford commented 8 years ago

C:\echo>java -jar amazon-echo-bridge-o.2.1.jar --upnp.config.address=xxx.xxx.x.80

For example I run mine on a server with IP 192.168.1.150 so I use

java -jar amazon-echo-bridge-o.2.1.jar --upnp.config.address=192.168.1.150

litfoo commented 8 years ago

excellent news - used the command as you described paul and it found the device i had created

thanks again!

litfoo commented 8 years ago

how would one create a custom script/bat file for this command line to auto execute on startup of a PC? java -jar amazon-echo-bridge-o.2.1.jar --upnp.config.address=192.168.1.150

can it be entered as is or what would need in order to be able to auto-execute that command above?

thanks, litfoo

jyarnell commented 8 years ago

litfoo, Here is what I use in a *.bat file that I run from the Task Scheduler:

cd C: javaw -Xmx200m -jar -Djava.net.preferIPv4Stack=true amazon-echo-bridge-0.2.1.jar --upnp.config.address=

Cheers

litfoo commented 8 years ago

thanks for this - my path is echo - so am wondering if i created a .bat file with:

cd C:\echo\ java -jar amazon-echo-bridge-o.2.1.jar --upnp.config.address=192.168.1.150

would that work?

or do I need to specify the additional info you have mentioned?

thanks, litfoo

litfoo commented 8 years ago

not having much luck with the batch file - getting error: The system cannot find the path specified

my exact path that works from command line is:

C:\echo>java -jar amazon-echo-bridge-0.2.1.jar --upnp.config.address=192.168.1.124 --server.port=8082

have tried the below in bat file but it does not execute-

cd c:\echo\ java -jar amazon-echo-bridge-0.2.1.jar --upnp.config.address=192.168.1.124 --server.port=8082

any ideas as to what I am doing wrong?

thanks, litfoo

paulwakeford commented 8 years ago

Just google 'batch file start up Windows' and follow one of the guides.

On Tuesday, 1 December 2015, litfoo notifications@github.com wrote:

how would one create a custom script/bat file for this command line to auto execute on startup of a PC? java -jar amazon-echo-bridge-o.2.1.jar --upnp.config.address=192.168.1.150

can it be entered as is or what would need in order to be able to auto-execute that command above?

thanks, litfoo

— Reply to this email directly or view it on GitHub https://github.com/armzilla/amazon-echo-ha-bridge/issues/51#issuecomment-160951963 .

litfoo commented 8 years ago

trust me.. i have been googling that all day

litfoo commented 8 years ago

can anyone offer any more advice? I have been looking online but am still not getting very far

ifuchs commented 8 years ago

Try connecting your server directly to the access point serving the Echo and then see if Discovery works.

On Dec 2, 2015, at 11:00 AM, litfoo notifications@github.com wrote:

can anyone offer any more advice? I have been looking online but am still not getting very far

— Reply to this email directly or view it on GitHub https://github.com/armzilla/amazon-echo-ha-bridge/issues/51#issuecomment-161344490.

litfoo commented 8 years ago

thanks for the comment ifuchs - that problem is fixed now - Echo can discover my devices

the outstanding issue is the correct content for my .bat file

paulwakeford commented 8 years ago

cd c:\echo\ java -jar amazon-echo-bridge-0.2.1.jar --upnp.config.address=192.168.1.124 --server.port=8082

This should be over two lines in your batch file.

cd c:\echo\

java -jar amazon-echo-bridge-0.2.1.jar --upnp.config.address=192.168.1.124 --server.port=8082

litfoo commented 8 years ago

Thanks again Paul. works like a charm