[SOLVED] How to install MQTT snapshot binding?

Hi,

my current system:

  • Platform information:
    • Hardware: raspberry pi 3 b
    • OS: Raspbian GNU/Linux 9 (stretch)
    • Java Runtime Environment: Java™ SE Runtime Environment (build 1.8.0_181-b13)
    • openHAB version: 2.4.0 (Build) stable
openhab> bundle:list -s | grep mqtt
259 x Active   x  80 x 1.2.0                  x org.eclipse.paho.client.mqttv3
261 x Active   x  80 x 0.10.0.oh240           x org.eclipse.smarthome.binding.mqtt
262 x Active   x  80 x 0.10.0.oh240           x org.eclipse.smarthome.binding.mqtt.generic
263 x Active   x  80 x 0.10.0.oh240           x org.eclipse.smarthome.io.transport.mqtt
openhab>

I would like to install the current MQTT snapshot binding. After deinstalling the MQTT 2.4 stable binding via PaperUI:

openhab> bundle:list -s | grep mqtt
openhab>

This seems to be ok. Then i have installed (copy to /usr/share/openhab2/addons):

org.openhab.binding.mqtt-2.5.0-SNAPSHOT.jar
org.openhab.binding.mqtt.generic-2.5.0-SNAPSHOT.jar

But then if found in openhab.log:

Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
Unresolved requirement: Import-Package: org.openhab.core.automation.annotation; resolution:="optional"
Unresolved requirement: Import-Package: org.eclipse.smarthome.io.transport.mqtt

How can I install “io.transport.mqtt” or is it necessary to install “paho.client.mqtt”?

If you uninstall the mqtt binding, then the “org.eclipse.smarthome.io.transport.mqtt” bundle will be uninstalled as well (because it is not used anymore).

You can selectively install it again by checking “features:list” for esh-mqtt-transport or alike.

Thank you!

In detail you mean this one:

feature:install esh-io-transport-mqtt

there is also a “openhab-transport-mqtt” ?

It get’s confusing nowadays. To be honest I have no idea. There was the old OH1 transport, called “openhab-transport-mqtt”. A new MQTT transport was created for Eclipse smarthome (“esh-io-transport-mqtt”). And now we have merged back everything from ESH and renamed all features (–> “openhab-transport-mqtt” ?)

So I really don’t know. But “esh-io-transport-mqtt” should probably be fine to satisfy “org.eclipse.smarthome.io.transport.mqtt”.

1 Like

O.K. Thank you very much!