Page 1 of 1

MQTT connects but no messages

Posted: Tue Oct 27, 2015 6:35 pm
by Piet0r
Hi,

I am trying to interface my Opentherm Gateway with OpenHAB. I am using Mosquitto as an MQTT broker for this. I have configured otmonitor as follows:

Code: Select all

mqtt {
  devicetype cv
  deviceid otmonitor
  retransmit 10
  format raw
  port 1883
  qos 0
  keepalive 120
  username {}
  password {}
  enable true
  messages false
  client rpi1
  broker 192.168.0.21
} 
I have tried all formats (json, json2, json3 and raw) but I receive no messages on the MQTT broker. I check this by subscribing to all subjects with the command:

Code: Select all

mosquitto_sub -d -t /#
I also have some MySensors nodes and I can see the messages from those nodes on my screen. So Mosquitto is working fine.

Otmonitor also seems to connect to Mosquitto:

Code: Select all

$ netstat -an|grep 192.168.0.212
tcp        0      0 192.168.0.21:1883       192.168.0.212:59897     ESTABLISHED
But I don't receive any signals :( What is going on here?

Re: MQTT connects but no messages

Posted: Tue Oct 27, 2015 9:29 pm
by mike7
try to use

Code: Select all

mosquitto_sub -d -t events/#
or

Code: Select all

mosquitto_sub -d -t +/#

Re: MQTT connects but no messages

Posted: Tue Oct 27, 2015 10:00 pm
by Piet0r
Ah that's it! I wish everything was so easy :)