Openhab and mqttwarn - basic configuration

Hi,

I want to prepare mqttwarn and openhab to send some basic information. I’m using facebook for communication.
Mqttwarn iitself is configured properly - I’m able to send message with command:

mosquitto_pub -t “test” -m “test”

I’ve installed binding and added broker from UI:

image

Item:

String test_message { mqtt=“>[mqtt:broker:domek:test/info:state:*:default]” }

rule “Test message”
when
Time cron “0 0/1 * * * ?”
then
test_message.postUpdate(“test”)
logInfo(“MESSAGE”,“Message sent”)
end

Where I’ve made a mistake? I still can’t push a message.

This is configuration for the old v1 MQTT binding. What version of the binding do you actually have installed?

I’m sure your logs will be telling you what the issues are - what do the event and openhab logs say?

Here’s a page in configuring the current V2 binding MQTT stuff:

Thanks, you were right - old approach. Change in rule helped:

val actions = getActions(“mqtt”,“mqtt:broker:domek”)
actions.publishMQTT(“test”,“test message”)