MQTT Gateway + Node-Red + Vis
-
I have been playing around with the MQTT Gateway and Node-Red. I started with what user @Heinz did in a different forum topic however I am hoping to use MQTT.
First of all, node-red is a dead simple way to monitor MQTT traffiction. The question I have is about the messages created form the MQTT gateway.
I am only getting messages that "set" data. For example
{ "topic": "MyMQTT/20/0/V_HUM", "payload": "53.5", "qos": 0, "retain": false, "_msgid": "a3f256c8.5c0da8" }but I never see any presentation messages or ack messages. I took a look at the MQTT code but I don't know C++. Is there a difference between the serial gateway and the mqtt gateway? Meaning is there more functionality in the serial gateway?
By the way the vis app for node-red, https://www.npmjs.com/package/node-red-vis
, has some nice functionality. Pretty easy to add switches. I think you need your sensor IDs to be static but I think you could easily create a widget to display sensors that are new. -
The 'default' MQTT Gateway doesn't support all message types.
I hacked the MQTT Client Gateway to support:
- sketchinfo
- sketchversion
- time
- batterylevel
http://forum.mysensors.org/topic/524/mqtt-client-gateway/27
There are articles about the serial gateway and node-red in this forum. This could be another solution for you.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login