MQTT gateway - Openhab & Mosquitto
-
Hi guys, I am running 1.4 version of mqtt gateway with some sensors.
What I found that in my case if I subscribe to MQTT gateway directly using mosquitto ( to check sensors communication ) , it will disconnect OpenHab client and will never reconnect until I restart Openhab mqtt bundle or the gateway. I wonder if there any workaround to this .. or is it maybe possible to somehow subscribe to mqtt using mosquitto and forward these under different topic to openhab ? That would make it easier instead of configuring 2 different brokers in Openhab.
Appreciate any suggestions.....
-
set the mysensor gw to connect to mosquito, then Openhab to Mosquito
-
Do you know what would I need to configure for this to work automatically ?
Does mosquitto automatically re publish topics its subscribed to ?
-
@alexeinz figured it out, apparently had to add experimental and get latest mosquitto for the conf file to work correctly , now the bridge is working perfectly
--- broker.conf file in /etc/mosquitto/conf.d
the topics coming from gw will appear under sensor/# on mosquittoconnection MMQTTtoSensor
address 192.168.1.234 <-gw ip
clientid MyMQTT
cleansession true
notifications true
topic # in 2 sensor/ MyMQTT/
Suggested Topics
-
Is MQTT Necessary? or, Use Case for MQTT?
Controllers • 28 Mar 2016, 01:12 • TRS-80 9 Jan 2020, 09:01 -
Communication problems between MQTT Gateway (OrangePi) and Node (Arduino Nano)
Troubleshooting • 1 May 2019, 19:22 • gammlerstyle 5 May 2019, 18:01 -
processing incoming MQTT messages to actuate gateway local relay / variable.
Troubleshooting • 12 Nov 2016, 22:59 • Meshx86 13 Nov 2016, 16:40 -
RFM69 MQTT gateway radio send loop
Troubleshooting • 31 Oct 2019, 11:40 • alexelite 1 Nov 2019, 22:00 -
CC3000 and ethernet/MQTT gateway
Hardware • 29 Jan 2015, 14:09 • bomber 6 Jan 2016, 01:20 -
Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway
OpenHAB • 1 Feb 2016, 18:41 • mbj 8 Mar 2016, 22:07 -
Boxes and Enclosures
Enclosures / 3D Printing • 29 Mar 2014, 21:02 • PITP2 31 Aug 2014, 19:27 -
Yet another MQTT gateway for MySensors :)
Development • 11 Aug 2014, 20:52 • scurb 16 Aug 2014, 20:59