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

Nodes not detected correctly in OZW1.6 #2036

Closed
Dinth opened this issue Dec 15, 2019 · 27 comments
Closed

Nodes not detected correctly in OZW1.6 #2036

Dinth opened this issue Dec 15, 2019 · 27 comments

Comments

@Dinth
Copy link
Contributor

Dinth commented Dec 15, 2019

Hey. Im trying to migrate to OZW1.6 (build:1.6-962-gcbe2b60f-dirty) using Zwave2MQTT 2.0.6-dev docker, unfortunately i found that it doesnt detect many of my devices correctly.
For example, while all my Eurotronic Spirit-Z thermostats are detected correctly in OZW1.4 (Zwave2MQTT 2.0.6, not 2.0.6-dev), in OZW1.6 only half of them gets detected and other half is detected as "Generic Thermostat V2"
Here is a log from running Refresh Node info on one of the thermostats which doesnt get discovered properly on OZW1.6:

ZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x8d, 0x00, 0x00, 0x8c, 0xea
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x8d received (expected 0x8d)
OpenZWave Info, Node031, Request RTT 1396 Average Request RTT 1061
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:46:23.601Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
2019-12-15T07:46:23.602Z z2m:Zwave node 31 AVAILABLE: - (General Thermostat V2)
OpenZWave Detail, Node031, Query Stage Complete (ManufacturerSpecific2)
OpenZWave Detail, Node031, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Versions live=1
OpenZWave Detail, Node031, QueryStage_Versions
OpenZWave Info, Node031, Requesting Versions
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_NO_OPERATION
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_BASIC
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_THERMOSTAT_MODE
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_THERMOSTAT_SETPOINT
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_MANUFACTURER_SPECIFIC
OpenZWave Info, Node031, Requesting Versions for COMMAND_CLASS_VERSION
OpenZWave Detail, Node031, QueryStage_Instances
OpenZWave Info, Node031, Essential node queries are complete
OpenZWave Detail, Node031, QueryStage_Static
OpenZWave Detail, Node031, Queuing (Query) ThermostatModeCmd_SupportedGet (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x40, 0x04, 0x25, 0x8e, 0x17
OpenZWave Detail, Node031, Queuing (Query) ThermostatSetpointCmd_SupportedGet (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x43, 0x04, 0x25, 0x8f, 0x15
OpenZWave Detail, Node031, Queuing (Query) ManufacturerSpecificCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x72, 0x04, 0x25, 0x90, 0x3b
OpenZWave Detail, Node031, Queuing (Query) VersionCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x86, 0x11, 0x25, 0x91, 0xdb
OpenZWave Detail, Node031, Queuing (Query) Query Stage Complete (Static)
OpenZWave Detail, Node031, Notification: EssentialNodeQueriesComplete
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Query) message (Callback ID=0x8e, Expected Reply=0x04) - ThermostatModeCmd_SupportedGet (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x40, 0x04, 0x25, 0x8e, 0x17
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node031, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x8e, 0x00, 0x00, 0x8e, 0xeb
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x8e received (expected 0x8e)
OpenZWave Info, Node031, Request RTT 1432 Average Request RTT 1246
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:46:33.601Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Query) message (Callback ID=0x8f, Expected Reply=0x04) - ThermostatSetpointCmd_SupportedGet (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x43, 0x04, 0x25, 0x8f, 0x15
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node031, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x8f, 0x00, 0x00, 0x86, 0xe2
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x8f received (expected 0x8f)
OpenZWave Info, Node031, Request RTT 1342 Average Request RTT 1294
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:46:43.602Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Query) message (Callback ID=0x90, Expected Reply=0x04) - ManufacturerSpecificCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x72, 0x04, 0x25, 0x90, 0x3b
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node031, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x90, 0x00, 0x00, 0x87, 0xfc
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x90 received (expected 0x90)
OpenZWave Info, Node031, Request RTT 1361 Average Request RTT 1327
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:46:53.603Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Query) message (Callback ID=0x91, Expected Reply=0x04) - VersionCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x86, 0x11, 0x25, 0x91, 0xdb
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node031, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x91, 0x00, 0x01, 0x0e, 0x75
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x91 received (expected 0x91)
OpenZWave Info, Node031, Request RTT 2711 Average Request RTT 2019
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:47:03.602Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
OpenZWave Detail, Node031, Query Stage Complete (Static)
OpenZWave Detail, Node031, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Associations live=1
OpenZWave Detail, Node031, QueryStage_Associations
OpenZWave Detail, Node031, QueryStage_Neighbors
OpenZWave Detail, Requesting routing info (neighbor list) for Node 31
OpenZWave Detail, Node031, Queuing (Command) Get Routing Info (Node=31): 0x01, 0x07, 0x00, 0x80, 0x1f, 0x00, 0x00, 0x03, 0x64
OpenZWave Detail, Node031, Queuing (Query) Query Stage Complete (Neighbors)
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Command) message (Callback ID=0x00, Expected Reply=0x80) - Get Routing Info (Node=31): 0x01, 0x07, 0x00, 0x80, 0x1f, 0x00, 0x00, 0x03, 0x64
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x20, 0x01, 0x80, 0x01, 0x90, 0x04, 0x9d, 0x1e, 0x0a, 0x48, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6
OpenZWave Detail,
OpenZWave Info, Node031, Received reply to FUNC_ID_ZW_GET_ROUTING_INFO
OpenZWave Info, Node031, Neighbors of this node are:
OpenZWave Info, Node031, Node 1
OpenZWave Info, Node031, Node 13
OpenZWave Info, Node031, Node 16
OpenZWave Info, Node031, Node 19
OpenZWave Info, Node031, Node 25
OpenZWave Info, Node031, Node 27
OpenZWave Info, Node031, Node 28
OpenZWave Info, Node031, Node 29
OpenZWave Info, Node031, Node 32
OpenZWave Info, Node031, Node 34
OpenZWave Info, Node031, Node 35
OpenZWave Info, Node031, Node 36
OpenZWave Info, Node031, Node 37
OpenZWave Info, Node031, Node 42
OpenZWave Info, Node031, Node 44
OpenZWave Info, Node031, Node 52
OpenZWave Info, Node031, Node 55
OpenZWave Info, Node031, Node 59
OpenZWave Info, Node031, Node 60
OpenZWave Info, Node031, Node 63
OpenZWave Info, Node031, Node 64
OpenZWave Detail, Node031, Expected reply was received
OpenZWave Detail, Node031, Message transaction complete
OpenZWave Detail,
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Query Stage Complete (Neighbors)
OpenZWave Detail, Node031, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Session live=1
OpenZWave Detail, Node031, QueryStage_Session
OpenZWave Detail, Node031, QueryStage_Dynamic
OpenZWave Detail, Node031, Queuing (Send) ThermostatModeCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x40, 0x02, 0x25, 0x92, 0x0d
OpenZWave Detail, Node031, Queuing (Query) Query Stage Complete (Dynamic)
OpenZWave Detail,
OpenZWave Info, Node031, Sending (Send) message (Callback ID=0x92, Expected Reply=0x04) - ThermostatModeCmd_Get (Node=31): 0x01, 0x09, 0x00, 0x13, 0x1f, 0x02, 0x40, 0x02, 0x25, 0x92, 0x0d
OpenZWave Info, Node031, Encrypted Flag is 0
OpenZWave Detail, Node031, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node031, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node031, Received: 0x01, 0x07, 0x00, 0x13, 0x92, 0x00, 0x00, 0x8b, 0xf2
OpenZWave Detail, Node031, ZW_SEND_DATA Request with callback ID 0x92 received (expected 0x92)
OpenZWave Info, Node031, Request RTT 1397 Average Request RTT 1708
OpenZWave Detail, Node031, Expected callbackId was received
2019-12-15T07:47:13.608Z z2m:Zwave Notification from node 31: Notification - TimeOut (1)
OpenZWave Error, Node031, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node031, Removing current message
OpenZWave Detail, Node031, Notification: Notification - TimeOut
OpenZWave Detail, Node031, Query Stage Complete (Dynamic)
OpenZWave Detail, Node031, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Configuration live=1
OpenZWave Detail, Node031, QueryStage_Configuration
OpenZWave Detail, Node031, QueryStage_Complete
OpenZWave Warning, CheckCompletedNodeQueries m_allNodesQueried=0 m_awakeNodesQueried=1
OpenZWave Warning, CheckCompletedNodeQueries all=0, deadFound=1 sleepingOnly=1
2019-12-15T07:47:13.636Z z2m:Zwave node 31 ready: - (General Thermostat V2)
OpenZWave Detail, Node031, Notification: NodeQueriesComplete

Same goes with my Popp Outdoor solar powered siren. In OZW1.4 it is detected at "Popp Solar Powered Outdoor Siren", but in OZW1.6 its just detected as "Siren". Here's a log of running Refresh node info

OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=None live=1
OpenZWave Detail, Node055, QueryStage_ProtocolInfo
OpenZWave Detail, Node055, Queuing (Query) Get Node Protocol Info (Node=55): 0x01, 0x04, 0x00, 0x41, 0x37, 0x8d
OpenZWave Detail, Node055, Notification: NodeRemoved
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (ProtocolInfo)
OpenZWave Info, Node055, Initializing Node. New Node: false (false)
OpenZWave Detail, Node055, Notification: NodeAdded
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Query) message (Callback ID=0x00, Expected Reply=0x41) - Get Node Protocol Info (Node=55): 0x01, 0x04, 0x00, 0x41, 0x37, 0x8d
OpenZWave Info, Node055, Encrypted Flag is 0
2019-12-15T07:57:55.426Z z2m:Zwave ValueAdded: 55-37-1-0 Switch
OpenZWave Detail, Node055, Received: 0x01, 0x09, 0x01, 0x41, 0x53, 0xdc, 0x01, 0x04, 0x10, 0x05, 0x29
OpenZWave Detail,
OpenZWave Info, Node055, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
OpenZWave Info, Node055, Protocol Info for Node 55:
OpenZWave Info, Node055, Listening = false
OpenZWave Info, Node055, Frequent = true
OpenZWave Info, Node055, Beaming = true
OpenZWave Info, Node055, Routing = true
OpenZWave Info, Node055, Max Baud Rate = 100000
OpenZWave Info, Node055, Version = 4
OpenZWave Info, Node055, Security = false
OpenZWave Info, Node055, Basic device class (0x04) - Routing Slave
OpenZWave Info, Node055, Generic device Class (0x10) - Binary Switch
OpenZWave Info, Node055, Specific device class (0x05) - Siren
OpenZWave Info, Node055, COMMAND_CLASS_BASIC will be mapped to COMMAND_CLASS_SWITCH_BINARY
OpenZWave Info, Node055, Mandatory Command Classes for Node 55:
OpenZWave Info, Node055, COMMAND_CLASS_BASIC
OpenZWave Info, Node055, COMMAND_CLASS_SWITCH_BINARY
OpenZWave Info, Node055, COMMAND_CLASS_MANUFACTURER_SPECIFIC
OpenZWave Info, Node055, Mandatory Command Classes controlled by Node 55:
OpenZWave Info, Node055, None
OpenZWave Detail, Node055, Expected reply was received
OpenZWave Detail, Node055, Message transaction complete
OpenZWave Detail,
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: NodeProtocolInfo
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail, Node055, Query Stage Complete (ProtocolInfo)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Probe live=1
OpenZWave Detail, Node055, QueryStage_Probe
OpenZWave Info, Node055, NoOperation::Set - Routing=true
OpenZWave Detail, Node055, Queuing (NoOp) NoOperation_Set (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x00, 0x00, 0x25, 0x93, 0x66
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (Probe)
OpenZWave Detail,
OpenZWave Info, Node055, Sending (NoOp) message (Callback ID=0x93, Expected Reply=0x13) - NoOperation_Set (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x00, 0x00, 0x25, 0x93, 0x66
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node055, ZW_SEND_DATA delivered to Z-Wave stack
2019-12-15T07:57:56.714Z z2m:Zwave Notification from node 55: Notification - NoOperation (2)
OpenZWave Detail, Node055, Received: 0x01, 0x07, 0x00, 0x13, 0x93, 0x00, 0x00, 0x81, 0xf9
OpenZWave Detail, Node055, ZW_SEND_DATA Request with callback ID 0x93 received (expected 0x93)
OpenZWave Info, Node055, Request RTT 1287 Average Request RTT 1287
2019-12-15T07:57:56.715Z z2m:Zwave ValueAdded: 55-114-1-0 Loaded Config Revision
2019-12-15T07:57:56.715Z z2m:Zwave ValueAdded: 55-114-1-1 Config File Revision
2019-12-15T07:57:56.715Z z2m:Zwave ValueAdded: 55-114-1-2 Latest Available Config File Revision
2019-12-15T07:57:56.716Z z2m:Zwave ValueAdded: 55-114-1-3 Device ID
2019-12-15T07:57:56.716Z z2m:Zwave ValueAdded: 55-114-1-4 Serial Number
OpenZWave Detail, Node055, Expected callbackId was received
OpenZWave Detail, Node055, Expected reply was received
OpenZWave Detail, Node055, Message transaction complete
OpenZWave Detail,
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - NoOperation
OpenZWave Detail, Node055, Query Stage Complete (Probe)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=WakeUp live=1
OpenZWave Detail, Node055, QueryStage_WakeUp
OpenZWave Detail, Node055, QueryStage_ManufacturerSpecific1
OpenZWave Detail, Node055, Checking for ManufacturerSpecific CC and Requesting values if present on this node
OpenZWave Detail, Node055, Queuing (Query) ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x94, 0x17
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (ManufacturerSpecific1)
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail, Node055, Notification: ValueAdded
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Query) message (Callback ID=0x94, Expected Reply=0x04) - ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x94, 0x17
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node055, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node055, Received: 0x01, 0x07, 0x00, 0x13, 0x94, 0x00, 0x00, 0x03, 0x7c
OpenZWave Detail, Node055, ZW_SEND_DATA Request with callback ID 0x94 received (expected 0x94)
OpenZWave Info, Node055, Request RTT 27 Average Request RTT 657
OpenZWave Detail, Node055, Expected callbackId was received
2019-12-15T07:58:06.715Z z2m:Zwave Notification from node 55: Notification - TimeOut (1)
OpenZWave Error, Node055, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - TimeOut
OpenZWave Detail, Node055, Query Stage Complete (ManufacturerSpecific1)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=NodeInfo live=1
OpenZWave Detail, Node055, QueryStage_NodeInfo
OpenZWave Detail, Node055, Queuing (Query) Request Node Info (Node=55): 0x01, 0x04, 0x00, 0x60, 0x37, 0xac
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (NodeInfo)
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Query) message (Callback ID=0x00, Expected Reply=0x49) - Request Node Info (Node=55): 0x01, 0x04, 0x00, 0x60, 0x37, 0xac
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x60, 0x01, 0x9b
OpenZWave Detail,
OpenZWave Info, Node055, FUNC_ID_ZW_REQUEST_NODE_INFO Request successful.
2019-12-15T07:58:16.716Z z2m:Zwave Notification from node 55: Notification - TimeOut (1)
OpenZWave Error, Node055, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - TimeOut
OpenZWave Detail, Node055, Query Stage Complete (NodeInfo)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=NodePlusInfo live=1
OpenZWave Detail, Node055, QueryStage_NodePlusInfo
OpenZWave Detail, Node055, QueryStage_SecurityReport
OpenZWave Detail, Node055, QueryStage_ManufacturerSpecific2
OpenZWave Detail, Node055, Queuing (Query) ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x95, 0x16
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (ManufacturerSpecific2)
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Query) message (Callback ID=0x95, Expected Reply=0x04) - ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x95, 0x16
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node055, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node055, Received: 0x01, 0x07, 0x00, 0x13, 0x95, 0x00, 0x00, 0x7e, 0x00
OpenZWave Detail, Node055, ZW_SEND_DATA Request with callback ID 0x95 received (expected 0x95)
OpenZWave Info, Node055, Request RTT 1257 Average Request RTT 957
OpenZWave Detail, Node055, Expected callbackId was received
2019-12-15T07:58:26.717Z z2m:Zwave Notification from node 55: Notification - TimeOut (1)
2019-12-15T07:58:26.717Z z2m:Zwave node 55 AVAILABLE: - (Siren)
OpenZWave Error, Node055, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - TimeOut
OpenZWave Detail, Node055, Query Stage Complete (ManufacturerSpecific2)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Versions live=1
OpenZWave Detail, Node055, QueryStage_Versions
OpenZWave Detail, Node055, QueryStage_Instances
OpenZWave Info, Node055, Essential node queries are complete
OpenZWave Detail, Node055, QueryStage_Static
OpenZWave Detail, Node055, Queuing (Query) ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x96, 0x15
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (Static)
OpenZWave Detail, Node055, Notification: EssentialNodeQueriesComplete
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Query) message (Callback ID=0x96, Expected Reply=0x04) - ManufacturerSpecificCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x72, 0x04, 0x25, 0x96, 0x15
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node055, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node055, Received: 0x01, 0x07, 0x00, 0x13, 0x96, 0x00, 0x00, 0x83, 0xfe
OpenZWave Detail, Node055, ZW_SEND_DATA Request with callback ID 0x96 received (expected 0x96)
OpenZWave Info, Node055, Request RTT 1313 Average Request RTT 1135
OpenZWave Detail, Node055, Expected callbackId was received
2019-12-15T07:58:36.716Z z2m:Zwave Notification from node 55: Notification - TimeOut (1)
OpenZWave Error, Node055, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - TimeOut
OpenZWave Detail, Node055, Query Stage Complete (Static)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Associations live=1
OpenZWave Detail, Node055, QueryStage_Associations
OpenZWave Detail, Node055, QueryStage_Neighbors
OpenZWave Detail, Requesting routing info (neighbor list) for Node 55
OpenZWave Detail, Node055, Queuing (Command) Get Routing Info (Node=55): 0x01, 0x07, 0x00, 0x80, 0x37, 0x00, 0x00, 0x03, 0x4c
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (Neighbors)
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Command) message (Callback ID=0x00, Expected Reply=0x80) - Get Routing Info (Node=55): 0x01, 0x07, 0x00, 0x80, 0x37, 0x00, 0x00, 0x03, 0x4c
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x20, 0x01, 0x80, 0x01, 0x90, 0x04, 0xdd, 0x1c, 0x8a, 0x08, 0xcc, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42
OpenZWave Detail,
OpenZWave Info, Node055, Received reply to FUNC_ID_ZW_GET_ROUTING_INFO
OpenZWave Info, Node055, Neighbors of this node are:
OpenZWave Info, Node055, Node 1
OpenZWave Info, Node055, Node 13
OpenZWave Info, Node055, Node 16
OpenZWave Info, Node055, Node 19
OpenZWave Info, Node055, Node 25
OpenZWave Info, Node055, Node 27
OpenZWave Info, Node055, Node 28
OpenZWave Info, Node055, Node 29
OpenZWave Info, Node055, Node 31
OpenZWave Info, Node055, Node 32
OpenZWave Info, Node055, Node 35
OpenZWave Info, Node055, Node 36
OpenZWave Info, Node055, Node 37
OpenZWave Info, Node055, Node 42
OpenZWave Info, Node055, Node 44
OpenZWave Info, Node055, Node 48
OpenZWave Info, Node055, Node 52
OpenZWave Info, Node055, Node 59
OpenZWave Info, Node055, Node 60
OpenZWave Info, Node055, Node 63
OpenZWave Info, Node055, Node 64
OpenZWave Info, Node055, Node 66
OpenZWave Info, Node055, Node 67
OpenZWave Detail, Node055, Expected reply was received
OpenZWave Detail, Node055, Message transaction complete
OpenZWave Detail,
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Query Stage Complete (Neighbors)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Session live=1
OpenZWave Detail, Node055, QueryStage_Session
OpenZWave Detail, Node055, QueryStage_Dynamic
OpenZWave Detail, Node055, Queuing (Send) SwitchBinaryCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x25, 0x02, 0x25, 0x97, 0x45
OpenZWave Detail, Node055, Queuing (Query) Query Stage Complete (Dynamic)
OpenZWave Detail,
OpenZWave Info, Node055, Sending (Send) message (Callback ID=0x97, Expected Reply=0x04) - SwitchBinaryCmd_Get (Node=55): 0x01, 0x09, 0x00, 0x13, 0x37, 0x02, 0x25, 0x02, 0x25, 0x97, 0x45
OpenZWave Info, Node055, Encrypted Flag is 0
OpenZWave Detail, Node055, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
OpenZWave Detail, Node055, ZW_SEND_DATA delivered to Z-Wave stack
OpenZWave Detail, Node055, Received: 0x01, 0x07, 0x00, 0x13, 0x97, 0x00, 0x00, 0x81, 0xfd
OpenZWave Detail, Node055, ZW_SEND_DATA Request with callback ID 0x97 received (expected 0x97)
OpenZWave Info, Node055, Request RTT 1292 Average Request RTT 1213
OpenZWave Detail, Node055, Expected callbackId was received
2019-12-15T07:58:46.721Z z2m:Zwave Notification from node 55: Notification - TimeOut (1)
OpenZWave Error, Node055, ERROR: Dropping command, expected response not received after 1 attempt(s)
OpenZWave Detail, Node055, Removing current message
OpenZWave Detail, Node055, Notification: Notification - TimeOut
OpenZWave Detail, Node055, Query Stage Complete (Dynamic)
OpenZWave Detail, Node055, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Configuration live=1
OpenZWave Detail, Node055, QueryStage_Configuration
OpenZWave Detail, Node055, QueryStage_Complete
OpenZWave Warning, CheckCompletedNodeQueries m_allNodesQueried=0 m_awakeNodesQueried=1
OpenZWave Warning, CheckCompletedNodeQueries all=0, deadFound=1 sleepingOnly=1
2019-12-15T07:58:46.749Z z2m:Zwave node 55 ready: - (Siren)
OpenZWave Detail, Node055, Notification: NodeQueriesComplete
@Dinth Dinth changed the title Nodes not detected in OZW1.6 Nodes not detected correctly in OZW1.6 Dec 15, 2019
@petergebruers
Copy link
Collaborator

Please upgrade (or ask the Zwave2MQTT guys to update to latest version, which is 1.6-992-g76e21d80.

Then please do not post snippets from the OZW_Log.txt or any other log, but please zip the complete OZW_Log.txt and drag & drop it here, because the issue might be somewhere else in the log.

I see you've already started discussing that on the the other project, that's good, I post this to put a reference:

OpenZWave/Zwave2Mqtt#172

@petergebruers
Copy link
Collaborator

petergebruers commented Dec 15, 2019

Forgot to mention, before creating and sending the OZW_Log.txt log, please delete the ozwcache* cache file, to force OZW to interview all devices (from scratch). But that means you'll have to wake up (manually, or wait until the wake up interval of the device passes) all battery nodes, they will remain unknown until you do that. That does not apply to the Eurotronic Spirit, because although it has batteries, it behaves (almost) like a mains powered device, it is a FLiRS (Frequently Listening Routing Slave). I did a quick search on "Popp Solar Powered Outdoor Siren" and that is probably a FLiRS too, the OZW_Log.txt will tell...

You might guess that 2 x issue with a FLiRS device would mean a problem with OpenZWave, but I recently tested a Z-Uno FLiRS and did not spot any problems.

@Dinth
Copy link
Contributor Author

Dinth commented Dec 15, 2019

Hi @petergebruers. Im not sure if that's a problem with FLiRS, as some of my mains powered devices show same behaviour, for example Fibaro Dimmers. I pasted Eurotronic TRVs as an example because those are odd - half of them show up and the other half does not.
Here's a full log: https://paste.ubuntu.com/p/x53csbbtXW/
Im deleting ozwcache* on ever restart while im trying to figure it out why my nodes are not detected correctly.
Im pretty sure that Popp solar outdoor siren is actually behaving/reporting as mains powered device.

@petergebruers
Copy link
Collaborator

Im not sure if that's a problem with FLiRS

Probably not

mains powered devices show same behaviour, for example Fibaro Dimmers.

That should not happen, but there was a change in the interview so that's why I'd like to see what happens with 1.6-992-g76e21d80

Here's a full log: https://paste.ubuntu.com/p/x53csbbtXW/

Thanks. Please be patient, I am slow at this and I am a volunteer so it depends on available time...

Im deleting ozwcache* on ever restart while im trying to figure it out why my nodes are not detected correctly.

Please only do that for testing purposes, the whole idea of the "cache file" is that OZW progresses through the interview per node, and as soon as one node finishes (certain stages), that data gets written to that file. Next time OZW starts, it will skip a lot of request/answer commands. This reduces startup time.

Im pretty sure that Popp solar outdoor siren is actually behaving/reporting as mains powered device.

If it is, it will say so in the log, it is a very important property of the device. It will also show in the ozwcache file , see properties listening and frequentListening, eg listening="false" frequentListening="false"

@petergebruers
Copy link
Collaborator

Okay, your log has plenty of these and that is not a good sign

2019-12-14 19:24:00.167 Detail, Node050, CAN received...triggering resend

I count hundreds of them

That usually indicates a hardware issue, a driver issue or something using the same serial port

You say HASS (so 1.4) is OK and ZWave2mqtt is not so I am guessing that is not on the same system?

@Dinth
Copy link
Contributor Author

Dinth commented Dec 15, 2019

@petergebruers it is same system, im just swapping Docker containers, stopping one, deleting zwcfg, restarting the system (seems that Zwave2MQTT does not free up all the resources when stopping the container) and starting a new container.
Here's a full log of running the other docker with OZW 1.4: https://paste.ubuntu.com/p/5HFK9Y28yt/
Im just deleting zwcfg for testing and due to frequent changes of versions. I have once tried restarting docker without deleting zwcfg but no new devices have been properly interviewed.

@petergebruers
Copy link
Collaborator

@Fishwaldo I need a second opion on this. The 1.4 log is also full of CAN...

Not sure what to try next.

@Fishwaldo
Copy link
Member

I’m traveling right now so can’t see the logs but CAN = collisions. Could be a faulty node. I’d try powering off everything and progressively power on devices till the CAN’s start again.

Either that or you have a node spamming the network with updates (power Meter?)

@Fishwaldo
Copy link
Member

@petergebruers it is same system, im just swapping Docker containers, stopping one, deleting zwcfg, restarting the system (seems that Zwave2MQTT does not free up all the resources when stopping the container) and starting a new container.
Here's a full log of running the other docker with OZW 1.4: https://paste.ubuntu.com/p/5HFK9Y28yt/
Im just deleting zwcfg for testing and due to frequent changes of versions. I have once tried restarting docker without deleting zwcfg but no new devices have been properly interviewed.

Btw, OZW 1.4 uses zwcfg files and OZW 1.6 uses ozwcache files.

@petergebruers
Copy link
Collaborator

Thanks @Fishwaldo

Haven't had time myself to look into this in great detail but have gone through the first few nodes.

That is the log starting with 2019-12-14 19:22:26.108 Always, OpenZwave Version 1.6-962-gcbe2b60f-dirty Starting Up

Node 6 seems unreachable.

Node 11 and 12 are sleeping.

Node 13 is mains and alive.

Node 14 and 15 are sleeping

Log at mains Node 16 gets interesting.

Node 56 is "chatty" and sends data while OZW is doing NoOp(s)... For example:

2019-12-14 19:23:00.234 Info, Node016, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
2019-12-14 19:23:00.234 Info, Node016,   Protocol Info for Node 16:
2019-12-14 19:23:00.234 Info, Node016,     Listening     = true

...

2019-12-14 19:23:00.235 Info, Node016, Sending (NoOp) message (Callback ID=0x10, Expected Reply=0x13) - NoOperation_Set (Node=16): 0x01, 0x09, 0x00, 0x13, 0x10, 0x02, 0x00, 0x00, 0x25, 0x10, 0xc2
2019-12-14 19:23:00.235 Info, Node016, Encrypted Flag is 0
2019-12-14 19:23:00.242 Detail, Node016,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2019-12-14 19:23:00.242 Detail, Node016,   ZW_SEND_DATA delivered to Z-Wave stack
2019-12-14 19:23:00.622 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:00.622 Detail, 
2019-12-14 19:23:00.622 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:00.622 Detail, Node016,   Expected callbackId was received
2019-12-14 19:23:00.663 Detail, Node016,   Received: 0x01, 0x07, 0x00, 0x13, 0x10, 0x00, 0x00, 0x2a, 0xd1
2019-12-14 19:23:00.663 Detail, Node016,   ZW_SEND_DATA Request with callback ID 0x10 received (expected 0x00)
2019-12-14 19:23:00.663 Warning, Node016, WARNING: Unexpected Callback ID received
2019-12-14 19:23:00.663 Detail, Node016,   Expected reply was received
2019-12-14 19:23:00.663 Detail, Node016,   Message transaction complete
2019-12-14 19:23:00.663 Detail, 
2019-12-14 19:23:00.663 Detail, Node016, Removing current message

There is something odd about this sequence of events imho...

  • A NOP gets send (accepted for transmission) with Callback ID=0x10
  • Then Node 56 sends data, OZW ignores it ('Unhandled Command') because that node has not been interviewed yet
  • OZW receives 0x01, 0x07, 0x00, 0x13, 0x10, 0x00, 0x00, 0x2a, 0xd1 and correctly deduces "ZW_SEND_DATA Request with callback ID 0x10 received" - correct, the hex value after 0x13 is 0x10 - but then continues by saying: "(expected 0x00)". How did that happen?

Then the next node gets interrupted by "node 56" but this time the NOP test succeeds...

2019-12-14 19:23:00.666 Info, Node019, Sending (NoOp) message (Callback ID=0x11, Expected Reply=0x13) - NoOperation_Set (Node=19): 0x01, 0x09, 0x00, 0x13, 0x13, 0x02, 0x00, 0x00, 0x25, 0x11, 0xc0
2019-12-14 19:23:00.666 Info, Node019, Encrypted Flag is 0
2019-12-14 19:23:00.675 Detail, Node019,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2019-12-14 19:23:00.676 Detail, Node019,   ZW_SEND_DATA delivered to Z-Wave stack
2019-12-14 19:23:00.768 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:00.768 Detail, 
2019-12-14 19:23:00.768 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:00.808 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:00.808 Detail, 
2019-12-14 19:23:00.808 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:00.819 Detail, Node024,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x18, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x3d
2019-12-14 19:23:00.819 Detail, 
2019-12-14 19:23:00.843 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:00.844 Detail, 
2019-12-14 19:23:00.844 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:00.895 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:00.895 Detail, 
2019-12-14 19:23:00.895 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:01.288 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:01.288 Detail, 
2019-12-14 19:23:01.288 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:01.296 Detail, Node019,   Received: 0x01, 0x07, 0x00, 0x13, 0x11, 0x00, 0x00, 0x3e, 0xc4
2019-12-14 19:23:01.296 Detail, Node019,   ZW_SEND_DATA Request with callback ID 0x11 received (expected 0x11)
2019-12-14 19:23:01.296 Info, Node019, Request RTT 630 Average Request RTT 630

This time no confusion about Callback ID 11

Next device is Node 21:

2019-12-14 19:23:01.299 Info, Node021, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
2019-12-14 19:23:01.299 Info, Node021,   Protocol Info for Node 21:
2019-12-14 19:23:01.299 Info, Node021,     Listening     = true
...
2019-12-14 19:23:01.300 Info, Node021, Sending (NoOp) message (Callback ID=0x12, Expected Reply=0x13) - NoOperation_Set (Node=21): 0x01, 0x09, 0x00, 0x13, 0x15, 0x02, 0x00, 0x00, 0x25, 0x12, 0xc5
2019-12-14 19:23:01.300 Info, Node021, Encrypted Flag is 0
2019-12-14 19:23:01.311 Detail, Node021,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2019-12-14 19:23:01.311 Detail, Node021,   ZW_SEND_DATA delivered to Z-Wave stack
2019-12-14 19:23:01.366 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:01.366 Detail, 
2019-12-14 19:23:01.366 Info, Node056, ApplicationCommandHandler - Unhandled Command Class 0x30
2019-12-14 19:23:01.392 Detail, Node056,   Received: 0x01, 0x0a, 0x00, 0x04, 0x10, 0x38, 0x04, 0x30, 0x03, 0xff, 0x0c, 0x1d
2019-12-14 19:23:01.392 Detail, 

(... Node 56 repeats a few times)

2019-12-14 19:23:03.244 Detail, Node021,   Received: 0x01, 0x07, 0x00, 0x13, 0x12, 0x01, 0x00, 0xc2, 0x3a
2019-12-14 19:23:03.244 Detail, Node021,   ZW_SEND_DATA Request with callback ID 0x12 received (expected 0x12)
2019-12-14 19:23:03.244 Info, Node021, WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2019-12-14 19:23:03.244 Warning, Node021, WARNING: Device is not a sleeping node.

So again Node 056 interferes, but the callback of is correct and has status flag "ZW_SEND_DATA failed" which seems correct... But that is not good news because it is a mains powered node so should not fail...

I stopped examining nodes in detail after Node 21 and scrolled to Node 56

2019-12-14 19:24:13.942 Info, Node056, Encrypted Flag is 0
2019-12-14 19:24:14.942 Error, Node056, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-12-14 19:24:14.942 Detail, Node056, Removing current message
2019-12-14 19:24:14.942 Detail, Node056, Notification: Notification - TimeOut
2019-12-14 19:24:14.942 Detail, Node056, Query Stage Complete (ProtocolInfo)
2019-12-14 19:24:14.942 Detail, Node056, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Probe live=1
2019-12-14 19:24:14.942 Detail, Node056, QueryStage_Probe
2019-12-14 19:24:14.942 Info, Node056, NoOperation::Set - Routing=true
2019-12-14 19:24:14.942 Detail, Node056, Queuing (NoOp) NoOperation_Set (Node=56): 0x01, 0x09, 0x00, 0x13, 0x38, 0x02, 0x00, 0x00, 0x25, 0x28, 0xd2
2019-12-14 19:24:14.942 Detail, Node056, Queuing (Query) Query Stage Complete (Probe)
2019-12-14 19:24:14.942 Detail, 
2019-12-14 19:24:14.942 Info, Node056, Sending (NoOp) message (Callback ID=0x28, Expected Reply=0x13) - NoOperation_Set (Node=56): 0x01, 0x09, 0x00, 0x13, 0x38, 0x02, 0x00, 0x00, 0x25, 0x28, 0xd2
2019-12-14 19:24:14.942 Info, Node056, Encrypted Flag is 0
2019-12-14 19:24:15.942 Error, Node056, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-12-14 19:24:15.942 Detail, Node056, Removing current message
2019-12-14 19:24:15.942 Detail, Node056, Notification: Notification - TimeOut

That is not looking good either.

But that might be caused by something else happing when we see the firs CAN, that is a bit before that log snippet:

2019-12-14 19:24:00.166 Detail, Node050, CAN received...triggering resend

@Dinth Can you power down node 56 (hex 0x38), remove ozwcache (so please try 1.6 because we do not support 1.4) and restart and see if the interview gets any better?

I think @Fishwaldo may be on the right track when he said: "... or you have a node spamming the network with updates".

What about Node 6 and Node 21, they don't respond to a ping test, are powered and reachable?

@Dinth
Copy link
Contributor Author

Dinth commented Dec 15, 2019

Again, thanks both for looking into this i really do appreciate!
Nodes 056 and 057 are "Shenzhen Neo Battery Powered PIR Sensor V2" sensors. I will try to remove them and repeat the process shortly.
Please ignore nodes 6, 11, 12 as those dont have batteries right now. Node 52 is weird and always was.
Node 1, 13, 16, 19, 25, 34, 35, 36, 37, 42, 44 seem to be discovered correctly. Im particularly interested in nodes 27, 28, 29, 31, 32. 49, 50, 55, which show correct "Type" but either nothing or Unknown node id 0000 in "Product". The remaining nodes dont show neither Type nor Product.

@petergebruers
Copy link
Collaborator

Nodes 056 and 057 are "Shenzhen Neo Battery Powered PIR Sensor V2" sensors. I will try to remove them and repeat the process shortly.

Right... Might be a "red herring" then - I expected those to be mains devices. Devices known to me to send quite a few updates, sometimes 5 per minute, are power reporting devices like a Fibaro Wall Plug with default settings and certain fluctuating nodes (that's just an example).

BTW iirc you had quite a few nodes in "secure" node, may I suggest if you re-include them to only do that if the devices can open/close doors, gates or blinds? The S0 protocol has a lot of overhead (instead of doing TX it can be 3-4 and sometimes more) and slows down your network.

Im particularly interested in nodes 27, 28, 29, 31, 32. 49, 50, 55

Okay, the CAN issue starts at node 50 so that leaves 27 -> 49 to investigate. I'll try to do that tomorrow evening.

@Dinth
Copy link
Contributor Author

Dinth commented Dec 15, 2019

@petergebruers i took out batteries from nodes 52, 56, 57 as advised. This time Z2M only discovered "Product" of my first node (Controller).
Please see the log: https://paste.ubuntu.com/p/M4yWYWbTFK/

@Dinth
Copy link
Contributor Author

Dinth commented Dec 16, 2019

Please disregard the log pasted above.
Ive done some tidy up on my system and closely observing the process, I found out that the node (gets restartd maybe?) device file gets reassigned in the middle of interviewing process. Thats an odd thing as I have never seen that before on HA nor OZW1.4 Z2M. But anyhow I changed the device name and things seem to be better now (more devices gets discovered correctly on initial interviews, more importantly "Refresh Node Info" on the nodes which havent passed initial interview now works!).
Still getting a lot of CAN errors which im failing to narrow down :(
Here's the log: https://paste.ubuntu.com/p/xB3RZZ2bCC/ (at the end of the log you can find two refresh node info runs on nodes which havent been discovered correctly in the original interview)

@petergebruers
Copy link
Collaborator

Still getting a lot of CAN errors which im failing to narrow down :(

As long as you see a plenty of CAN, nothing is going to work reliably...

I was beginning to doubt my self, so I started my 10-node network and saved the OZW_Log.txt... No CAN, and the few timeouts you'll find can be explained.

OZW_Log_H_ozwcp.txt.zip

No CAN or resend issues.

That is OpenZwave Version 1.6-992-g76e21d80 on a Raspberry Pi 2 (two !) using a ZME USB1 dongle.

I think it is time for you to try something radically different. For example; install Domoticz Beta (which is based on a recent OZW 1.6 version) on a different system eg a Windows PC

https://www.domoticz.com/downloads/

@Dinth
Copy link
Contributor Author

Dinth commented Dec 16, 2019

Thanks for all help @petergebruers. Hopefully i will have some days off work over the christmas so i will try to fix the can problems, i will try different machine, software and if that wont help i will try excluding all the nodes i can access.

@travishaagen
Copy link
Contributor

travishaagen commented Dec 21, 2019

I've had a similar experience. I previously used Home Assistant and it was able to identify node details (e.g., manufacturer), but using OZW 1.6 built from master has only been able to identify such details for the controller itself (Aeotec Z-Stick Gen5). I think values like manufacturer are being read as zero for all my devices.

UPDATE: just built the Dev branch instead of master and all my devices are identified correctly now

@Dinth
Copy link
Contributor Author

Dinth commented Dec 21, 2019

@petergebruers i have tried windows Domoticz beta, but i cannot find OZW logs literally anywhere. To the point, that i have asked on Domoticz forums and nobody could help me.

Im also trying to troubleshoot those CAN errors, but i couldnt really find an explanation online why those happen.
Can it be caused by a faulty node? Can it be caused by an working node but with signal level issues. Can it be caused by few nodes being too close to each other (apparently this can cause issues too). Shall i try to fix it by removing nodes from my mesh or rather add few new nodes to make mesh stronger.

@Fishwaldo
Copy link
Member

CAN = collisions at the RF level. It means two nodes trying to send at the same time. (In this case it’s the stick and one other node).

Yes - removing nodes to try to isolate CAN issues can help. (Start with any non Zwave plus devices)

@petergebruers
Copy link
Collaborator

i have tried windows Domoticz beta, but i cannot find OZW logs literally anywhere. To the point, that i have asked on Domoticz forums and nobody could help me.

On the hardware tab, go to the OpenZWave hardware, click setup. Then you get a screen listing al your devices (nodes). Click on the controller and you'll find an option to enable debug logging.

You'll find OZW_Log.txt and ozwcache* in the "Config" folder of your Domoticz installation

Can it be caused by few nodes being too close to each other (apparently this can cause issues too).

On paper it can cause issues, in real life not so much.

No, I own 45 mains powered nodes and most of them are mounted in pairs, very close to each other (7 - 10 cm between them), and I have checked performance with Zniffer. It is not an issue.
I've been on the Fibaro forum since 2013, I would have heard of such a problem.

@petergebruers
Copy link
Collaborator

Im also trying to troubleshoot those CAN errors, but i couldnt really find an explanation online why those happen.

That is because up to now that part of the protocol was not published as a "public" specification.

Silabs has said very recently, the will transfer all info to "The Alliance" and make Z-Wave a truly open spec.

If you want to details about SOF/ACK/NAK/CAN you can still obtain the relevant document if you register online. At the moment, I cannot post a copy of that document here yet...

INS12350-17 - Serial API Host Appl. Prg. Guide.pdf.pdf

I have to warn you, most people think SOF/ACK/NAK/CAN are the response of a Z-Wave device but that is only indirectly the case! The confusion arrises because

Those four packets regulate the flow between the controller and OpenZWave, not between a device and and OpenZWave! But many online resources say Z-Wave has a "ACK" packet on the radio level which is true, but is unrelated to the SOF/ACK/NAK/CAN on the serial level.

The "ACK" on the device level is now as ZW_SEND_DATA "status"

If you send data to a device... What users commonly understand as "ack" or "no ack" is

@petergebruers
Copy link
Collaborator

Sorry, pressed "enter" too soon...

If you send data to a device... What users commonly understand as "ack" or "no ack" is everything related with ZW_SEND_DATA

For example, if you see this in OZW log:

Sending (NoOp) message (Callback ID=0x0a .......
(...)
ZW_SEND_DATA delivered to Z-Wave stack
(...)
WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.

The "delivered" means the dongle has accepted the packet for transmission (and will transmit it soon)

The "ZW_SEND_DATA failed. No ACK received" means the dongle has reported and error

Technically speaking, although we use the word "ACK" for that it is the result of ZW_SEND_DATA Callback

if (_data[3] != TRANSMIT_COMPLETE_OK)

And the most common failure is TRANSMIT_COMPLETE_NO_ACK

This is the complete list:

/* Transmit complete codes */
#define TRANSMIT_COMPLETE_OK      0x00
#define TRANSMIT_COMPLETE_NO_ACK  0x01  /* retransmission error */
#define TRANSMIT_COMPLETE_FAIL    0x02  /* transmit error */
#define TRANSMIT_ROUTING_NOT_IDLE 0x03  /* transmit error */
/* Assign route transmit complete but no routes was found */
#define TRANSMIT_COMPLETE_NOROUTE 0x04  /* no route found in assignroute */

It comes as no surprise the names are confusing.

Anyway... If you see NAK/CAN as @Fishwaldo points out one of the possible causes is that OpenZWave and the controller (dongle) were sending data at the same time, and because the controller sends data to OpenZWave when it receives data from a device, that is a possible cause. But it is also possible for some reason the "serial protocol" lost sync. So far we have been able to identify thesed other causes of (lots of CAN/NAK):

  • hardware issues
  • Running "modemmanager" on Ubuntu, presumably because it "steals" ar "adds" bytes to the serial port
  • Running a second instance of OpenZWave (should detect that on recent version) on a Linux like system.

On windows, you get an exclusive lock on the COM port, that's one of the reasons why I've mentioned running Domoticz on windows.

It is not impossible to have a CAN or NAK on a healthy network, but the number should be very low.

@petergebruers
Copy link
Collaborator

On a more practical level... If you don't own and use a Zniffer, you might never be able to fully understand what is going on your network. OZW_Log is good but it is no substitute, a single line can turn into many Z-Wave packets, nothing we can do about that. The controller hides the details.

Your best bet may be: properly delete (exclude) all your nodes... Reset your controller... Start from scratch. This means: start by adding your Z-Wave Plus mains devices first and add them so you spread them around your controller, because those are likely to form a good backbone. Do a heal so they are very happy nodes. Then add your battery devices. Go slowly and be careful when changing parameters on your devices.

To be honest... I don't fully understand what causes the behavior seen in your OZW_Log file. And although I have tried to replicate that, I don't get such behavior...

@Dinth
Copy link
Contributor Author

Dinth commented Dec 23, 2019

On windows, you get an exclusive lock on the COM port, that's one of the reasons why I've mentioned running Domoticz on windows.

Hi. I finally managed to get OZW log from Windows Domoticz.
https://paste.ubuntu.com/p/yDd7dCVZt9/
Still CAN errors, but i believe little bit less (200+) ?
I just bought a fibaro controller (to update my fibaro nodes), after christmas i will start excluding nodes and updating them.

Kind regards

petergebruers added a commit to petergebruers/open-zwave that referenced this issue Dec 25, 2019
I simulated a busy network and observed:

2019-12-25 08:48:05.800 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-12-25 08:48:05.800 Info, contrlr, Encrypted Flag is 0
2019-12-25 08:48:05.801 Detail, Unsolicited message received while waiting for ACK.
2019-12-25 08:48:05.802 Detail, Node012,   Received: 0x01, 0x0f, 0x00, 0x04, 0x00, 0x0c, 0x07, 0x60, 0x0d, 0x00, 0x01, 0x25, 0x03, 0xff, 0xdd, 0x00, 0x97
2019-12-25 08:48:05.802 Detail,
2019-12-25 08:48:05.803 Detail, contrlr, CAN received...triggering resend
2019-12-25 08:48:05.803 Detail,
2019-12-25 08:48:05.803 Info, contrlr, Sending (Command) message (Attempt 2, Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-12-25 08:48:05.803 Info, contrlr, Encrypted Flag is 0
2019-12-25 08:48:05.803 Detail, Unsolicited message received while waiting for ACK.
2019-12-25 08:48:05.804 Detail, Node012,   Received: 0x01, 0x0f, 0x00, 0x04, 0x00, 0x0c, 0x07, 0x60, 0x0d, 0x00, 0x01, 0x25, 0x03, 0x00, 0xdd, 0x00, 0x68
2019-12-25 08:48:05.804 Detail,
2019-12-25 08:48:05.805 Detail, contrlr, CAN received...triggering resend
2019-12-25 08:48:05.805 Detail,

Before this commit, a CAN would lead to an immediate resend of the command, without handling the incoming data.

After this commit, the "threadprocloop" will run once, allowing the handling of data, flushing the buffer and clearing the CAN condition.

2019-12-25 09:27:53.484 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-12-25 09:27:53.484 Info, contrlr, Encrypted Flag is 0
2019-12-25 09:27:53.485 Detail, Unsolicited message received while waiting for ACK.
2019-12-25 09:27:53.486 Detail, Node012,   Received: 0x01, 0x0f, 0x00, 0x04, 0x00, 0x0c, 0x07, 0x60, 0x0d, 0x00, 0x01, 0x25, 0x03, 0xff, 0xd0, 0x00, 0x9a
2019-12-25 09:27:53.486 Detail,
2019-12-25 09:27:53.487 Detail, contrlr, CAN received...triggering resend
2019-12-25 09:27:53.487 Detail, Unsolicited message received while waiting for ACK.
2019-12-25 09:27:53.488 Detail, Node012,   Received: 0x01, 0x0f, 0x00, 0x04, 0x00, 0x0c, 0x07, 0x60, 0x0d, 0x00, 0x01, 0x25, 0x03, 0x00, 0xda, 0x00, 0x6f
2019-12-25 09:27:53.488 Detail,
2019-12-25 09:27:54.492 Detail,
2019-12-25 09:27:54.492 Info, contrlr, Sending (Command) message (Attempt 2, Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-12-25 09:27:54.492 Info, contrlr, Encrypted Flag is 0
2019-12-25 09:27:54.492 Detail, contrlr, Notification: Notification - TimeOut
2019-12-25 09:27:54.495 Detail, contrlr,   Received: 0x01, 0x10, 0x01, 0x15, 0x5a, 0x2d, 0x57, 0x61, 0x76, 0x65, 0x20, 0x34, 0x2e, 0x36, 0x31, 0x00, 0x01, 0x95
2019-12-25 09:27:54.495 Detail,

So the key change is that before this commit "CAN received...triggering resend" immediately leads to outbound data "Sending (Command) message (Attempt 2".

After this PR then "CAN received...triggering resend will handle the incoming data "Unsolicited message received while waiting for ACK."

Should improve OpenZWave#2036 "Nodes not detected correctly in OZW1.6" by reducing the number of CAN loops.
@petergebruers
Copy link
Collaborator

@Dinth thank you for trying that and posting the log. Indeed, still too many CANs and I am still convinced it has got to do with your "busy" network (meaning eg you have lots of sensors or modules reporting power) but I also noticed OZW may stay too long in CAN handling... I've opened a PR for that, if you know how to how to use your own OZW build with Zwave2MQTT you can try that branch on my PR (see #2049).

@Fishwaldo
Copy link
Member

I just merged the commit. Please test and let us know.

@Fishwaldo Fishwaldo added the bug label Jan 21, 2020
@no-response
Copy link

no-response bot commented Feb 4, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants