-
Notifications
You must be signed in to change notification settings - Fork 27
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 correctly use AddNode() / RemoveNode() #13
Comments
I can't say for sure, but this part of the source code seems to indicate it will stop after the first one got added: What were you expected in addition to the "NodeNew" notification? |
I would expect it to return to normal operation where I can communicate with all included nodes. It's quite possible that I'm doing something wrong, I just can't find what it is... |
I don't get that. My network continues to operate fine while waiting for a node to get added. |
That's weird. After including or excluding a node this way I need to call RemoveDriver and AddDriver to make it all work again (or restart the app, which does the same thing). Could this be related to the controller stick I'm using? Which one are you using? I have the Aeotec Z-Stick S2. |
Hi,
I have another question. I'm not really getting responses on the OpenZWave Google group, so I'm hoping someone here can help me, please?
I've made progress with implementing ZWave in my system. I'm at a point now where I want to implement adding (including) and removing (excluding) nodes without having to unplug the Z-Stick.
So I have a button that calls m_manager.AddNode(homeID, false) and one that calls m_manager.RemoveNode(homeID) to put the controller stick in inclusion/exclusion mode.
When I do that, I can add and remove a node. I get notifications of type ControllerCommand with the progress number in m_notification.Event. (by the way, did you not implement "enum OpenZWave::Driver::ControllerState" or can I just not find it?). Then I get a NodeNew notification.
So far so good. However, after including/excluding a node I get no further notifications at all.
Do I need to call anything to end the inclusion/exclusion mode and return to normal operation?
The OpenZWave API documentation for AddNode seems to imply that only one node can be added for each call to AddNode and then it would return to normal mode, but it's not quite clear.
"Start the Inclusion Process to add a Node to the Network." - A node, as in one node...
The text was updated successfully, but these errors were encountered: