Danalock V3 - Z-Wave

Tags: #<Tag:0x00007fd320624328> #<Tag:0x00007fd32063b258> #<Tag:0x00007fd32063a948>

(Hartmut Schwensen) #41

Thanks Stenico and Chris for your contribution, nevertheless I were not successful and have a few questions that might help everybody else googling for Danalock V3 and Openhab2. Currently I can a the Danalock as a thing but are not able to use it as it is listed as an unsupported device.

  • Is the JAR file even necessary for installations with the latest snapshot built from last night?

  • For whatever reason I got to number 7) in your list and received error code “command not found” while for whatever reason 8) - what might be the issue.

  • Is there an alternative solution to do 7?

Thanks very much in advance. I really appreciate your help.


(Chris Jackson) #42

Yes - you need to use the version from the other thread.

Not really - you need to start the binding. You might be lucky and just be able to drop it into the addons folder and it might start, but equally, the commands should be available in the Karaf console…

(Hartmut Schwensen) #43

Thanks Chris. For whatever reason I am not able to start the zwave service with the Karaf console.

Error executing command: No matching bundles

Before I get mad: When approx. do you expect the secure layer to be part of a usual snapshot release?

(Chris Jackson) #44

Probably after Christmas - it needs to be done after the 2.2 release as it is a breaking change, and I will be on holiday for a while until Christmas…

(Hartmut Schwensen) #45

Finally i got it running. For whatever reason I had to re-download the file. That was it. Good to know that I will be part of the package soon. Again many thanks for your hard work.

(Joe Ru) #46

Hi all,
i finaly managed to find some time; With the how to from Nico (thanks btw) i was at least able to find the lock. But - my fibaro and my danalock shows as ‘Unknown Device’ or as 'The device initialisation is not complete.'
Any suggestions (i am actually using 2.1 stable)?


(Chris Jackson) #47

If anyone feels like updating the docs on GH to improve information on this, please feel free :slight_smile: .

(Runar) #48

Thank you sir! I got my DanaLock v3 included to my Razberry2 z-wave module!

I might be wrong but from what ive read during last hours of googling for clues on how to get the Z-wave test binding to work is that it won’t work without performing this manual inclusion ( feature:install openhab-transport-serial ) in the Openhab-console (karaf).
Btw. This is only necessary for bindings running from the shared addons folder and not for UI installed bindings!

OH2 Z-Wave refactoring and testing... and SECURITY
(Martin R.) #49

I’ve talked with the German Danalock support: The issue with the open password has been solved and they recommend to use the new app “Danalock Deutschland” (so called in Germany) or “Danalock Premium” (so called in other european countries). The security of the V3 model has been improved as well (e.g. it uses a higher encryption). So the results of this Def Con presentation don’t refer to the Danalock V3 and the current app versions.

(Matúš Hromada) #50

I’ve updated my snapshot openhab to the latest snapshot, but when adding Danalock V3-BTZE I’ve got this in the logs. Do I need to remove all Z-Wave devices including the controller?

As it’s #1221 it should have the security layer included, but maybe some specific steps, not covered in updating docs, are required.

15:33:44.537 [INFO ] [ommandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=false
15:33:44.582 [WARN ] [otocol.commandclass.ZWaveCommandClass] - NODE 17: Unsupported command class COMMAND_CLASS_SECURITY_2
15:33:44.583 [WARN ] [otocol.commandclass.ZWaveCommandClass] - NODE 17: Unsupported command class COMMAND_CLASS_TRANSPORT_SERVICE
15:33:44.589 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'zwave:device:099cd287:node17' to inbox.
15:33:44.589 [INFO ] [smarthome.event.InboxAddedEvent      ] - Discovery Resultwith UID 'zwave:device:099cd287:node17' has been added.
15:33:44.591 [INFO ] [smarthome.event.BindingEvent         ] - org.openhab.binding.zwave.event.BindingEvent@153c1bc
15:33:44.591 [INFO ] [ommandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=true
15:33:44.593 [INFO ] [ommandclass.ZWaveSecurityCommandClass] - NODE 17: Using Scheme0 Network Key for Key Exchange since we are in inclusion mode.
15:33:44.595 [WARN ] [erialmessage.IdentifyNodeMessageClass] - Got IdentifyNodeMessage without request, ignoring. Last message was SendData.
15:33:56.658 [INFO ] [ecurityCommandClassWithInitialization] - NODE 17: SettingNetwork Key to real key after SECURITY_NETWORK_KEY_SET
15:33:56.659 [INFO ] [ommandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=false
15:34:18.613 [INFO ] [smarthome.event.InboxRemovedEvent    ] - Discovery Resultwith UID 'zwave:device:099cd287:node17' has been removed.
15:34:18.625 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:099cd287:node17' changed from UNINITIALIZED to INITIALIZING
15:34:18.626 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:099cd287:node17' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controlleris offline
15:34:18.628 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:099cd287:node17' changed from OFFLINE (BRIDGE_OFFLINE):Controller is offline to ONLINE
15:34:18.633 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'zwave:device:099cd287:node17' has been updated.
15:34:18.634 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'zwave:device:099cd287:node17' has been updated.

(Chris Jackson) #51

It looks like you’re using the master branch which doesn’t support security - please try the development version -:

(Matúš Hromada) #52

Thanks for the swift reply. So the version with security isn’t still even in the snapshot version?

(Chris Jackson) #53

Yes - you need to use the version referenced above at this time.

(Matúš Hromada) #54

I was able to get it working. But I had to make some minor changes because of a number of Z-Wave items in my installation to reduce manual work. It’s also a bit detailed. It’s Windows installation.

  1. Screenshot all Z-Wave items with corresponding Node numbers
  2. Delete all Zwave Things using PaperUI (PaperUI preserves items under the deleted thing)
  3. Uninstall the Zwave binding using an OH2 shell with bundle:list getting the number of the Z-Wave bundle, then bundle:stop NUMBER and finally bundle:uninstall NUMBER. I’ve must do this because HABmin nor PaperUI didn’t uninstall it after clicking on uninstall.
  4. Stop OH2
  5. Check if the z-wave bundle isn’t listed in addons.cfg to be installed after start
  6. Copy the JAR file to /openhab2/addons folder.
  7. Start OH2.
  8. The binding was automatically installed
  9. Check if right version of Z-Wave is installed via shell command bundle:list I’m running snapshot 2.2. and z-wave was 2.3. If you have snapshot 2.3 I have no idea how to check the right version.
  10. Open PaperUI and search for new things, add them - PaperUI conveniently asks for Thing name before adding it
  11. When you preserved exact naming of things, the channels will be connected automatically
  12. When you’re done you can go to HABmin, go to things, you should see your z-wave devices adding and configuring it, it but it took some time and looked like errors
  13. If you had the lock added before you need to exclude it from the Z-Wave network
  14. Then you need to do inclusion within HABmin only
  15. Start Z-Wave inclusion by pressing the button with Magnifier and +
  16. Press the button once on Danalock V3
  17. The HABmin should found the lock
  18. Add it. As it’s battery powered it can take some time to recognize it

(Joe Ru) #55

Just a question:Is it included in 2.2 standard Z-Wave distribution?

Because - i did find it - but it is not able to recognize it as Danalock;

(Chris Jackson) #56

No - you need to use the version described a couple of posts above.

(Jochen Breh) #57

Hi Chris,
is there a plan to make the Danalock V3 support part of the official release?

(Chris Jackson) #58

Is the question specific to this lock? The binding will be merged into master at some stage, but I’m not sure what needs to be done specifically for the Danalock?

(Dan) #59

Happy to confirm that Danalock V3 works perfectly under the experimental binding

(Jochen Breh) #60

Hi Chris,
sorry, my question was misleading.
I want to know when the new version of the ZWave binding (which provides the Support for Danalock V3) is officially released.

Thanks for your help.