MQTT support

Hi

I would like the abillity to publish information to a MQTT server.
MQTT is the perfekt information carrier in a home automation senario.

There are publick free MQTT servers out there and you can set up one of your own in very short time.

Moscuitto is a free opensource version that I use. https://mosquitto.org/

If you have a MQTT server your IoT can publish and/or subscribe to information to/from that server.

That way I could use the information published from WD to MQTT for my heating system att home to predict that the weather is getting colder and I then need to raise the amout of heat inside the house. Or irregation system get the information from WD that there has been no rain for 7 days and my lawn needs some water…

In my view it seams easy to publish the values in clientraw to seperate topcis on the MQTT server, maybe with option to select what values to publish. Maybe some historic values to.

I was thinking of building a clientraw parser to publish the information, but I don’t think it’s to hard to integrate it in WD and I think more people could have use for it.

Regards Peter!

Agree, like the idea. Should be very useful.

:smiley: Agree it would be great for OpenHAB use too.

I have found a component I can use that looks easy to use, so yes , this is doable

see if this test program can connect and publish
http://www.weather-display.com/downloadfiles/MQTT_Test.zip

Morning - Just wondering if MQTT could be built into WD. I have a node.js script at the moment pulling Clientraw and splitting into topics but it crashes when it clashes with my client raw file creation.

So (and i know its another request :slight_smile: - the option to publish to MQTT and split Clientraw into topics that could be subscribed to would be amazing. At the moment my test goes to Adafruit.io and controls a servo with wind speed…

Andy

I was wanting someone to test, see my post above that you have replied to

Happy to be a tester - it connects, subscribes and publishes - i did get and error message and the publish comes up in non descript text on the viewer (but publishes fine - i subscribed via MQTT Box).

Andy


Screen Shot 2018-10-02 at 12.31.26.png

That looks like an encoding error
e.g. I probably need to use utf8

I have found a component that is working correctly now for getting a message back from test.mosquitto.org

test program:
http://www.weather-display.com/downloadfiles/cronmqtt.zip

HI
MQTT support has now been added to the latest version of WD :slight_smile: