Yet another MQTT gateway for MySensors :)
-
Hi,
Just wanted to give an early "heads up" of a gateway I'm creating in order to have the wonderful world of MySensors at home with a RabbitMQ server and openHAB as HA controller. I wrote the following blog post on http://blog.scurb.se/homeautomation/my-own-mysensors-gateway/.
I had no intention to write this post as a "advertisement post", I hope it was not taken as such. I'm about to clean up and prepare the project in order to publish on GitHub.
Best regards,
Patrik
-
Patrik, looks great!
-
@scurb Any reason why you chose RabbitMQ? Did you try e.g. Mosquitto?
Nice work btw (impressive file structure!)
-
Thanks for the positive response!
@Yveaux - RabbitMQ was my choice primarily because of:
- I have other applications using AMQP protocol and Rabbit supports multiple protocols (amqp, mqtt, xmpp etc)
- I previously worked with RabbitMQ so it was less "unkown" among the many brokers.
- I like the possibility of setting up central services as active/active and active/passive nodes. Even though I haven't the actual need for such a high availability solution at home
However, the application should be broker agnostic and support to connect over MQTT no matter which message broker used.
/Patrik
-
@scurb said:
However, the application should be broker agnostic
Of coarse, but I just wondered how you came to select that broker. I only used mosquito so far.
-
@scurb This looks very interesting and my factor now to save me from having to create my own :-). I have been planning to do the same thing (although maybe on a smaller software scale) by writing a simple Python server that would pull serial packets off of a gateway arduino (either running mysensors or something I write myself) and pipe this through MQTT to openHAB. I have two questions:
-
How do you interface with a sensor network? Do you go through a serial connection to read the serial packet format (a,b,c,d)? I see several implementations that put the mqtt client directly on the Arduino, but it seems much cheaper for me to just plug it into a USB port to get a virtual serial port instead of investing in a separate ethernet shield
-
How does an item configurations look like for a switch in openHAB? I'm looking to build a toggle switch which toggles light on or off every time it is activated, and I cannot really understand how to configure the switch to allow this behaviour for an mqtt input.
Feel free to take the second question with me directly since this might not be very interesting to the others in the forum
-
Suggested Topics
-
devDuino Sensor Node V1.3 (ATmega 328)
OpenHardware.io • 26 Apr 2016, 09:58 • openhardware.io 26 Apr 2016, 11:33 -
💬 Itron Aquadis+ watermeter sensor V1.0
OpenHardware.io • 14 Jan 2016, 18:12 • openhardware.io 14 Jan 2016, 18:12 -
sendBatteryLevel: wrong nodeId?
Bug Reports • 5 Jan 2015, 08:50 • Xander 5 Jan 2015, 11:08 -
RFM69 MQTT gateway radio send loop
Troubleshooting • 31 Oct 2019, 11:40 • alexelite 1 Nov 2019, 22:00 -
💬 MySensors Battery node 2xAAA for SI/BME/SHT
OpenHardware.io • 19 Apr 2020, 12:11 • openhardware.io 19 Apr 2020, 12:11 -
💬 NModule ADXL accelerometer sensor shield
OpenHardware.io • 28 May 2017, 18:10 • openhardware.io 25 Jul 2017, 19:39 -
processing incoming MQTT messages to actuate gateway local relay / variable.
Troubleshooting • 12 Nov 2016, 22:59 • Meshx86 13 Nov 2016, 16:40 -
MQTT Client Gateway
My Project • 3 Feb 2015, 10:37 • b0rmann 14 Apr 2015, 03:47