SIGNAL_CONTROLLER_COMMAND parameters do not include the correct node or node_id
I may have misunderstood the purpose of SIGNAL_CONTROLLER_COMMAND callback but I think that it should be returning the node and node_id of the node that the command was sent to. The log file extracts below show the problem. The zwave log file correctly states that Node003 is Alive and NodeOK. However the corresponding callback has: State : NodeOK node_id : 0 node : None
System environment Operating System :............. Raspbian GNU/Linux 9.3 (stretch) Python Version :............... 3.5 Openzwave library :............ 1.4.2926 Python library :............... 0.4.4 ZWave library :................ Static Controller version Z-Wave 2.78
zwave log file: 2018-03-17 12:06:08.461 Detail, Node003, Queuing (Controller) Has Node Failed 2018-03-17 12:06:08.464 Info, Requesting whether node 3 has failed 2018-03-17 12:06:08.464 Detail, contrlr, Queuing (Command) ControllerCommand_HasNodeFailed: 0x01, 0x04, 0x00, 0x62, 0x03, 0x9a 2018-03-17 12:06:08.464 Detail, Notification: ControllerCommand - Starting 2018-03-17 12:06:08.493 Detail, 2018-03-17 12:06:08.494 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x62) - ControllerCommand_HasNodeFailed: 0x01, 0x04, 0x00, 0x62, 0x03, 0x9a 2018-03-17 12:06:08.497 Detail, contrlr, Received: 0x01, 0x04, 0x01, 0x62, 0x00, 0x98 2018-03-17 12:06:08.498 Detail, 2018-03-17 12:06:08.499 Warning, Node003, Received reply to FUNC_ID_ZW_IS_FAILED_NODE_ID - node 3 has not failed 2018-03-17 12:06:08.499 Error, Node003, WARNING: node revived 2018-03-17 12:06:08.500 Detail, Node152, Expected reply was received 2018-03-17 12:06:08.501 Detail, Node152, Message transaction complete 2018-03-17 12:06:08.501 Detail, 2018-03-17 12:06:08.501 Detail, contrlr, Removing current message 2018-03-17 12:06:08.502 Detail, Node003, Notification: Notification - Node Alive 2018-03-17 12:06:08.522 Detail, Notification: ControllerCommand - NodeOK
Corresponding SIGNAL_CONTROLLER_COMMAND callback parameters 2018-03-17 12:06:08,533 - OM.OMnetwork - louie_ctrl_command - DEBUG - state : NodeOK network : home_id: [0x0184f897] controller: [home_id: [0x0184f897] id: [1] name: [C1] product: [DSA02203 Z-Stick S2] capabilities: {'primaryController', 'staticUpdateController'} library: [Static Controller version Z-Wave 2.78]] controller: home_id: [0x0184f897] id: [1] name: [C1] product: [DSA02203 Z-Stick S2] capabilities: {'primaryController', 'staticUpdateController'} library: [Static Controller version Z-Wave 2.78] Kwargs: sender: _Anonymous. Type <class 'pydispatch.dispatcher._Anonymous'> state_int: 9. Type <class 'int'> signal: ControllerCommand. Type <class 'str'> error: None. Type <class 'libopenzwave.EnumWithDoc'> error_int: 0. Type <class 'int'> node: None. Type <class 'NoneType'> node_id: 0. Type <class 'int'> error_full: None.. Type <class 'str'> state_full: Used only with ControllerCommand_HasNodeFailed to indicate that the controller thinks the node is OK.. Type <class 'str'>