- Platform information:
- Hardware: Raspberry Pi 3 Model B Rev 1.2_
- OS: Raspbian GNU/Linux 8 (stretch)
- OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122)
- openHAB Version: OH2.5.4 (apt-get), text-based config
- binding = expire1,fritzboxtr0641,mqtt1,weather1,astro,exec,network,ntp,systeminfo,logreader
- ui = paper,basic,classic,restdocs
- persistence = rrd4j,mapdb
- action = mail,mqtt
- transformation = map,javascript,xslt,scale,jsonpath
I just did an apt-get update/upgrade, resulting in a bunch of errors.
I think I was on 2.4.0-something before the upgrade.
One error is that OH does not connect to the mosquitto broker on the same rPi.
The broker is working receiving messages, but OH does not pick these up.
No changes have been made to the config; all that was done was a apt-get update & upgrade.
My mgtt.cfg:
pid:org.openhab.mqtt
mymosquitto.url=tcp://localhost:1883
mymosquitto.clientId=openhab2
mymosquitto.retain=true
However, I noticed an error msg:
2020-04-21 18:03:39.169 [WARN ] [g.dispatch.internal.ConfigDispatcher] - The file /etc/openhab2/services/mqtt.cfg subsequently defines the exclusive PID 'org.openhab.mqtt'. Overriding existing configuration now.
I have no idea where the existing configuration is it is referring to.
[edit 1] Saved mqtt.cfg again (w/o making changes), and it created this error:
2020-04-21 19:19:54.369 [ERROR] [org.apache.felix.configadmin ] - Cannot use configuration org.openhab.mqtt for [org.openhab.io.transport.mqtt.MqttService, org.osgi.service.cm.ManagedService, id=367, bundle=226/mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.14.0]: No visibility to configuration bound to mvn:org.openhab.action/org.openhab.action.mqtt/1.14.0
[edit 2] found another file: mqtt.config
# [2020-04-21 19:30] maxg@rpi3ohv2 /var/lib/openhab2/config/org/openhab $
cat mqtt.config
:org.apache.felix.configadmin.revision:=L"5"
mymosquitto.clientId="openhab2"
mymosquitto.retain="true"
mymosquitto.url="tcp://localhost:1883"
service.pid="org.openhab.mqtt"
deleted it; saved mqtt.cfg and the file reappeared.
Interestingly enough, I removed the PID form the mqtt.cfg, but it reappears in the mqtt.config.
[edit 3]
Checked the console, both mqtt action and binding are there:
213 │ Active │ 80 │ 1.14.0 │ openHAB Mqtt Action
219 │ Active │ 80 │ 1.14.0 │ openHAB MQTT Binding