How to update to latest Zwave Database?

Tags: #<Tag:0x00007f433bb97d20>

I am running OpenHAB 2.5.3 (latest stable). There is a new Zwave device in @chris zwave database that is not in the 2.5.3 stable yet.

Is there a way to just update the zwave database?

I just checked and I think the database was exported after than device was changed. It is usually exported about once a week.
The easiest way to update the binding is with the install script. you then need to delete the Tghing from OH (NOT exclude) and rediscover it to get the new settings.

Zigbee and Z-Wave manual install script - Tutorials & Examples - openHAB Community

Uninstall your current installed binding and install the latest snapshot binding: Download it and put it in your add on folder. OH will do the rest.

That is exactly what that script does. It is detailed in the accompanying README file.

True, but the script looks more complicated than my steps :wink:

I’d be curious to know if this works out for you. I tried the script and wasn’t fully successful adding it to a 2.5.3 system. First removed the old Z-wave binding, then used the script to install the snapshot. openHAB complained about the lack of the serial binding. Okay, back to the script, install the serial binding. Still unhappy, so uninstall the Z-wave binding and reinstall it again with the script. Success, until not success. The openhab.log doesn’t show any issue that I can see, but you can see below that it appears to be working, then it says the serial port does not exist, then it seems like it goes back online again. It’s not a permissions issue with the port because it works in 2.5.3 and it’s obviously partially working below - but then it gets lost for a bit and then works again…

Wrong version of serial binding? Probably I missed a step, but I’m not sure what I did wrong.

2020-03-25 16:29:46.922 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:ZoozStick:node10' has been updated.
2020-03-25 16:29:46.923 [vent.ConfigStatusInfoEvent] - ConfigStatusInfo [configStatusMessages=[]]
2020-03-25 16:29:46.967 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:ZoozStick:node6' has been updated.
2020-03-25 16:29:46.968 [vent.ConfigStatusInfoEvent] - ConfigStatusInfo [configStatusMessages=[]]
2020-03-25 16:29:48.513 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:ZoozStick:node10' has been updated.
2020-03-25 16:29:48.514 [vent.ConfigStatusInfoEvent] - ConfigStatusInfo [configStatusMessages=[]]
2020-03-25 16:29:48.560 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node6' changed from ONLINE: Node initialising: REQUEST_NIF to ONLINE
2020-03-25 16:29:52.077 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:ZoozStick' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist
2020-03-25 16:29:52.078 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node5' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.079 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node4' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.083 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node16' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.083 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node14' changed from ONLINE: Node initialising: REQUEST_NIF to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.083 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node12' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.083 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node7' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.084 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node10' changed from ONLINE: Node initialising: REQUEST_NIF to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.084 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node13' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.084 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node15' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.084 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node8' changed from ONLINE: Node initialising: PING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:29:52.084 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node6' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2020-03-25 16:30:25.366 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:ZoozStick' changed from OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist to ONLINE
2020-03-25 16:30:25.368 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node5' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.369 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node14' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.369 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node12' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.369 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node7' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.369 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node10' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.370 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node16' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.370 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node13' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.371 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node15' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.371 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node8' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.371 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node6' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.371 [me.event.ThingUpdatedEvent] - Thing 'zwave:serial_zstick:ZoozStick' has been updated.
2020-03-25 16:30:25.372 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node4' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
2020-03-25 16:30:25.376 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node12' changed from ONLINE to ONLINE: Node initialising: PING
2020-03-25 16:30:25.377 [hingStatusInfoChangedEvent] - 'zwave:device:ZoozStick:node4' changed from ONLINE to ONLINE: Node initialising: PING

@5iver any help with the script?

That’s because it is! Your steps would only work if the dependencies were already installed, like if the Zigbee binding were installed. If the dependencies are not met, then you need all of the steps listed in the readme to manually install it, which is a PITA… hence the script.

What version of script and where are the logs? My guess is that you supplied the wrong password the first time when you got an error about the serial transport. Rather than hijacking this topic, it would be better to troubleshoot this in your own topic or the script topic.

This sounds like an upgrade issue…

Well, it’s not Zigbee related and the z-wave binding was already installed. So that’s why I posted my steps.

I would strongly suggest not to post direct links to SNAPSHOT files like this - in a couple of weeks this will no longer work and people will ask the same question again after trying to follow your dead link.

The best option is to use the script. If you really want to post a link to the CI repository, then I’d suggest using this one and people can simply select the JAR for the current 2.5.x version.

1 Like

OK, thanks for the advice, I didn’t know that.

Kai has also asked that we do not post direct links to ci.openhab.org.

The ones from chris links to the latest version, without setting and specific one.

BTW @chris, can you point me to the link to download the stable .jar? Everywhere I look I only found the SNAPSHOT version.

Thank you

Whenever somebody asks for what they think is a solution to their issue I ask questions to insure they get what really helps.

What version of openHAB are you running?
Why do you think you need the latest stable jar? Usually if needing updated device support people need the latest snapshot which is easiest to get with the install script. The snapshot version of the zwave binding is extremely rarely broken.

I’m updating from 2.4 to 2.5.5. and when installing 2.5.6 SNAPSHOT binding I get an error:

[nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.initialize()’ on ‘org.openhab.binding.zwave.handler.ZWaveSerialHandler@5b9fff’: bundleContext

Found in the forum that this might be due a version error (core at 2.5.5 and binding at 2.5.6). That’s why I wanted the release jar to traceback the problem.

1 Like

You should just be able to delete or move the jar file and install the binding from the Paper UI.

Yes! But I want to install the SNAPSHOT version 2.5.6 and it doesn’t work. I wanted to test if this was caused by the version missmatch.

2.5.5 is the latest stable. 2.5.6 will likely be released about a month from now.

Hello, due to the current discussion I wanted to ask whether this type of update also applies to OpenHAB v3.x.x. ? Or has there something changed ?

Yes,
The script sometimes make it easier.
Zigbee and Z-Wave manual install script - Tutorials & Examples - openHAB Community