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

startDeviceDiscovery() not fully implemented #22

Closed
saukijan opened this issue Jul 13, 2017 · 2 comments
Closed

startDeviceDiscovery() not fully implemented #22

saukijan opened this issue Jul 13, 2017 · 2 comments

Comments

@saukijan
Copy link

Hey @cdjackson, I am trying to add a custom lamp, I had it working back in 2016 release, but after you refactored the code I can not seem to get it discovered. I poked around in the code and found that inside startDeviceDiscovery() method networkManager.permitJoin(60); does not get called for some strange reason. 'permitJoin()' method is declared like this:

public void permitJoin(final int duration) {
        logger.debug("Permit join for {} seconds.", duration);
        permitJoin(new ZigBeeDeviceAddress(ZigBeeBroadcastDestination.BROADCAST_ROUTERS_AND_COORD.getKey()), duration);
    }

So it should log a message on DEBUG level, but it doesn't and if I add a few more log messages like this:

        logger.debug("Allowing devices to join.");
        networkManager.permitJoin(60);
        logger.debug("Did networkManager log something?")

I only get this:

14:00:54.121 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Allowing devices to join.
14:00:54.156 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Did networkManager log something?

Also as the title claims startDeviceDiscovery() method hasn't been fully implemented. I can see that you wanted to add devices from ZigBeeDevice list, but never implemented it there. Have you done so somewhere else in the code? Furthermore what did you want to move to discovery handler from this method? The whole method or just the permitJoin() part? What did you want to do with ZigBeeDiscoveryManager?

@cdjackson
Copy link
Contributor

cdjackson commented Jul 13, 2017 via email

saukijan pushed a commit to Hahn-Schickard/org.openhab.binding.zigbee that referenced this issue Dec 11, 2017
…g. (openhab#22)

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
@cdjackson
Copy link
Contributor

Closing as this is an old issue. If it still exists then please reopen and provide an updated log since the binding has undergone major refactoring since this was raised.

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