Is this the first time using MQTT or first time with a rule?
You can open another terminal on the same server to publish a message and receive the message on the other terminal window. This will verify the broker is installed and working.
Also try changing localhost to the server IP address or use 127.0.0.1
Hi first time with a rule a little of knowldedge of Mqtt
I does not have error on the log but the mosquitto_sub -d -t product/device/# that I run on the raspberry where openhab runs is not able to subscribe meanwhile if I use mosquitto_pub -t "product/device/alert" -m "ON" everything works fine, I am able to see ON on the terminal. I would like to send a message panic from the topic “mentorage/device” but when I enter in the else where ALLARME is printed my terminal does not receive the message I publish
In fact I can receive messages with Switch MQTT_Test "Testing..." { mqtt="<;[broker:mentorage/device/alert:state:default], >[broker:mentorage/device/alert:command:*:default]" }and if I publish on the raspberry terminal a message the state of this switch changes but I am not able to do the opposite.
Yes in the addons.cfg I have action = mqtt
and during the installation I have
2018-12-04 18:21:44.723 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.