Z-Wave in OH2

164 views
Skip to first unread message

Sebastian Janzen

unread,
Jan 7, 2015, 9:49:22 AM1/7/15
to open...@googlegroups.com

Hi Folks!

I'd like to know about the progress made with Z-Wave binding for OH2. Especially, I'd like to know where the Problems are and where (maybe I) can help to get the Kid running.

I saw the beginning of this discussion but that drifted to a HABmin discussion.

Thanks
Sebastian

Chris Jackson

unread,
Jan 7, 2015, 10:37:12 AM1/7/15
to open...@googlegroups.com
I've currently not progressed this. The binding has a couple of issues that causes problems with OH2. I can fix these reasonably easily (I think), but the problem is that there is a significant development ongoing at the moment on the OH1 binding, and I want to avoid forking off a new version for OH2 until this is merged or it could get very messy as there are a LOT of changes to the code to support the enhanced initialisation. I had hoped that this would be merged soon, but I think it might be another couple of weeks.

I'm very keen to get this running on OH2, but on the other hand, I also want to avoid any mess with multiple versions that I need to maintain. One other option is to only modify the new version for OH2 and maybe I'll take a look at this over the coming weekend...

Chris

Kai Kreuzer

unread,
Jan 7, 2015, 4:10:25 PM1/7/15
to open...@googlegroups.com
One other option is to only modify the new version for OH2 and maybe I'll take a look at this over the coming weekend…

Seeing the activity around the Z-Wave binding fpr openHAB 1, I would not suggest moving your efforts to OH2 yet.
It will still be a few months before users should move to the OH2 runtime. Actually, for a smooth transition, it might be a better idea to check if the OH1 Z-Wave binding works with the compatibility layer of OH2 and thus can be used there as well. We could then take the necessary time to check the architectural changes for adopting it to the new APIs. As Z-Wave is one of the most complex and active bindings, I would not want to hurry on this.

Just my two cents,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/f5ede153-96f5-4e8c-bc61-0bfcf7b64600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Jackson

unread,
Jan 7, 2015, 4:17:28 PM1/7/15
to open...@googlegroups.com

> On 7 Jan 2015, at 21:10, Kai Kreuzer <k...@openhab.org> wrote:
>
>> One other option is to only modify the new version for OH2 and maybe I'll take a look at this over the coming weekend…
>
> Actually, for a smooth transition, it might be a better idea to check if the OH1 Z-Wave binding works with the compatibility layer of OH2 and thus can be used there as well.

Hi Kai,
That’s actually what I meant - I’ve already had an initial look and found a problem. At the moment, there are effectively 2 versions of the OH1 binding as there’s a reasonably major refactor ongoing - so I meant to modify the refactored branch to work with OH2 in compatibility mode. One issue is detecting the different folder structures - i.e. there’s no /etc folder in the OH2 and this is a problem. I can probably add something to detect this - or, we could just add a /etc folder for now - what do you think?

Chris

Kai Kreuzer

unread,
Jan 7, 2015, 4:22:27 PM1/7/15
to open...@googlegroups.com
> One issue is detecting the different folder structures - i.e. there’s no /etc folder in the OH2 and this is a problem. I can probably add something to detect this - or, we could just add a /etc folder for now - what do you think?

I would suggest to implement an automatic detection. It should suffice to check, if the system property „smarthome.userdata“ is set and if so, simply use its value as the folder instead of etc.

Best regards,
Kai
> --
> You received this message because you are subscribed to the Google Groups "openhab2" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
> To post to this group, send email to open...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/7847BBF5-0D7A-4011-BDD0-DF22B7626EC9%40cd-jackson.com.

Chris Jackson

unread,
Jan 7, 2015, 4:23:27 PM1/7/15
to open...@googlegroups.com
Thanks - that’s along the lines of what I was thinking…

Cheers
Chris

Chris Jackson

unread,
Feb 15, 2015, 3:22:24 PM2/15/15
to open...@googlegroups.com
This is now implemented in the HABmin test version, and I expect to merge this into the main repo at the end of this week unless testers find issues...  It should now detect OH1 or OH2 and store the node XML files in either the etc or userdata folders...

Any issues, please let me know.

Chris

Kai Kreuzer

unread,
Feb 15, 2015, 4:32:26 PM2/15/15
to open...@googlegroups.com
Cool, thanks!

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages