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

"Press the hue button" not always working. #95

Closed
sjgoalie opened this issue Nov 17, 2017 · 20 comments
Closed

"Press the hue button" not always working. #95

sjgoalie opened this issue Nov 17, 2017 · 20 comments

Comments

@sjgoalie
Copy link

As we were discussing in another thread, I'm having trouble with some apps saying "press the button". I moved the discussion here to get out of that other thread.

Here is my log, this run I started fresh, waited a moment then ran the Smartthings app and told it to add a device. The app mentions pressing the button on the hue hub, but I never get a response from the emulator.

out_11_17.txt

@mariusmotea
Copy link
Owner

Ok, so basicaly i see the pair stop at GET /description.xml.
the pair process is made of 3 steps:

  1. ssdp discover - most complex, this pass
  2. request /description.xml - most basic step, but somehow this fail)
  3. POST to /api to register a new user. Here if the "button" is not pressed it will ask to press the button, but we dont arrive here

Can you try to run ha-bridge to see if this emulator will be detected? This way i will see the differences and made the correction.

Marius.

@sjgoalie
Copy link
Author

Yes, it sees the ha-bridge within about 2 seconds.

@mariusmotea
Copy link
Owner

Ok, i will compare the output and i will fix this.

@mariusmotea
Copy link
Owner

mariusmotea commented Nov 19, 2017

Check develop branch, i update the content of description.xml and now is almost identical with ha-bridge (only serial number is different).
The commit is this 6a35a03

Please don't forget to close this issue if is working now.

@mariusmotea
Copy link
Owner

Any feedback?

@sjgoalie
Copy link
Author

Sorry, I have guests in town for the holidays, I'll try it this afternoon

@sjgoalie
Copy link
Author

Still behaving the same, here's the latest log.

out.11_21.txt

@mariusmotea
Copy link
Owner

ok, same issue, remain stuck at description.xml . i will go forward, maybe is looking also to serial number that must have unique prefix because is generated from mac address, and if this is not the expected one, it fail.

@mariusmotea
Copy link
Owner

@sjgoalie
Copy link
Author

No change in the Smartthings app. new log...

out.11_24.txt

@subnoize417
Copy link
Contributor

Any progress on this issue? Can't get my smartthings to pick up the emulator either, no issues discovering it with other apps. I did change the MAC of the virtual machine running the emulator to start with 00:17:88 like my real bridge v2, that made no apparent difference. If there's something you need tested let me know, I'll upload logs, packet captures, anything that may help.

@mariusmotea
Copy link
Owner

Hi,

did you tested with latest commit made last days in master?

Marius.

@subnoize417
Copy link
Contributor

Yes, 100% up to date with master. Copied down the logs, as well as a wireshark capture of the smartthings hub and emulator's communication. Had to add .txt to attach it.
for reference 192.168.10.191 is your emulator, 192.168.10.138 is smartthings

wireshark between smartthings hub and emulated bridge.pcap.txt

12-6-17-1722.txt

@mariusmotea
Copy link
Owner

can you provide me the output of your real hue bridge when you perform curl -v http://x.x.x.x/description.xml ?

@sjgoalie
Copy link
Author

sjgoalie commented Dec 9, 2017

  • Trying X.X.X.X...
  • TCP_NODELAY set
  • Connected to X.X.X.X (X.X.X.X) port 80 (#0)

GET /description.xml HTTP/1.1
Host: X.X.X.X
User-Agent: curl/7.51.0
Accept: /

< HTTP/1.1 200 OK
< Content-type: text/xml
< Connection: Keep-Alive

  • no chunk, no close, no size. Assume close to signal end
    <
1 0 http://X.X.X.X:80/ urn:schemas-upnp-org:device:Basic:1 Philips hue (X.X.X.X) Royal Philips Electronics http://www.philips.com Philips hue Personal Wireless Lighting Philips hue bridge 2012 929000226503 http://www.meethue.com 00XXXXXXXX uuid:2f40XXXX-XXXX-XXXX-XXXX-00178XXXXXX index.html image/png 48 48 24 hue_logo_0.png * Curl_http_done: called premature == 0 * Closing connection 0

@mariusmotea
Copy link
Owner

i believe the output was truncated, it must be a valid xml like the one from here: https://github.com/SteveyO/Hue-Emulator/blob/master/resources/description.xml

@subnoize417
Copy link
Contributor

curl output attached
deecription.xml.txt

@sjgoalie sjgoalie closed this as completed Dec 9, 2017
@subnoize417
Copy link
Contributor

@mariusmotea mine is still not working, would you like me to open a separate issue? Wish I knew python better so I could help more and figure this out

@mariusmotea
Copy link
Owner

mariusmotea commented Dec 10, 2017

ok, open new issue. I believe i will be able to fix this with your help, because you have a real hue bridge and we can see where is the difference. So far i saw the discover is stuck at description.xml

mariusmotea added a commit that referenced this issue Dec 10, 2017
@mariusmotea
Copy link
Owner

i push a new update in develop branch to have identical description.xml like your hue bridge (except ip and serial number)

This was referenced Dec 10, 2017
xdjoshuaaz pushed a commit to xdjoshuaaz/diyHue that referenced this issue Jul 6, 2019
Support for older Tasmota Versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants