OpenHAB2 and Smarthomatic binding

Does anybody here uses the smarthomatic binding with OpenHAB 2 (here 2.2)? I get an error with the current version from cloudebees (1.11.0).

15:48:59.313 [ERROR] [org.openhab.binding.smarthomatic    ] - FrameworkEvent ERROR - org.openhab.binding.smarthomatic
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.smarthomatic [206]
 Unresolved requirement: Require-Bundle: org.junit; resolution:="optional"
 Unresolved requirement: Require-Bundle: org.openhab.core.transform

How to get the smarthomatic binding to work with openHAB2 ?

I am still wondering how I can get it to work. I’ve absolutely no knowledge about compiling the java source :frowning:
So junit seems to be a java framework for tests, it is also hosted on github (see here for version 4.10 which is required by the smarthomatic binding).
I found it in the file MANIFEST.MF line 15, in file line 11, 19 & 20 and in file in line 11, 15 & 16.
For me it looks that these parts are only there to test that the interpreter for smarthomatic messages works correctly. Is it mandatory for the function of the binding? But to be honest I do not understand how the code works. :roll_eyes:

Can anybody with more java knowledge than me look through and provide me a solution, please? :pray:

Still no solution to my binding problem. For the time being I use the serial binding for my smarthomatic devices. For example this item definition

String SmarthomaticBase "SmarhomaticBaseData" (gSensor) { serial="/dev/ttyUSB0@19200,REGEX((Sender.*)$)" }

catches the decoded message from my base station. And an item definition like

Number SH2_Temp "Temp. Sensor2 [%.1f °C]" (gTemp) { serial="/dev/ttyUSB0@19200,REGEX(SenderID=2;.+Temperature=([0-9.]+))" }

captures the temperature value from this string. All items are updated the same time if the value is part of the same message. Very nice! Unfortunately some messages are not fully decoded and I get the message data as byte series. In this case the message data is a hex string that has to be decoded according the message cataloge of smarthomatic.

How do I transform a hex strings first 7 bit to a number?
e.g.: (hex=BA00… > bin=1011101000000000… > first7bit=1011101 > dec=93)
Or bit 8 and the following two bytes?

Can I use a transform script in the item definition, but how to combine regex and transform?