Closed vzorglub closed 5 years ago
Is the ESH MQTT installed?
Please verify with: bundle:list
in the karaf console.
If it is missing install it with: feature:install esh-io-transport-mqtt
Hi,
I'm getting exactly the same error. Already asked in the opehab forum if there was something known about it. esh-io-transport-mqtt is installed. Got a perfect running mosquitto-server as well as a runnig mysensors-mqtt gateway. In the config directory there is a file called org.eclipse.smarthome.mqtt.cfg also running the latest openhab 2.4, but it also happend on a 10 day earlier version.
Yes it is installed
265 │ Active │ 80 │ 0.10.0.201809111909 │ Eclipse SmartHome MQTT Transport Bundle
266 │ Active │ 80 │ 2.3.0.201803141156 │ MySensors Binding
@vzorglub & @arjveld : Please try out this version: Download
Due to API changes the MQTT implementation needed some changes: https://github.com/eclipse/smarthome/pull/5535
I get this as soon as I copy the jar file in the addons directory:
2018-09-28 15:26:10.519 [WARN ] [org.apache.felix.fileinstall ]
- Error while starting bundle:
file:/usr/share/openhab2/addons/org.openhab.binding.mysensors-2.4.0-mqtt-api-change.jar
org.osgi.framework.BundleException: Could not resolve module:
org.openhab.binding.mysensors [261]
Unresolved requirement: Import-Package: gnu.io
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
[10:org.apache.felix.fileinstall:3.6.4]
On Fri, 28 Sep 2018 at 10:26, Tim notifications@github.com wrote:
@vzorglub https://github.com/vzorglub & @arjveld https://github.com/arjveld : Please try out this version: Download http://oberfoell.com/openhab2/org.openhab.binding.mysensors-2.4.0-mqtt-api-change.jar
Due to API changes the MQTT implementation needed some changes: eclipse/smarthome#5535 https://github.com/eclipse/smarthome/pull/5535
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tobof/openhab2-addons/issues/123#issuecomment-425377896, or mute the thread https://github.com/notifications/unsubscribe-auth/ASmb4I7FYkdkNp0v56pQTnBh8zYIFSswks5ufetDgaJpZM4WpG5N .
Please install the serial feature:
feature:install openhab-transport-serial
Now i get:
2018-09-28 20:55:33.075 [WARN ] [org.apache.felix.fileinstall ]
- Error while starting bundle:
file:/usr/share/openhab2/addons/org.openhab.binding.mysensors-2.4.0-mqtt-api-change.jar
org.osgi.framework.BundleException: Could not resolve module:
org.openhab.binding.mysensors [270]
Unresolved requirement: Import-Package: org.eclipse.jdt.annotation;
resolution:="optional"
Unresolved requirement: Import-Package:
org.eclipse.smarthome.io.transport.mqtt
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
[10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
[10:org.apache.felix.fileinstall:3.6.4]
On Fri, 28 Sep 2018 at 17:11, Tim notifications@github.com wrote:
Please install the serial feature: feature:install openhab-transport-serial
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tobof/openhab2-addons/issues/123#issuecomment-425486432, or mute the thread https://github.com/notifications/unsubscribe-auth/ASmb4G5MOX0A5FeMTMp11lNJ5V5ryZ0Hks5ufkoWgaJpZM4WpG5N .
It's working with Build 1377 for me.
Did you check for the MQTT bundle again?
feature:install esh-io-transport-mqtt
Yes mqtt bundle installed I am on build 1377 And I am getting:
2018-10-01 10:10:55.115 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.mysensors-2.4.0-mqtt-api-change.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [261]
Unresolved requirement: Import-Package: gnu.io
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]
As soon as I dump the jar file in the addons directory
What is gnu.io?
Both gnu.io (for serial gateways) and esh-io-transport-mqtt (for MQTT gateways) are needed by the binding.
I've executed: feature:install openhab-transport-serial
and feature:install esh-io-transport-mqtt
dumped the jar in the addons folder and everything came up just fine.
Ok after installing the serial it works I did it before though but it's now online Yeah
Hi @tobof tobof, I know you have colsed this but I still have a problem
After restarting OH I have to do:
feature:install feature:install openhab-transport-serial
in order for the binding to come alive
Why do I have to do this everytime?
Anyway to install this feature permanently?
EDIT I have thought of something. I use manual binding configuration in the addons.cfg If I add the serial binding to the list would that install that feature? And is that why the feature is not retained after a restart? Or what would I need to add the the addons.cfg for it to load on start up?
Hi @vzorglub , you have to do that only on a fresh OH installation or in case of an upgrade. The problem you experienced is well known in the OH community (see here, or here) The solution of that problem will come when the MS binding will be integrated inside the openhab2-addons official repository.
Current Behavior
After defining the thing as per the installation guide
Error in OH log:
Possible Solution
Your Environment
New install Ubuntu Server 18.04 Openhab latest snapshot 1361 Java: