Howto Test BiSecure Binding:
There is a new version of the binding uploaded with better logging. Please youse the new one.
First increase Log Level for Binding:
# cd /usr/share/openhab2/runtime/bin/
# ./client
In Karaf console:
openhab> log:set DEBUG org.openhab.binding.bisecuregateway
Then activate the Binding. The first time you have to copy the org.openhab.binding.bisecuregateway-2.5.1-SNAPSHOT.jar file to /usr/share/openhab2/addons
If you have the binding already installed, please disable the things created (PaperUI: alarm clock symbol at the thing) and enable it again.
Wait until all things come online again and please post the Logfile entries of the BiSdkLoggerAdapter here or send them via mail to me: contact@thomas-letsch.de (latter is probably better to not pollute the forum)
Be aware that these log messages contain the password (encoded, but not encrypted) you used for logging in into your BiSecure GW. If you do not want to send this over the network, search for
“Sending package command: Command(code=16 (10), name=‘LOGIN’)” and delete the following payload hex string and the hex string after the following “Sending transport container” log entry.
The connection of the binding to the bi secure GW is very unstable. Therefore you will see a lot of info messages like “Received EMPTY answer => reconnecting…” or “Received Exception Connection reset => reconnecting…” and a folowing LOGIN attempt etc.
I’m not sure if I use the API wrongly or if the GW is such unstable. From my experience with the app I suspect that both is true.
You should use a different username and password in the gateway for openhab since the user can only be logged in once. The app will throw out your openhab user (and vice versa).
I know that currently the open close status is always 100 or 0. Known bug I am stil investigating…
You can see the whole answer of the HM_GET_TRANSITION command, especially the HCP section. Please check if this information is correct.
And please send me some info about what devices you teached the app with what parameters (and how you did the teach-in). That should give me some data to match.