I have downloaded OH2 Snapshot build from 11. January 2016 and started migration from OH1 to OH2. The reason for this is that I am planning to develop a new Binding for ZoneMinder. For that reason I think migration is the best option.
I have some bindings that I considder as “need to have”:
MQTT / MQTTitude
Nice to have is OneWire and weather stuff (which already seems to be on 2.0)
I have concentrated on Z-Wave, since I belive the involvement of hardware will cause some troubles.
After some struggle (doing all the mistakes that others have done I now have a configuration that can start and load the Z-Wave binding (I have checked the binding status by typing “list”, and verified that it reports active for Z-Wave. The problem is that it just seems to start and then just stop again.
[INFO ] [ng.zwave.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
[INFO ] [ng.zwave.internal.ZWaveActiveBinding] - Update config, healtime = 2
[INFO ] [ng.zwave.internal.ZWaveActiveBinding] - Update config, setSUC = true
[INFO ] [ng.zwave.internal.ZWaveActiveBinding] - Update config, softReset = false
[INFO ] [ng.zwave.internal.ZWaveActiveBinding] - Update config, masterController = true
[INFO ] [b.core.service.AbstractActiveService] - ZWave Refresh Service has been started
[INFO ] [ve.internal.protocol.ZWaveController] - Starting Z-Wave controller
[INFO ] [ve.internal.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
[INFO ] [ve.internal.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
[INFO ] [ve.internal.protocol.ZWaveController] - Serial port is initialized
[INFO ] [.openhab.core.internal.CoreActivator] - openHAB runtime has been started (v2.0.0, build b1).
[INFO ] [ve.internal.protocol.ZWaveController] - Disconnected from serial port
[INFO ] [ve.internal.protocol.ZWaveController] - Stopped Z-Wave controller
I am running on a Raspberry Pi 2 B (Jessie), OH 1 is running on the same Raspberry (so it should not be a error in the tty port.
The problem is that it just disconnect (the log lines are taken from its original context (eg. a few seconds).
In OH 1 I should put some magic to allow tty communication I have tried that in the keraf script, but still no luck. It seems to do a difference wheter I run as pi user or root user. I can see others that have had similar troubles, but all threads seems to stop when things suddenly works - so I guess there might also be a solution?
What have I forgotten to think about?
Btw. Habmin isn’t loading at all, but I guess I only need Habmin for configuration reasons?
I have done some further investigations / experiments:
Installed the alpha2 build (where the OpenHAB structure looks familiar to OH1 (with start.sh scripts etc). When using the addons from that build, zwave starts as it use to. Looks like they are organised pretty much like in the old OH1 days, but it is also 1.7.0. Then I thought that I would try to repålace the jar with the one from the OH 2.0.0.b1 build. That didn’t load at all, but alright since things seems to have changed so dramatically that could have a natural reason.
Can anybody tell me if the alpha2 build can be used as a reasonable platform for developing and testing OH2 bindings? Or have things changed so much recently that it is a problem?
Yes, through the introduction of Karaf things have indeed changed a lot (see also here). So testing should definitely be done on beta1.
Testing ZWave 1.8 and HABmin1 on openHAB 2 does not really bring much value though, since a ZWave 2.0 binding and HABmin2 is in the works and the final release of openHAB 2 will ship with them.
So since I am confident that the ZWave 1.8 binding will soon be fixed to work smoothly on beta1 as well, you are then of course free to use it - but we should not consume too much of @chris’ valuable time on this but rather let him finish the 2.0 version of the binding!
Sorry - I’ve not had a chance this week as I’ve been extremely busy at work
I’ll take a look shortly, but I don’t really see what’s changed in the binding and 1.8 was working fine with 2.0 until the final release was made (at least it was/is here as I’ve not upgraded). @kai was something else changed that could cause this?
Is this problem only with the RPi, or other systems?
Yes, as mentioned here, the big change is that we now have Karaf as a container. And Karaf seems to be more strict on following the OSGi specification. I don’t know what could be the specific problem here, so I hoped you have a chance to debug (if it does not happen in the IDE (which does not use Karaf), it is best to use remote debugging on a distro.
Not sure about other systems, only have rpi2. seems like quite some people have this problem though. If you are too busy we will wait for the zwave2 launch though. ill press those light switches manually meanwhile:)