This is my ‘story’ and how i managed to find the rotten eggs in my network of z-wave. I have a network which consists about roughly 60 devices. However lately it was taking more then 20 minutes and sometimes even longer before it was ready in Hass. Sometimes it worked like a champ, then it took longer then normal and sometimes it would not respond at all.
I started healing the network, took ages didn’t help. Checked for dead nodes didn’t help. Tried a windows danfoss tool and installed the z-wave stick on my windows and it would startup and work instantly (since it didn’t do a neighborhood scan) so i knew the ‘network’ was “ok”
My next action was that i started up ozwcp (even though hass should be able to manage it all, i find it handy to use in these types of issues) anyways, it didn’t show much besides a lot of duplicate messages. Which was very odd also for a device that was working correctly. Anyhow, i decided to remove my zwcfg_xxxxx.xml file to start fresh from the data from the stick. After some time it was ready and this was my end result when i first ran it in ozcwp:
Mind you, ozwcp gives these names like “Fibaro” default but ONLY on a fresh new setup or if you add a new one. But in my case it seemed it had stopped at a certain device. Node055 to be exact. So keeping the OZW logs open i did a refresh of that device:
2018-04-11 20:32:23.303 Info, Node056, NoOperation::Set - Routing=true
2018-04-11 20:32:23.303 Detail, Node056, Queuing (NoOp) NoOperation_Set (Node=56): 0x01, 0x09, 0x00, 0x13, 0x38, 0x02, 0x00, 0x00, 0x25, 0x6f, 0x95
2018-04-11 20:32:23.304 Detail, Node056, Queuing (Query) Query Stage Complete (Probe)
2018-04-11 20:32:23.304 Detail,
2018-04-11 20:32:23.304 Info, Node056, Sending (NoOp) message (Callback ID=0x6f, Expected Reply=0x13) - NoOperation_Set (Node=56): 0x01, 0x09, 0x00, 0x13, 0x38, 0x02, 0x00, 0x00, 0x25, 0x6f, 0x95
2018-04-11 20:32:23.314 Detail, Node056, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-04-11 20:32:23.314 Detail, Node056, ZW_SEND_DATA delivered to Z-Wave stack
2018-04-11 20:32:33.305 Error, Node056, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-04-11 20:32:33.305 Detail, Node056, Removing current message
2018-04-11 20:32:33.305 Detail, Node056, Notification: Notification - TimeOut
2018-04-11 20:32:33.308 Detail, Node056, Query Stage Complete (Probe)
2018-04-11 20:32:33.308 Detail, Node056, AdvanceQueries queryPending=0 queryRetries=0 queryStage=WakeUp live=1
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_WakeUp
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_ManufacturerSpecific1
2018-04-11 20:32:33.308 Detail, Node056, Checking for ManufacturerSpecific CC and Requesting values if present on this node
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_NodePlusInfo
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_SecurityReport
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_ManufacturerSpecific2
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_Versions
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_Instances
2018-04-11 20:32:33.308 Info, Node056, Essential node queries are complete
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_Static
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_Associations
2018-04-11 20:32:33.308 Detail, Node056, QueryStage_Neighbors
2018-04-11 20:32:33.309 Detail, Requesting routing info (neighbor list) for Node 56
2018-04-11 20:32:33.309 Detail, Node056, Queuing (Command) Get Routing Info (Node=56): 0x01, 0x07, 0x00, 0x80, 0x38, 0x00, 0x00, 0x03, 0x43
2018-04-11 20:32:33.309 Detail, Node056, Queuing (Query) Query Stage Complete (Neighbors)
2018-04-11 20:32:33.309 Detail, Node056, Notification: EssentialNodeQueriesComplete
2018-04-11 20:32:33.311 Detail,
2018-04-11 20:32:33.311 Info, Node056, Sending (Command) message (Callback ID=0x00, Expected Reply=0x80) - Get Routing Info (Node=56): 0x01, 0x07, 0x00, 0x80, 0x38, 0x00, 0x00, 0x03, 0x43
2018-04-11 20:32:34.311 Error, Node056, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-04-11 20:32:34.311 Detail, Node056, Removing current message
2018-04-11 20:32:34.311 Detail, Node056, Notification: Notification - TimeOut
2018-04-11 20:32:34.314 Detail, Node056, Query Stage Complete (Neighbors)
2018-04-11 20:32:34.314 Detail, Node056, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Session live=1
2018-04-11 20:32:34.315 Detail, Node056, QueryStage_Session
2018-04-11 20:32:34.315 Detail, Node056, QueryStage_Dynamic
2018-04-11 20:32:34.315 Detail, Node056, QueryStage_Configuration
2018-04-11 20:32:34.315 Detail, Node056, QueryStage_Complete
2018-04-11 20:32:34.315 Warning, CheckCompletedNodeQueries m_allNodesQueried=1 m_awakeNodesQueried=1
2018-04-11 20:32:34.315 Detail, Node056, Notification: NodeQueriesComplete
After that i try to switch node022, which is a normal functioning binary switch for my light which normally works.
2018-04-11 20:32:47.358 Info, Node022, Value::Set - COMMAND_CLASS_SWITCH_BINARY - Switch - 0 - 1 - False
2018-04-11 20:32:47.359 Info, Node022, SwitchBinary::Set - Setting node 22 to Off
2018-04-11 20:32:47.359 Detail, Node022, Queuing (Send) SwitchBinaryCmd_Set (Node=22): 0x01, 0x0a, 0x00, 0x13, 0x16, 0x03, 0x25, 0x01, 0x00, 0x25, 0x70, 0x82
2018-04-11 20:32:47.359 Detail, Node022, Queuing (Send) SwitchBinaryCmd_Get (Node=22): 0x01, 0x09, 0x00, 0x13, 0x16, 0x02, 0x25, 0x02, 0x25, 0x71, 0x82
2018-04-11 20:32:47.359 Detail,
2018-04-11 20:32:47.359 Info, Node022, Sending (Send) message (Callback ID=0x70, Expected Reply=0x13) - SwitchBinaryCmd_Set (Node=22): 0x01, 0x0a, 0x00, 0x13, 0x16, 0x03, 0x25, 0x01, 0x00, 0x25, 0x70, 0x82
2018-04-11 20:32:48.359 Error, Node022, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-04-11 20:32:48.359 Detail, Node022, Removing current message
2018-04-11 20:32:48.359 Detail, Node022, Notification: Notification - TimeOut
2018-04-11 20:32:48.363 Detail,
2018-04-11 20:32:48.363 Info, Node022, Sending (Send) message (Callback ID=0x71, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=22): 0x01, 0x09, 0x00, 0x13, 0x16, 0x02, 0x25, 0x02, 0x25, 0x71, 0x82
2018-04-11 20:32:49.363 Error, Node022, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-04-11 20:32:49.363 Detail, Node022, Removing current message
2018-04-11 20:32:49.363 Detail, Node022, Notification: Notification - TimeOut
Same issue with Node22 now, also dropping command. Nothing responds anymore.
After some time it comes back with:
2018-04-11 20:34:12.204 Detail, Received: 0x01, 0x20, 0x01, 0x80, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x50, 0x08, 0x00, 0x1c, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03
2018-04-11 20:34:12.204 Detail,
2018-04-11 20:34:12.204 Info, Received reply to FUNC_ID_ZW_GET_ROUTING_INFO
2018-04-11 20:34:12.207 Detail, CAN received...triggering resend
2018-04-11 20:34:12.207 Warning, m_currentMsg was NULL when trying to set MaxSendAttempts
2018-04-11 20:34:12.207 Always,
2018-04-11 20:34:12.207 Always, Dumping queued log messages
2018-04-11 20:34:12.207 Always,
2018-04-11 20:34:12.207 Always,
2018-04-11 20:34:12.207 Always, End of queued log message dump
2018-04-11 20:34:12.207 Always,
2018-04-11 20:34:12.207 Detail, WriteMsg CAN m_currentMsg=00000000
2018-04-11 20:34:12.208 Detail, CAN received...triggering resend
2018-04-11 20:34:12.208 Warning, m_currentMsg was NULL when trying to set MaxSendAttempts
2018-04-11 20:34:12.208 Always,
2018-04-11 20:34:12.208 Always, Dumping queued log messages
2018-04-11 20:34:12.208 Always,
2018-04-11 20:34:12.208 Always,
2018-04-11 20:34:12.208 Always, End of queued log message dump
2018-04-11 20:34:12.208 Always,
2018-04-11 20:34:12.208 Detail, WriteMsg CAN m_currentMsg=00000000
Which basicly ammounts for the number of times i tried to send a command. After that it will still fail on me with dropped commands.
So from 20:32 the network was broken, up untill 20:39, so a dead time of 7 minutes!
After that i can see this:
2018-04-11 20:39:39.179 Detail, Received: 0x01, 0x07, 0x00, 0x13, 0x72, 0x00, 0x00, 0x0f, 0x96
2018-04-11 20:39:39.179 Detail, ZW_SEND_DATA Request with callback ID 0x72 received (expected 0x00)
2018-04-11 20:39:39.179 Warning, WARNING: Unexpected Callback ID received
2018-04-11 20:39:43.149 Detail, Received: 0x01, 0x07, 0x00, 0x13, 0x72, 0x01, 0x01, 0x9c, 0x05
2018-04-11 20:39:43.149 Detail, ZW_SEND_DATA Request with callback ID 0x72 received (expected 0x00)
2018-04-11 20:39:43.150 Warning, WARNING: Unexpected Callback ID received
Upon which it still changes my light switch to the condition i wanted. This is due to the nature of the stack, you can see that in the message “CAN received…triggering resend” so it puts it back on the que. So once it becomes “stable” again it delivers it. Due note that the status in Home Assistant or any tool might be wrong at that point (but switching it twice will resolve that ofcourse)
As an example, Node055 and Node056 are on the same power outlet in my house, so must be something wrong there. But Node057 is a normal powered binary light again. This is the normal output of a Refresh Node:
2018-04-11 20:42:27.784 Detail, Node057, AdvanceQueries queryPending=0 queryRetries=0 queryStage=ProtocolInfo live=1
2018-04-11 20:42:27.784 Detail, Node057, QueryStage_Probe
2018-04-11 20:42:27.784 Info, Node057, NoOperation::Set - Routing=true
2018-04-11 20:42:27.784 Detail, Node057, Queuing (NoOp) NoOperation_Set (Node=57): 0x01, 0x09, 0x00, 0x13, 0x39, 0x02, 0x00, 0x00, 0x25, 0x82, 0x79
2018-04-11 20:42:27.785 Detail, Node057, Queuing (Query) Query Stage Complete (Probe)
2018-04-11 20:42:27.785 Detail,
2018-04-11 20:42:27.785 Info, Node057, Sending (NoOp) message (Callback ID=0x82, Expected Reply=0x13) - NoOperation_Set (Node=57): 0x01, 0x09, 0x00, 0x13, 0x39, 0x02, 0x00, 0x00, 0x25, 0x82, 0x79
2018-04-11 20:42:27.792 Detail, Node057, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-04-11 20:42:27.792 Detail, Node057, ZW_SEND_DATA delivered to Z-Wave stack
2018-04-11 20:42:27.810 Detail, Node057, Received: 0x01, 0x07, 0x00, 0x13, 0x82, 0x00, 0x00, 0x02, 0x6b
2018-04-11 20:42:27.810 Detail, Node057, ZW_SEND_DATA Request with callback ID 0x82 received (expected 0x82)
2018-04-11 20:42:27.810 Info, Node057, Request RTT 24 Average Request RTT 24
2018-04-11 20:42:27.810 Detail, Expected callbackId was received
2018-04-11 20:42:27.810 Detail, Expected reply was received
2018-04-11 20:42:27.810 Detail, Message transaction complete
2018-04-11 20:42:27.810 Detail,
2018-04-11 20:42:27.810 Detail, Node057, Removing current message
2018-04-11 20:42:27.810 Detail, Node057, Notification: Notification - NoOperation
2018-04-11 20:42:27.813 Detail, Node057, Query Stage Complete (Probe)
2018-04-11 20:42:27.813 Detail, Node057, AdvanceQueries queryPending=0 queryRetries=0 queryStage=WakeUp live=1
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_WakeUp
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_ManufacturerSpecific1
2018-04-11 20:42:27.813 Detail, Node057, Checking for ManufacturerSpecific CC and Requesting values if present on this node
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_NodePlusInfo
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_SecurityReport
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_ManufacturerSpecific2
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_Versions
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_Instances
2018-04-11 20:42:27.813 Info, Node057, Essential node queries are complete
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_Static
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_Associations
2018-04-11 20:42:27.813 Detail, Node057, QueryStage_Neighbors
2018-04-11 20:42:27.813 Detail, Requesting routing info (neighbor list) for Node 57
2018-04-11 20:42:27.813 Detail, Node057, Queuing (Command) Get Routing Info (Node=57): 0x01, 0x07, 0x00, 0x80, 0x39, 0x00, 0x00, 0x03, 0x42
2018-04-11 20:42:27.813 Detail, Node057, Queuing (Query) Query Stage Complete (Neighbors)
2018-04-11 20:42:27.813 Detail, Node057, Notification: EssentialNodeQueriesComplete
2018-04-11 20:42:27.814 Detail,
2018-04-11 20:42:27.814 Info, Node057, Sending (Command) message (Callback ID=0x00, Expected Reply=0x80) - Get Routing Info (Node=57): 0x01, 0x07, 0x00, 0x80, 0x39, 0x00, 0x00, 0x03, 0x42
2018-04-11 20:42:27.818 Detail, Node057, Received: 0x01, 0x20, 0x01, 0x80, 0x01, 0x00, 0x60, 0x79, 0x86, 0x9f, 0x1e, 0x4c, 0x98, 0x0b, 0x60, 0xaf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51
2018-04-11 20:42:27.819 Detail,
2018-04-11 20:42:27.819 Info, Node057, Received reply to FUNC_ID_ZW_GET_ROUTING_INFO
2018-04-11 20:42:27.819 Info, Node057, Neighbors of this node are:
2018-04-11 20:42:27.819 Info, Node057, Node 1
2018-04-11 20:42:27.819 Info, Node057, Node 22
2018-04-11 20:42:27.819 Info, Node057, Node 23
2018-04-11 20:42:27.819 Info, Node057, Node 25
2018-04-11 20:42:27.819 Info, Node057, Node 28
2018-04-11 20:42:27.819 Info, Node057, Node 29
2018-04-11 20:42:27.819 Info, Node057, Node 30
2018-04-11 20:42:27.819 Info, Node057, Node 31
2018-04-11 20:42:27.819 Info, Node057, Node 34
2018-04-11 20:42:27.819 Info, Node057, Node 35
2018-04-11 20:42:27.819 Info, Node057, Node 40
2018-04-11 20:42:27.819 Info, Node057, Node 41
2018-04-11 20:42:27.819 Info, Node057, Node 42
2018-04-11 20:42:27.819 Info, Node057, Node 43
2018-04-11 20:42:27.819 Info, Node057, Node 44
2018-04-11 20:42:27.819 Info, Node057, Node 45
2018-04-11 20:42:27.819 Info, Node057, Node 48
2018-04-11 20:42:27.819 Info, Node057, Node 50
2018-04-11 20:42:27.819 Info, Node057, Node 51
2018-04-11 20:42:27.819 Info, Node057, Node 52
2018-04-11 20:42:27.819 Info, Node057, Node 53
2018-04-11 20:42:27.819 Info, Node057, Node 59
2018-04-11 20:42:27.819 Info, Node057, Node 60
2018-04-11 20:42:27.819 Info, Node057, Node 63
2018-04-11 20:42:27.819 Info, Node057, Node 68
2018-04-11 20:42:27.819 Info, Node057, Node 69
2018-04-11 20:42:27.819 Info, Node057, Node 72
2018-04-11 20:42:27.819 Info, Node057, Node 73
2018-04-11 20:42:27.819 Info, Node057, Node 74
2018-04-11 20:42:27.819 Info, Node057, Node 76
2018-04-11 20:42:27.819 Info, Node057, Node 86
2018-04-11 20:42:27.819 Info, Node057, Node 87
2018-04-11 20:42:27.819 Info, Node057, Node 89
2018-04-11 20:42:27.819 Info, Node057, Node 90
2018-04-11 20:42:27.819 Info, Node057, Node 91
2018-04-11 20:42:27.819 Info, Node057, Node 92
2018-04-11 20:42:27.819 Info, Node057, Node 94
2018-04-11 20:42:27.819 Info, Node057, Node 96
2018-04-11 20:42:27.819 Detail, Expected reply was received
2018-04-11 20:42:27.819 Detail, Message transaction complete
2018-04-11 20:42:27.819 Detail,
2018-04-11 20:42:27.819 Detail, Node057, Removing current message
2018-04-11 20:42:27.819 Detail, Node057, Query Stage Complete (Neighbors)
2018-04-11 20:42:27.819 Detail, Node057, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Session live=1
2018-04-11 20:42:27.819 Detail, Node057, QueryStage_Session
2018-04-11 20:42:27.819 Detail, Node057, QueryStage_Dynamic
2018-04-11 20:42:27.819 Detail, Node057, QueryStage_Configuration
2018-04-11 20:42:27.819 Detail, Node057, QueryStage_Complete
2018-04-11 20:42:27.820 Warning, CheckCompletedNodeQueries m_allNodesQueried=1 m_awakeNodesQueried=1
2018-04-11 20:42:27.820 Detail, Node057, Notification: NodeQueriesComplete
Startup took me 20+ minutes as always with these issues.
Now when it started up correctly (i removed the 2 dead nodes i had) after a restart it takes me now ± 10 minutes. Still have some nodes that are funky which needs some love, which might speed this up a bit more too.
So in the end, remove your xml file (or make a backup) start up fresh with ozwcp let it run to the end. Then check like you see in the image where it stopped, try to refresh that node where it didn’t have a name for it and see if its dropping commands. If that is the case you have a dead node but isn’t marked as dead. Then do the same / repeat untill you found them all. I had 2 (both where behind the same power supply that was broken)
I hope this helps some people debugging more since i had a hard time nailing this one. Feel free to ask if you need more information (or discord, had a lot tips/feedback from Tinkerer on discord which helped me too)
p.s. during a startup you should still be able to turn lights on/off although slow (this is normal since it is still scanning your network) if this doesn’t work already, then something is still wrong too.
Regards,
Erik (Riemers on discord Hass)