Danalock Unknown Device

(Ahmed Saad) #1

My openhab is 2.4 on RaspberryPi, I installed zwave binding. Many zwave devices were discovered but the danalock was “Unknown Device”. It appears online but there is no channels or parameters.
can anyone help?
thx

Capture
This is the logs of adding danalock

2019-05-12 04:22:02.682 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zwave:device:879bcf06:node3' to inbox.

2019-05-12 04:22:03.346 [home.event.InboxAddedEvent] - Discovery Result with UID 'zwave:device:879bcf06:node3' has been added.

2019-05-12 04:22:14.071 [me.event.InboxRemovedEvent] - Discovery Result with UID 'zwave:device:879bcf06:node3' has been removed.

2019-05-12 04:22:14.143 [hingStatusInfoChangedEvent] - 'zwave:device:879bcf06:node3' changed from UNINITIALIZED to INITIALIZING

2019-05-12 04:22:14.187 [hingStatusInfoChangedEvent] - 'zwave:device:879bcf06:node3' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline

2019-05-12 04:22:14.233 [hingStatusInfoChangedEvent] - 'zwave:device:879bcf06:node3' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE

2019-05-12 04:22:14.245 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:879bcf06:node3' has been updated.

2019-05-12 04:22:14.255 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:879bcf06:node3' has been updated.

2019-05-12 04:22:14.266 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:879bcf06:node3' has been updated.
0 Likes

(SiHui) #2

You need to upgrade to the latest 2.5 zwave snapshot binding.

https://ci.openhab.org/job/openHAB2-Bundles/lastStableBuild/org.openhab.addons.bundles$org.openhab.binding.zwave/

0 Likes

(Ahmed Saad) #3

Thank you for replying.
I searched for installing the latest update of zwave binding and I found these steps

  • uninstall zwave binding from paper UI
  • clear cache
  • Drop the jar file in the addons folder
  • Restart openhab
    I did all these steps but there is a problem
2019-05-12 14:39:22.833 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zwave [246]


0 Likes

(SiHui) #4
0 Likes

(Ahmed Saad) #5

I am using putty program for ssh access, I don’t know the command that equal

list -s | grep xstream 

But in general, I dropped this jar file in the addons folder
http://central.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xstream/1.4.7_1/org.apache.servicemix.bundles.xstream-1.4.7_1.jar
and this is the result!

2019-05-12 19:51:04.891 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zwave [248]

  Unresolved requirement: Import-Package: org.eclipse.smarthome.io.transport.serial

	at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [10:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [10:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]
0 Likes

(SiHui) #6

You need to use the karaf console (after logging in with shh):

First attempt to login may fail because a certificate will be created. If that happens just login again.

Then you need to install the serial driver with:
feature:install openhab-transport-serial

You can also use a shortcut and just install the “Serial Binding” (without using it), which will also install the missing dependency.

0 Likes

(Ahmed Saad) #7

Thank you for your help!

  • I used the karaf consol and installed the serial driver with
feature:install openhab-transport-serial
openhab> list -s | grep xstream
270 x Active   x  80 x 1.4.7.1                x org.apache.servicemix.bundles.xstream

  • Then installed the “Serial Binding” in paper ui
  • the “.xstream-1.4.7_1.jar” file still in addones folder
    but the problem not solving! the danalock still unknown device
2019-05-13 03:51:06.586 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:c752b950' changed from UNINITIALIZED to INITIALIZING

2019-05-13 03:51:06.658 [me.event.ThingUpdatedEvent] - Thing 'zwave:serial_zstick:c752b950' has been updated.

==> /var/log/openhab2/openhab.log <==

2019-05-13 03:51:06.658 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'

==> /var/log/openhab2/events.log <==

2019-05-13 03:51:06.669 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:c752b950' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline

==> /var/log/openhab2/openhab.log <==

2019-05-13 03:51:06.713 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized

2019-05-13 03:51:06.756 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller

2019-05-13 03:51:06.758 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.

==> /var/log/openhab2/events.log <==

2019-05-13 03:51:10.963 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:c752b950' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE

2019-05-13 03:51:10.973 [me.event.ThingUpdatedEvent] - Thing 'zwave:serial_zstick:c752b950' has been updated.

==> /var/log/openhab2/openhab.log <==

2019-05-13 03:51:33.458 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zwave:device:c752b950:node3' to inbox.

==> /var/log/openhab2/events.log <==

2019-05-13 03:51:33.461 [home.event.InboxAddedEvent] - Discovery Result with UID 'zwave:device:c752b950:node3' has been added.

==> /var/log/openhab2/openhab.log <==

2019-05-13 03:52:11.577 [WARN ] [wave.discovery.ZWaveDiscoveryService] - NODE 2: Device discovery could not resolve to a thingType! Manufacturer data not known.

==> /var/log/openhab2/events.log <==

2019-05-13 03:52:11.592 [home.event.InboxAddedEvent] - Discovery Result with UID 'zwave:device:c752b950:node2' has been added.

==> /var/log/openhab2/openhab.log <==

2019-05-13 03:52:11.590 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zwave:device:c752b950:node2' to inbox.

==> /var/log/openhab2/events.log <==

2019-05-13 03:52:39.017 [me.event.InboxRemovedEvent] - Discovery Result with UID 'zwave:device:c752b950:node2' has been removed.

2019-05-13 03:52:39.102 [hingStatusInfoChangedEvent] - 'zwave:device:c752b950:node2' changed from UNINITIALIZED to INITIALIZING

2019-05-13 03:52:39.108 [hingStatusInfoChangedEvent] - 'zwave:device:c752b950:node2' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline

2019-05-13 03:52:39.115 [hingStatusInfoChangedEvent] - 'zwave:device:c752b950:node2' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE

2019-05-13 03:52:39.127 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:c752b950:node2' has been updated.

2019-05-13 03:52:39.142 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:c752b950:node2' has been updated.

2019-05-13 03:52:39.158 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:c752b950:node2' has been updated.
0 Likes

(SiHui) #8

From your log it looks okay, the zwave stick is online.
First check through karaf if you really have the latest (and only the latest) zwave binding active:

bundle:list | grep -i zwave

If you are seeing something like this (with a different date stamp)

296 x Active x  80 x 2.5.0.201904040140    x ZWave Binding

it should be okay.
Then the only thing to do is including the lock again.
For secure devices you need to:

  • exclude the device
  • factory reset the device
  • include the device (through the binding!) within the first 15 seconds after the binding started inclusion

After that check if any xml files were created in your userdata/zwave folder.

0 Likes

(Ahmed Saad) #9

This is the result of

bundle:list | grep -i zwave
openhab> bundle:list | grep -i zwave
271 x Active   x  80 x 2.5.0.201905111054     x openHAB Add-ons :: Bundles :: ZWave Binding

Please can you explain how to include the device (through the binding!) within the first 15 seconds after the binding started inclusion.
Thank you

0 Likes

(SiHui) #10

If you have a zwave stick with battery and an inclusion button, don’t use that for secure inclusion.
Instead go to either “Inbox” and hit the plus sign, then choose the zwave binding for PaperUI or go to “Configuration” “Things” and hit the plus sign in HABmin.
After hitting the plus sign you have 15 seconds max to start the inclusion process on your device.

0 Likes

(Ahmed Saad) #11

It is work finally, But turned to offline, I rebooted openhab but there is nothing change

2019-05-13 17:56:26.656 [hingStatusInfoChangedEvent] - 'zwave:device:24e12744:node2' changed from ONLINE: Node initialising: REQUEST_NIF to OFFLINE (COMMUNICATION_ERROR): Node is not communicating with controller
  • It toggling between online and offline, When it is online, I select lock from paper ui control interface. It gives me this log
2019-05-13 18:09:01.225 [WARN ] [nal.converter.ZWaveDoorLockConverter] - NODE 2: Command class COMMAND_CLASS_DOOR_LOCK not found


0 Likes

(SiHui) #12

Not sure what is going on.
Did you include that device before without security?
Then after further attempts you always need to factory reset the device.

0 Likes

(Ahmed Saad) #13

Yes, I tried to include it without security using 2.4 snapshot but it was “unknown device”
this pic from HAbmin, Can we understand anything from it?
Capture

0 Likes

(SiHui) #14

I don’t have any secure zwave locks but from what I understand it is wise to pair them securely :sunglasses:

Make sure you are following the inclusion procedure according to the manual and also make sure to take a look at the “Usage information” in the database:

https://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/708

0 Likes

(Ahmed Saad) #15

(post withdrawn by author, will be automatically deleted in 96 hours unless flagged)

0 Likes

(Ahmed Saad) #16

How to make the inclusion process. As I know the only way is
1-Unplug Z-stick from raspberry pi
2-Put the Z-stick in inclusion mode by pressing the button one time
3-Put the Danalock in inclusion mode by click on time on its button
4-Plug the Z-stick in raspberry pi again

0 Likes

(SiHui) #17

As I already told you above:

habmin habmin1

You must start the inclusion process through the binding, not through the button on your zwave stick!

0 Likes