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. Troubleshooting
  3. Using two gateways MQTT

Using two gateways MQTT

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    sindrome73
    wrote on last edited by
    #1

    Hello!!
    As the title I would use for my control Domoticz two Gateway MQTT, being my Etherneth network very well distributed.

    is it possible to use 2 Gateway MQTT with a Domoticz controller ???

    Thank you!!

    mfalkviddM 1 Reply Last reply
    0
    • S sindrome73

      Hello!!
      As the title I would use for my control Domoticz two Gateway MQTT, being my Etherneth network very well distributed.

      is it possible to use 2 Gateway MQTT with a Domoticz controller ???

      Thank you!!

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @sindrome73 yes

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sindrome73
        wrote on last edited by
        #3

        Grazie mille!!

        Thanks!!

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by gohan
          #4

          @mfalkvidd How does the system knows which gateway is?

          mfalkviddM 1 Reply Last reply
          0
          • S Offline
            S Offline
            sindrome73
            wrote on last edited by sindrome73
            #5

            I do not understand. Tell me I'm available

            1 Reply Last reply
            0
            • gohanG gohan

              @mfalkvidd How does the system knows which gateway is?

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @gohan I don't know but I guess it does it the same way as it does when using multiple ethernet gateways, multiple serial gateways and/or two different gateways.

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #7

                It's not actually the same because the mqtt broker is only one, the controller can not identify the gateway if they are publishing to same topic, unless there is a way to assign an ID for each gateway. Right?

                mfalkviddM 1 Reply Last reply
                0
                • gohanG gohan

                  It's not actually the same because the mqtt broker is only one, the controller can not identify the gateway if they are publishing to same topic, unless there is a way to assign an ID for each gateway. Right?

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #8

                  @gohan oh, now I understand. Yes, if you use the same broker you would need to set different topics.

                  // Set this node's subscribe and publish topic prefix
                  #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
                  #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
                  
                  1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #9

                    The problem is that domoticz only works with its own fixed topics. It may be worth trying to see if adding a unique sub topic for each gateway, the controller can still recognize the mysensors protocol

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


                    14

                    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