MQTT connects but no messages

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

Moderator: hvxl

MQTT connects but no messages

Postby Piet0r » Tue Oct 27, 2015 5:35 pm

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?
Piet0r
Starting Member
Starting Member
 
Posts: 2
Joined: October 2015

Re: MQTT connects but no messages

Postby mike7 » Tue Oct 27, 2015 8:29 pm

try to use
Code: Select all
mosquitto_sub -d -t events/#

or
Code: Select all
mosquitto_sub -d -t +/#
mike7
Member
Member
 
Posts: 69
Joined: December 2013

Re: MQTT connects but no messages

Postby Piet0r » Tue Oct 27, 2015 9:00 pm

Ah that's it! I wish everything was so easy :)
Piet0r
Starting Member
Starting Member
 
Posts: 2
Joined: October 2015


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest