Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Echo Second Edition not discoverying HA bridge 5.0.0(synology) #810

Closed
haymaan opened this issue Nov 26, 2017 · 124 comments
Closed

Echo Second Edition not discoverying HA bridge 5.0.0(synology) #810

haymaan opened this issue Nov 26, 2017 · 124 comments

Comments

@haymaan
Copy link

haymaan commented Nov 26, 2017

hallo,
i was enjoying the Habridge(4-5-6) synology ver in combi with Alexa DOT 2,and every thing works fine,,,,
after update to Echo Second Gen it's not detecting the HA bridge,i've update the bridge to 5-0-0,and still not working ,HA bridge working fine throught compuer/mobile.....

i have Synology and use poort 8088 for the bridge,that was not a probleem with Dot 2...please help

@michaelhinchey
Copy link

michaelhinchey commented Nov 26, 2017 via email

@haymaan
Copy link
Author

haymaan commented Nov 27, 2017

thanks will try that ...

@bwssytems
Copy link
Owner

Did port 80 solve your issue?

@haymaan
Copy link
Author

haymaan commented Nov 28, 2017

No still the same problem ,are there any other with this problem??

@varguello
Copy link

varguello commented Nov 29, 2017

Exact same issue with my brand new Echo 2nd gen. Echo Dot works fine. Once Echo Dot has sent a successful request to the device my Echo 2nd gen seems to find it for a while but "forgets" it again. Habridge (5.0.0) is running on Synology DS214play on port 81.

@bwssytems
Copy link
Owner

So, I will need you to turn on trace upnp and do a discover with the 2nd gen Echo and post the entire log.

Thanks

@varguello
Copy link

Here it goes:
traceupnp.txt

@bwssytems
Copy link
Owner

I assume the 2nd gen echo is IP 192.168.5.171. It looks like it asks for the description.xml but does not use that information to go get the lights list. For fun, does the 2nd gen echo work with 4.5.6?

@haymaan
Copy link
Author

haymaan commented Nov 30, 2017

No it's even not working with 4.5.6....
thanks

@varguello
Copy link

I can confirm it too. It doesn't work on 4.5.6. The trace is basically the same (aside from different formatting). The echo 2nd gen does not query the hue lights.
traceupnp-4.5.6.txt

@bwssytems
Copy link
Owner

Well, this is not good. So they changed some interpretation on querying info from the description.xml.

@haymaan
Copy link
Author

haymaan commented Dec 4, 2017

thanks for the reply ,is there any way that can fixed ..?

@bwssytems
Copy link
Owner

It will take some research as this would be a reverse engineering endeavor.

@bwssytems
Copy link
Owner

Anyone with a 2nd gen Echo and a real philips hue that could do a trace on messages used during discover on the philips hue? There must be something in the update hue description.xml that is needed.

@chrismillsuk
Copy link

I have an echo plus and at first no devices found on auto discover from app or echo. But after doing a discover scenes on the app all my devices appear and work, the only other thing I’ve notice if I rename a device or add on I have to reboot echo to get it to notice changes.

@NorthernMan54
Copy link

NorthernMan54 commented Dec 6, 2017

@bwssytems I just started playing with this in my setup, and it appears to only respond to Hue Emulators on port 80. Have you tried that?

I'm dealing with a similar V2 issue, with the hue emulator I built into homebridge. NorthernMan54/homebridge-alexa#32

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

I have been using an Echo DOT OK with HA-Bridge for sometime, recently I also added a gen 2 Echo.
I then later decided to buy several Google Home speakers instead (Also not working with HA-Bridge either) .

So I unregistered and removed the gen 2 Echo. However seems since then, that the original Echo Dot which I plan to keep, now no longer detects any devices from the HA-Bridge.

I was running HA-Bridge on port 8087 on my Windows server, I have just tried running it on port 80 instead but the Echo Dot is still not detecting devices.

I dare not press the Forget All devices button in case none of them come back.

Tried HA-Bridge 4.5.6 and just updated it to 5.0.0.

So has temporarily adding a gen 2 Echo device to my setup, now broken the original Echo Dot from being able to add devices from the HA-Bridge ?

Thanks

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

I have managed to get my Echo Dot to discover devices from HA-Bridge now. But seems I have to do things a bit differently than before though.

Previously I was using a gen 1 Hue bridge. Two days ago I migrated to a new gen 2 Hue bridge. It now seems I have to power off the real Hue bridge before discovering devices in the Alexa app.

Also now it seems you have to set the HA-Bridge to port 80 as well. As when the bridge is set to my regular port number it does not work and Alexa will not find any new devices.

Once Alexa had discovered the new devices off the HA-Bridge I then changed the port number back from 80 to my regular port number I use and then nothing works, I wasn't able to turn on or off any devices from the Alexa app.

So seems HA-Bridge now needs to be on port 80 all the time. I cannot do this on my Windows server as I have another service on port 80.

So time to run HA-Bridge on a Raspberry Pi or use something else instead of HA-Bridge.

Also since updating to HA-Bridge 5.0.0 I am seeing loads of these messages constantly.

"The requested route [/(null)] has not been mapped in Spark for Accept: [null]"

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

Can you specify which IP address HA-Bridge should run on ?

Thinking maybe I could add a second IP address to my Windows server and have HA-Bridge run on port 80 on that secondary IP address.

Thus allowing port 80 on the primary IP address to still be used for the webserver.

EDIT:

I have added a secondary IP address to the WHS server and I can ping that OK from my mac. I then changed the HA-Bridge startup batch file to specify it should now use this new IP address etc. I have Windows Firewall turned off on the server but when I try now to connect to HA-Bridge in the browser on the new ip address I get: ERR_CONNECTION_REFUSED

@bwssytems
Copy link
Owner

@cw-kid Make sure you didn't use the web server address feature in the ha-bridge, that would prevent it from binding to the correct interface. Also, it seems that Amazon has now updated the echo software across the board to only go to port 80 from what you have shown.

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

I kinda messed up my WHS 2011 server a bit today trying to get this working.

I added a secondary IP address and I changed the HA-Bridge to start up with this new IP and also that it should use Port 80.

In IIS for the Default Website aka the WHS 2011 remote access page, Port 80 was binded to All unassigned IP addresses. I changed this to only use the first IP address of the server.

I was then able to access HA-Bridge, on the new secondary IP address and on port 80.

However I was then unable to also access the WHS 2011 RWA page via the servers first IP address on port 80 / 443. The page wouldn't load.

So I couldn't seem to get both running on different IPs but both using port 80 etc.

I have currently set everything back to how it was before I started and rebooted the server. This has fixed the WHS 2011 RWA page but HA-Bridge still isn't working.

In fact now for some reason whatever port I specify for HA-Bridge it now never seems to stay running, it goes through the motions of starting up but then just vanishes and isn't running. So think I have really broken HA-Bridge now.

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

If I rename the data folder to data.old and create a new blank data folder HA bridge starts again now, so must have messed up my original data folder ?

I've managed to use one of the backup config files and it looks like I did have the "Web Server IP Address" and "Web Server Port" fields populated.

I should leave these blank I guess and just specify the IP and Port in my startup batch file.

EDIT: Actually blanking them out kills it. So these values are auto populated with what IP and Port I specify in my startup batch file?

@cw-kid
Copy link

cw-kid commented Dec 6, 2017

I give up I cannot get HA bridge to run on port 80 on the WHS 2011 server and also have the server run its stuff on port 80 also, even with two IP addresses and messing about with bindings in IIS.

Now switching to Vera's native skill for Alexa instead as that wasn't available when I first setup HA-Bridge.

Thanks

EDIT: But still need HA Bridge for the Harmony Elite. But it doesn't matter if its not running on port 80 as it still works OK with the Harmony.

@haymaan
Copy link
Author

haymaan commented Dec 7, 2017

why closed there is no way to get it works ... ?

@happyhammers
Copy link

Any closer to finding a fix, I've tried port 80 still no luck. I can not get my gen 2 echo to see bridge. Cheers Dave

@cw-kid
Copy link

cw-kid commented Dec 7, 2017

Power off your real Hue bridge as well, I had to do that also before my Echo Dot / Alexa web app would discover devices from the HA-Bridge.

Can't comment on actual gen 2 Echo devices as haven't got one now.

@bwssytems
Copy link
Owner

@haymaan It's not closed, it is a reference to an other issue that was a duplicate that is closed

@haymaan
Copy link
Author

haymaan commented Mar 14, 2018

Still can't discover any thing....change my HAbridge from Synology to raspberry no success

@bwssytems
Copy link
Owner

@haymaan please read the trouble shooting faq referenced above and install version 5.2.0

@haymaan
Copy link
Author

haymaan commented Mar 14, 2018

Okey I'll reinstall and read it again..
Thanks will keep you updated

@Jenjis486
Copy link

Sorry,

I have done a clean installation on a Raspberry (192.168.1.11), where I installed Domoticz and HaBridge, this on port 80.
I'm still having the same problem. I attached the log file.
Maybe I have a problem with my Echo Dot 2. I buy it in the UK, but I have it working in Spain?

habridge-log.txt

@bwssytems
Copy link
Owner

@Jenjis486 I will assume the echo dot you have is on IP address 192.168.1.10. So you will need to try the steps in the Trouble Shooting faq for using the link button. It is the 5th bullet point in https://github.com/bwssytems/ha-bridge/wiki/Trouble-Shooting#q-echo-does-not-discover-my-ha-bridge

@Jenjis486
Copy link

No. The ip 192.168.1.10 in the NAS Synology, the IP of Echo Dot 2 is in the IP 192.168.1.35 and the HaBridge server in the IP 192.168.1.11.
When reviewing the log file, I have not seen this IP ask.
I do not know if it's configuration of my Echo Dot 2

@bwssytems
Copy link
Owner

@Jenjis486 Interesting, the echo dot is not even asking. This should happen. Is there some network settings to check on your router such as allowing upnp traffic?

@bwssytems
Copy link
Owner

@Jenjis486 This also needs to be considered if on a synology aptalca/docker-ha-bridge#13

@originaltacos
Copy link

Hi everybody,

I have the same problem. HA-Bridge running on a Synology NAS on port 8081 (Port 80 is already used) without docker. Try everything from the trouble shooting guide except the Port 80 because I can't. My Echo dot (second gen) can't find the bridge. I'm running version 5.2.1.

Here the logs
Log.txt

@butsify
Copy link

butsify commented Mar 18, 2018

Hi,

I run HA-Bridge 5.2.1 on a raspberry on port 80. I also tried the troubleshooting guide (IGMP off, UPNP on, 2x search,...), changed the UPNP delay, enabled the link button, recreated the device (currently, I just have one for testing) and still can't find the device in the Alexa app.

Under Manage Links, there is a Echo entry:

Echo#192.168.188.67 | 2018-03-18T20:28:20

I already removed it again, retried to find devices and the entry was there again.

Echo IP: 192.168.188.67 PI IP: 192.168.188.62

The device works in the web UI.

Logs (tried to find devices 3x this time):
habridge-log.txt

Thank you!

@Jenjis486
Copy link

I have several Philips Hue that has detected the Echo Dot 2 without any problem.

The only thing I have not managed to do is add Ha-Bridge, neither the Synology with Docker (port 8080), nor in the Raspberry (port 80).

I'm going to install a network analyzer and review the IP frames.

But reviewing the comments, I see that this problem we have enough users. In my case the Echo Dot buy it in the UK, although I use it in Spain, but configured with UK address

@bwssytems
Copy link
Owner

@Jenjis486 It seems your issue is about networking. Currently, all 2nd gen device issues are resolved. One question for you, are you trying to control a device on a remote network?

@bgeneto
Copy link

bgeneto commented Mar 20, 2018

Just to let you know guys... my problem with ha-bridge v5.2.1 and echo dot 2nd gen not working was the firewall (iptables, in my case). Even after running on port 80, upnp delay set to 100, "Use link button" turned on, allowed tcp/udp ports 80 and 50000 etc... the discovery from Alexa app didn't work. I had to allow all traffic in my subnet in order to getting the devices recognized by echo dot 2. As this imposes a (small) security risk, I still would like to know the exact rules/ports needed to ha-bridge in order to communicate successfully with Amazon echo devices... Great job anyway.

@Jenjis486
Copy link

Good morning, I continue with my tests.
I installed Ha-Bridge on a raspberry (192.168.1.11) on port 80 and I have the Echo Dot 2 (192.168.1.35). When analyzing traffic on the raspberry using tcpdump, I do not see Upnp UDP discovery frames sent by the Echo (port 1900).
Other discovery frames of other computers are seen on the network, so the network is not cutting off that traffic.
All security is disabled.
I have set the Echo factory, so I do not know what else I can do.
I have the Echo configured in the UK, with my Amazon account in the UK.
If it occurs to you that can happen to me, I would appreciate it.
Regards,

@Jenjis486
Copy link

The only thing I do is set up the computer remotely, through a tunnel from my office, but I do the same from home and it does not work either.
The Echo Dot 2 discovered a Philips Hue gateway without problem.

@bwssytems
Copy link
Owner

@Jenjis486 So, Still confused here. IS your echo in a physical location at a home in the UK while your raspberry Pi is in a location in Spain over a bridged network?

@Jenjis486
Copy link

No. Alexa has not arrived in Spain. I bought the Echo DOt 2 in the UK; but I have it installed in Spain, in the same physical location as the raspberry.
The Echo is connected by Wifi and the raspberry by cable to a router Aus RT-AC1200G +.
I have registered the Echo in the Amazon account of UK to be able to use it and in that account I have the UK address. Yesterday I was resetting factory, but I could not finish the configuration.

@bwssytems
Copy link
Owner

@Jenjis486 Please post your ha-bridge.conf

@kesribath
Copy link

kesribath commented Mar 26, 2018

Hi guys, I have faced similar problems in getting Echo Gen 2 (India) to work with ha-bridge. However, I recently stumbled onto a solution. When I reverted my ha-bridge version to v3.5.1 (which was originally installed on my pi) from v.5.2.0 my Gen 2 Echo was able to discover devices immediately. I changed the installed version a couple of times more and the behaviour has been consistent - discovery works on v3.5.1 and fails on the latest.
EDIT: I forgot to add that the hue emulation is recognised by the philips hue app in both versions of ha-bridge..

@Jenjis486
Copy link

Good afternoon,
Sorry for the delay, but I have been on vacation and I have not been able to access the system.
I enclose the configuration of the raspberry and Synology.
habridge_synology.config.txt
habridge_rpi.config.txt

Regards,

@bwssytems
Copy link
Owner

@Jenjis486 You synology habridge is running on port 8080. Try port 80. Does your Pi habridge work properly?

@Jenjis486
Copy link

No. I have the same problem as Synology. I have Ha Bridge configured on the Raspberry, connected to Dmoticz, and I can not get my Echo Dot 2 to recognize any signal

@bwssytems
Copy link
Owner

@Jenjis486 If you would please, turn on tracupnp on your Pi and post the logs.

@bwssytems
Copy link
Owner

@Jenjis486 Also, don't forget the discovery while traceupnp is on....

@sarge31
Copy link

sarge31 commented Apr 13, 2018

Is it possible to get a copy of a successful log showing a successful discovery. I don't get an devices listed in Alexa however it does allow me to control the devices added in haBridge with voice (dot 2). I'm assuming that it has discovered the devices but I just cant see them listed in Alexa. New to all this btw so apologies if I'm missing something.

@bwssytems
Copy link
Owner

@sarge31 So you do not see them in the alexa app or the alexa web page under smart home devices?

@sarge31
Copy link

sarge31 commented Apr 14, 2018

@bwssytems Correct. They do not appear in the devices under smart home (app or web page) but are definitely recognised when I tell alexa to turn them on or off. I originally thought this was how it was meant to be since there was no skill associated but from reading this thread it seems I might have an issue.

@sarge31
Copy link

sarge31 commented Apr 18, 2018

Disregard. Re-registered the dot and it now displays the devices under smart home.

@bwssytems
Copy link
Owner

I am closing this as the synology issue has been resolved. All discovery issues have been discussed as well and they all have solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests