MQTT connects but no messages

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
Piet0r
Starting Member
Starting Member
Posts: 2
Joined: Tue Oct 27, 2015 6:26 pm

MQTT connects but no messages

Post 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?
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: MQTT connects but no messages

Post by mike7 »

try to use

Code: Select all

mosquitto_sub -d -t events/#
or

Code: Select all

mosquitto_sub -d -t +/#
Piet0r
Starting Member
Starting Member
Posts: 2
Joined: Tue Oct 27, 2015 6:26 pm

Re: MQTT connects but no messages

Post by Piet0r »

Ah that's it! I wish everything was so easy :)
Post Reply

Return to “Opentherm Gateway Forum”