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. Controllers
  3. Domoticz
  4. Anyone has the setup domoticz => mqtt broker => mysensors up n running?

Anyone has the setup domoticz => mqtt broker => mysensors up n running?

Scheduled Pinned Locked Moved Domoticz
8 Posts 5 Posters 6.1k Views 3 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.
  • dakkyD Offline
    dakkyD Offline
    dakky
    wrote on last edited by
    #1

    I'm still struggling with myself wether to switch from openhab to domoticz.
    So i want to use my "old" infrastructure for testing purposes.

    setting up domoticz itself was an easy task. But now i don't know how to continue.
    The domo documentation concerning mqtt is something near to non existent :(

    So i think the following has to be done:

    • configuring mqtt broker in domo
      i think i did that (settings => hardware => mqtt ethernet)

    • convert mysensors serial API messages to domo readable json messages
      uh .. quite hard imho? node red magic?

      example (freestyle, nonvalid :D)
      incomging message:
      mysensors-gw-out/12/6/1/0/0/36.5 => domoticz/in/{ "idx" : 12, "nvalue" : 0, "svalue" : "36.6"}

    quite confusing ...

    Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
    Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

    Software: MySensors 2.0development

    1 Reply Last reply
    0
    • ahmedadelhosniA Offline
      ahmedadelhosniA Offline
      ahmedadelhosni
      wrote on last edited by
      #2

      Well i have switched to Domoticz also this week because I had problem with OpenHAB's GUI.

      If I understand you correctly. You want to use MQTT also as you have done in OpenHab. I wanted that too but in Domoticz you have a hardware Controller for Mysensors. You will find it in the same list where you chose MQTT. It is names MySensors ... LAN. Something like that.
      But first flash the ethernet gateway example intead of the MQTT one. Configur your ip and port as you will add them in domoticz.

      To test. Restart a node and you shall find a new device added in devives tab.

      1 Reply Last reply
      0
      • dakkyD Offline
        dakkyD Offline
        dakky
        wrote on last edited by dakky
        #3

        hmm i've seen that, but i'd prefer the mqtt way: I have some scripts measuring some stuff besides my mySensors network. And these scripts just send simple mqtt messages to the external broker and are consumed by openHab

        EDIT: Hmm ... this mqtt topic causes quite some trouble .. maybe i should rethink this and use the more "conservative" way with the ethernetgateway

        Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
        Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

        Software: MySensors 2.0development

        ahmedadelhosniA 1 Reply Last reply
        0
        • dakkyD dakky

          hmm i've seen that, but i'd prefer the mqtt way: I have some scripts measuring some stuff besides my mySensors network. And these scripts just send simple mqtt messages to the external broker and are consumed by openHab

          EDIT: Hmm ... this mqtt topic causes quite some trouble .. maybe i should rethink this and use the more "conservative" way with the ethernetgateway

          ahmedadelhosniA Offline
          ahmedadelhosniA Offline
          ahmedadelhosni
          wrote on last edited by
          #4

          @dakky I also prefer using MQTT but at that time I didn't want to waste time so I switched to EthernetGateway.
          May try adopting MQTT later and tell you if I knew something.

          1 Reply Last reply
          0
          • ErrKE Offline
            ErrKE Offline
            ErrK
            Plugin Developer
            wrote on last edited by ErrK
            #5

            I have tried this with my ESP8266 gateway but i did't work.
            I'm currently using it as a regular ESP8266 Gateway but when it works with MQTT i will switch to it.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LastSamurai
              Hardware Contributor
              wrote on last edited by
              #6

              Maybe you could you the "normal" gateway sketch for domoticz (because that works with nearly no work for you) and simply also add mqtt as a source later only for your other scripts!? I would be interested in your results because I am planning something similar ;)

              1 Reply Last reply
              0
              • dakkyD Offline
                dakkyD Offline
                dakky
                wrote on last edited by
                #7

                that's the way i'm using it now. Deftault ethernetGW + additional "datasource" for the mqtt messages. It's a bit tricky to find documentation about the mqtt messages domoticz is expecting. But basically it's working.

                Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                Software: MySensors 2.0development

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Dylano
                  wrote on last edited by
                  #8

                  Dear al....

                  Is there a how to or something for my idea:

                  I would like to make an all in one gateway, mysensors and MQTT [ I do not know what it all is, but if I still start . :-) ]

                  Domoticz, with a lot of working hardware, include mysensors :-)
                  OpenPLI, RuneAudio, Solarmeter, etc......

                  Not a great builder of software and hardware, more a user...
                  Only i try to do my best :-(

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


                  13

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.0k

                  Posts


                  Copyright 2019 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