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
-
Yet another MQTT gateway for MySensors :)
Development • 11 Aug 2014, 20:52 • scurb 16 Aug 2014, 20:59 -
A mesh network for use with ESP8266 and MQTT
Development • 23 Apr 2017, 02:01 • PhracturedBlue 26 Dec 2017, 12:55 -
Raspberry Pi2 + MQTT Gateway in one box!
My Project • 18 Apr 2015, 03:36 • kunall 21 Apr 2015, 09:08 -
Openhab 2 Mysensors smart chicken coop
My Project • 1 Mar 2017, 02:08 • Ticupolu 8 Mar 2017, 15:48 -
PiDome Domotica/Home Automation
PiDome • 2 Sept 2014, 20:50 • John 13 Jan 2016, 22:53 -
Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway
OpenHAB • 1 Feb 2016, 18:41 • mbj 8 Mar 2016, 22:07 -
sendBatteryLevel: wrong nodeId?
Bug Reports • 5 Jan 2015, 08:50 • Xander 5 Jan 2015, 11:08 -
Can't get message from OpenHab to MySensor
OpenHAB • 26 Jul 2016, 05:30 • A Former User 27 Jul 2016, 04:58