I tried to add a new Sensative Strips Guard 700 (Model 11 01 021) with the Z-Wave-Binding to Openhab (Version 2.5.8-1). However the thing is even after several manual wakeup not recognized: It’s “Online” but still “Unknown Device”.
@chris : Thank you for your fast reply.
Unfortunately, updating to OH3 is currently not an option - I ordered in November 2021 a new Raspberry Pi 4 4GB for setting up / migrating to OH3. However the estimated delivery date is currently August 2022!!!
So I guess I will try the only other possibility
a) Where do I get the XML for this device (Sensative Strips Guard 700 (11 01 021))?
b) Could I just add that XML for this device to the org.eclipse.smarthome.core.thing.Thing.json in /var/lib/openhab2/jsondb? Or which JAR do I have to unpack and edit?
c) Is my assumption correct, that I need to remove the already adding thing with “Unknown Device” and re-add it afterwards again?
The general process to add an XML (download from the Z-wave DB) to a jar in OH2 is here. IIRC the Z-wave jar in 2.5 is in your addons folder. I don’t know about your jsondb idea. I think just waking the device after the updated jar is in place will work, but not sure on that. You could try that before excluding/redadding.
If you log on to the database site, then there is a button to download the OH2 XML (it’s one of the options in the dropdown menu at the top of the device page).
No - this won’t work. The json file stores your things - not the thing types.
You need to unpack the ZWave binding JAR. Somewhere in there you will find all the XML files in a folder - probably it is in /src/main/resources/OH-INF/things or something like that - but it has moved a few times and I can’t remember if it changed for OH3. It will be obvious though.
No - there will be no need to remove and add it again.
I found on my Raspberry the ZWave binding JAR in the following directory:
No IIRC the script just combines some common needs. For instance when you install the binding via the addons folder you need to go into the console and feature:install openhab-transport-serial. That is automatically installed when you use the UI. Also it might do a clean-cache and an OH restart. Those are not necessary in all cases (if it doesn’t work you can do after).
I would expect that you should not modify the JAR while the system is running.
Yep - I think this would be the safest approach
Good question. In general, you never "had to’ use the script but it made life easier. I’m not 100% sure as I’ve never used it and OH2.5 was a long time ago. I’d suggest it;s worth using it if you’re unsure of what to do as probably other bundles to be installed.
@chris & @apella12 : Thank you for your help. It worked - the new Sensative Strips Guard 700 (Model 11 01 021) is now recognised and working in OH2.5!
In short what I did - in case anybody else is interested:
Exported XML-Definition for desired Device (Sensative Strips Guard 700 (Model 11 01 021) form Z-Wave Device Database ( OpenSmartHouse Z-Wave Device Database)
(you need to log-in to the database and you need to have according access rights to see and download the XML-File with “Export OH2 XML”)