I’m currently for the first time trying to develop a binding to control my Ziggo Next set-top-box.
As a lot of communication is running over MQTT with a Liberty Global server, but as the login credentials have to be periodically re-requested over HTTP, I couldn’t figure out a good way to do this using existing bindings.
So therefore I first made something work in Python scripts that I called from rules or ExecBinding items, but that’s far from ideal.
So, not having background in Java coding, no experience with Eclipse, Maven and so on, I gave it a shot. I’m slowly learning (and struggling ), so if I’m making rookie mistakes: please forgive me and bare with me.
So I now came to the point where I want to set up an MQTT connection with the external servers of Liberty Global. And I simply cannot figure out what I should use. I know that Paho MQTT has been used in the past, but apparently it is not in the “standard package” in Eclipse, and org.eclipse.smarthome.io.transport.mqtt is. So I gave that a shot first, but when I try to run or resolve the app.bndrun in Eclipse, I start getting errors like these:
Resolution failed. Capabilities satisfying the following requirements could not be found: [<<INITIAL>>] ⇒ osgi.identity: (osgi.identity=org.openhab.binding.ziggonext) ⇒ [org.openhab.binding.ziggonext version=184.108.40.206911162153] ⇒ osgi.wiring.package: (&(osgi.wiring.package=org.eclipse.smarthome.io.transport.mqtt)) ⇒ [org.openhab.core.io.transport.mqtt version=220.127.116.11911150310] ⇒ osgi.wiring.package: (&(osgi.wiring.package=com.hivemq.client.mqtt.datatypes)(&(version>=1.1.0)(!(version>=2.0.0)))) ⇒ [com.hivemq.client.mqtt version=1.1.2] ⇒ osgi.wiring.package: (&(osgi.wiring.package=dagger))
Can someone tell me what I am doing wrong, and which MQTT implementation is recommended?