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

How to control from Android app #39

Open
Slasherss1 opened this issue Jan 9, 2018 · 2 comments
Open

How to control from Android app #39

Slasherss1 opened this issue Jan 9, 2018 · 2 comments

Comments

@Slasherss1
Copy link

I have android, local network, port 80 (start clicked already)

Phone says "Can't find new hue bridge"

@rkkoszewski
Copy link

rkkoszewski commented Oct 3, 2018

Same here. I get a message in the console "/api/nouser/config" whenever I'm searching in the android app for the Hue Bridge. They probably upped the minimum required version of the API that can be used with the application.

EDIT: So I mapped "/api/nouser/config" to "/api/config" and now the android app is able to find the Hue Emulator Bridge, altough after discovery the app inmediately crashes, probably due to an unexpected state, or missing information in the "config" response, as no other responses are made before the crash.

@lefds
Copy link

lefds commented Mar 17, 2019

Dear all,

after spending some hours over the same issue I find out the solution:

  1. Get the default json config: http://localhost/api/newdeveloper/config_
  2. Add the "nouser" to the whitelist (the config.json file is attached to this post)
  3. Launch the emulator with the config.json as its single command line argument:
    java -jar HueEmulator-v0.8.jar config.json
    Now the Philips Hue app on my physical Android find out the bridge (after clicking over it on the emulator), enabling me to control the lamps from the smartphone.
    Remarks:
  • run the command with root/administrator privileges so that it can use TCP port 80
  • if running the emulator inside a virtual machine (as I did) remember to setup a bridged network interface

config.zip

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