Hi,
I have a problem with publishing messages, I managed to start openHAB finally and I see that it publishes messages to the broker when I run “mosquitto_sub -h 192.168.0.102 -p 1883 -t #” whenever I press a button in openHAB the message shows, but when i subscribe to a topic “inTopic/LED” nothing happens. My item file:
“Group All
Switch mqttsw1 “Switch 1” (all) {mqtt=”>
[broker:/inTopic/LED:command:off:OFF],>
[broker:/inTopic/LED:command:on:ON]"}"
My openhab.cfg only contains those 2 lines, maybe this is the issue?
“mqtt:broker.url=tcp://192.168.0.102:1883
mqtt:broker.clientId=openhab”
My sitemap file, for the reference:
“sitemap demo label=“Main Menu”
{
Frame label=“MQTT” {
Switch item=mqttsw1 label=“MQTT Switch 1”
Switch item=mqttsw2 label=“MQTT Switch 2”
}”
Can someone tell me where is it publishing and how to change it?
Thanks.