Hello,
I have the latest OH2 Snapshot installed and the mqtt Binding is working well. My items can send or receive mqtt messages without and problems.
I also have installed the mqtt actions addon to publish mqtt messages in some rules (http://docs.openhab.org/addons/actions/mqtt/readme.html) , but this doesn’t work. I’ve put this into a rule:
publish(mosquitto,onc/test/tpc,messg);
But when the rule is triggered there is an error logged:
19:27:35.032 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Fluter-Schalter an/aus': An error occured during the script execution: The name 'mosquitto' cannot be resolved to an item or type.
But ‘mosquitto’ is the broker name I also use with my items without any issues. Do I have to configure the broker for the mqtt action addon separately from the mqtt binding? The mqtt.cfg files looks like this:
mosquitto.url=tcp://localhost:1883
mosquitto.clientId=OpenHAB2.0
mosquitto.user=openhab
mosquitto.pwd=mypwd
mosquitto.qos=1
mosquitto.retain=true
Can anyone help me sort this out?
Thanks in advance!