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

Is it possible to see unpaired device? #8

Open
nospam2k opened this issue Mar 19, 2020 · 5 comments
Open

Is it possible to see unpaired device? #8

nospam2k opened this issue Mar 19, 2020 · 5 comments

Comments

@nospam2k
Copy link

Right now I'm just using the following code to list devices. I have one bulb paired in the app and one new bulb. The response is:

Connection Established
Luminary{capabilities=[Switchable, Dimmable, PureWhite], on=false, luminance=100, address=xxxxxxxxxxxxxxxxxx, firmware='xxxxxxxxxxx', name='xxxxxxxxxxxxx'}

I am not seeing the unpaired bulb. Is it possible to pair without the app or should I be seeing unpaired bulbs?

  public static void main(String[] args)
  {
    StatusListener statusListener = new StatusListener() {
      @Override
      public void onConnect() {
        System.out.println("Connected");
      }

      @Override
      public void onConnectionFailed() {
        System.out.println("Connection Failed");
      }

      @Override
      public void onConnectionEstablished() {
        System.out.println("Connection Established");
      }

      @Override
      public void onConnectionLost() {
        System.out.println("Connection Lost");
      }
    };

    LightifyLink lightifyLink = new LightifyLink("192.168.0.41", statusListener);
    lightifyLink.performSearch(System.out::println);
@nospam2k nospam2k reopened this Mar 19, 2020
@nospam2k
Copy link
Author

nospam2k commented Mar 19, 2020

I thought I had figured it out by turning on another bulb. I got the flashing but did not use the app at all, thinking that meant the bulb was being discovered, but I couldn't see the bulb in discovery.

@noctarius
Copy link
Owner

I think the java codebase is pretty outdated. You might have to adjust it accordingly to the specification.

@nospam2k
Copy link
Author

nospam2k commented Apr 6, 2020

I'm not sure what specification you are referring to. Isn't this based on reversing? Are you referring to the Zigbee specification?

@noctarius
Copy link
Owner

To this specification: https://github.com/noctarius/lightify-binary-protocol/blob/master/README.adoc

And yeah, this is based on reverse engineering. Many changes to the "specification" aren't implemented in the Java codebase though.

@nospam2k
Copy link
Author

nospam2k commented Apr 7, 2020

Thanks for that. When I get some time, I'll dig deeper into it and report back here.

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