I’m having an absolute nightmare getting MQTT working with OH2! I installed the MQTT binding and action through the Paper UI and configured the broker in mqtt.cfg and set set the broker in mqtt-eventbus.cfg and mqtt-persistence.cfg. As it stands, my commands aren’t going through for one reason or another. The commands I’m trying to send are being sent in rules using the MQTT action.
Whenever I make any changes to mqtt.cfg, no matter what they are, the log throws up:
[ERROR] [org.apache.felix.configadmin ] - Cannot use configuration org.openhab.mqtt for [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=297, bundle=194/mvn:org.openhab.action/org.openhab.action.mqtt/1.9.0.b4]: No visibility to configuration bound to mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.9.0.b4
From what I can understand of that, the MQTT action is trying to get some kind of data from mqtt.cfg (presumably the broker) but for whatever reason cannot access it or encounters an error? All I have in there is:
Which even I would struggle to get wrong!
The rule I was using worked fine in OH1, but I’ll post it here in case that is my problem due to changes I’m unaware of:
when Item CabinMainLight1 changed then var state = CabinMainLight1.state as OnOffType publish("broker","/home/cabin/lights/mainlights/1/com",""+state) end
I realise that this may be a bit of a bass ackwards way of doing things, but all I know is that it works and makes sense to me, plus I’m doing some stuff with RGB lighting which also has to be done via a rule, so doing it all this way makes sense to me, well, as much as anything does!
Help would be greatly appreciated.