Hi
im a newish starter to openhab2 but im having a few issues. I had openhab 2.1 running ok on a laptop but unfortunately it died and left me installing it on a new laptop again.I have installed openhab2 2.1 again got it running as a windows service. I have the mosquito broker running as a windows service and seeing the commands in mqttfx from the sonoff basics with but on the openhab log im seeing “MQTT Service initialization completed” but not started?. Also I have had to rebuild my .items folder and .things folders.
2018-10-22 12:53:28.603 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘sonoff.items’
2018-10-22 12:53:28.686 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘Sonoff.Strings.items’
2018-10-22 12:53:28.724 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘Sonoff.Wifi.Signals.items’
2018-10-22 12:53:30.936 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-10-22 12:53:31.257 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-22 12:53:31.360 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
since you are on OH 2.1 (why not 2.3 ?) you are still using the MQTT v1 binding
The MQTT v2 is only available for testing on the 2.4 snapshot releases.
So… no need for .things stuff and channels (this is coming soon with the MQTT v2 world)
Use the old style configuration for items to bind them to the MQTT v1 world
unless you deployed manually the MQTT v2 jar on your OH 2.1… (I don’t think that it would work)
I did try 2.3 but got a load more errors and couldn’t work out what was wrong so I went back to what I thought would work easier lol. I haven’t deployed v2 jar that im aware of ive only added the mqtt service from the paper ui?
my mqtt config
Define your MQTT broker connections here for use in the MQTT Binding or MQTT
Persistence bundles. Replace with an ID you choose.
URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
Thank you it started but I now get the following error. sorry for been a pain
2018-10-22 22:38:45.805 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-22 22:38:45.992 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-10-22 22:38:46.055 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
java.lang.IllegalArgumentException
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateWill(MqttConnectOptions.java:168)[214:org.openhab.io.transport.mqtt:1.10.0]
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.setWill(MqttConnectOptions.java:158)[214:org.openhab.io.transport.mqtt:1.10.0]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:344)[214:org.openhab.io.transport.mqtt:1.10.0]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:99)[214:org.openhab.io.transport.mqtt:1.10.0]
at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:115)[214:org.openhab.io.transport.mqtt:1.10.0]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Unknown Source)[:1.8.0_191]
Thank you for the help its working…party time……… I had to uninstall everything and reset windows to default settings (probably a bit over kill) then re install mosquito and then openhab 2.3 (thought i would give it another go as I was loosing the will to live)and it works ace… I have noticed in the log that im getting failed to execute “arping”? is this something I need to run sonoff basics and pro`s or is this something I can disable somehow ? can anyone shed some light what it is or what is should be doing? I am planning on expanding this system to incorporate dht11 temp and humidity sensors and audio/visual equipment at a later date so if its needed then I can cope with the error in the log.
thanks again for the assistance and hopefully one day I can return the favour in helping someone else out.