Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Yet another MQTT gateway for MySensors :)

Yet another MQTT gateway for MySensors :)

Scheduled Pinned Locked Moved Development
mysensorsmqtt
6 Posts 4 Posters 5.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • scurbS Offline
    scurbS Offline
    scurb
    wrote on last edited by
    #1

    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

    blaceyB YveauxY 2 Replies Last reply
    2
    • scurbS scurb

      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

      blaceyB Offline
      blaceyB Offline
      blacey
      Admin
      wrote on last edited by
      #2

      @scurb

      Patrik, looks great! :thumbsup:

      1 Reply Last reply
      0
      • scurbS scurb

        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

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by Yveaux
        #3

        @scurb Any reason why you chose RabbitMQ? Did you try e.g. Mosquitto?

        Nice work btw (impressive file structure!)

        http://yveaux.blogspot.nl

        scurbS 1 Reply Last reply
        0
        • YveauxY Yveaux

          @scurb Any reason why you chose RabbitMQ? Did you try e.g. Mosquitto?

          Nice work btw (impressive file structure!)

          scurbS Offline
          scurbS Offline
          scurb
          wrote on last edited by
          #4

          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

          YveauxY K 2 Replies Last reply
          0
          • scurbS scurb

            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

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            @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.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            • scurbS scurb

              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

              K Offline
              K Offline
              kolaf
              Hero Member
              wrote on last edited by kolaf
              #6

              @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:

              1. 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 :-)

              2. 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 :-)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              18

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular