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

Write a tool to help associate lamps with bridges #27

Open
arvidfm opened this issue Apr 1, 2014 · 3 comments
Open

Write a tool to help associate lamps with bridges #27

arvidfm opened this issue Apr 1, 2014 · 3 comments
Assignees

Comments

@arvidfm
Copy link
Member

arvidfm commented Apr 1, 2014

The tool should assume that the bridge has just been factory reset. Here's a rough outline of how the tool should work:

  1. The user tells the tool what bridge (MAC) they want to work with, and optionally the IP address if it's already known
  2. The tool should do a network scan for the bridge in question
  3. If it's not found, force the user to enter the IP manually
  4. Once a bridge with the correct MAC address is found, tell the user to press the link button and generate a new user name for use with the Hue API
  5. Once a user name has been created, ask the user how many lamps to add to the bridge
  6. Tell the user to plug in the lamps one by one, making sure that no other nearby lamps are turned on, resetting each lamp ("[Link,Touchlink]" to port 30000)
  7. Once all the lamps have been reset, ask the user to plug in all lights, and do a lamp search
  8. Save the current configuration somewhere, especially the new user name
@arvidfm
Copy link
Member Author

arvidfm commented Apr 10, 2014

When starting the tool, a message along the lines of "Make sure that the bridge has been factory reset" should be displayed.

It's probably easiest to make the program a CLI application. Note though that it needs to use Tornado if it is to use the playhouse module directly, meaning that it will be necessary to use IOLoop.add_handler(sys.stdin.fileno(), ...) to read from stdin, or alternatively read from stdin in a separate thread.

@arvidfm
Copy link
Member Author

arvidfm commented Apr 30, 2014

The current version of the tool works well enough in my opinion. Closing for now.

@arvidfm arvidfm closed this as completed Apr 30, 2014
@arvidfm
Copy link
Member Author

arvidfm commented May 1, 2014

It should be possible to issue a re-search if no bridges were found

@arvidfm arvidfm reopened this May 1, 2014
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

2 participants