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. Duplicate NODE ID?

Duplicate NODE ID?

Scheduled Pinned Locked Moved Development
8 Posts 5 Posters 2.0k 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.
  • L Offline
    L Offline
    leeoz
    wrote on last edited by
    #1

    Hey,
    I was wondering, is it possible to duplicate NODE ID on two arduino devices?
    Lets say I have Two arduino devices set as light switch device, on one I have switch (button) and on the other there is a relay.

    I would like to send a command (let's say lights ON) from Vera and the relay will turn on and also the switch will indicate ON too.
    So if I set both devices to have the same NODE ID will both of them receive the command for ON from Vera?

    martinhjelmareM 1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @leeoz - good idea, dont know but why dont you try?
      Hard-code the node ID on both devices and report back - this is interesting for me as well.

      Could be that it wont work because of ack or something... the software/coding guys can probably answer that better.

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • L leeoz

        Hey,
        I was wondering, is it possible to duplicate NODE ID on two arduino devices?
        Lets say I have Two arduino devices set as light switch device, on one I have switch (button) and on the other there is a relay.

        I would like to send a command (let's say lights ON) from Vera and the relay will turn on and also the switch will indicate ON too.
        So if I set both devices to have the same NODE ID will both of them receive the command for ON from Vera?

        martinhjelmareM Offline
        martinhjelmareM Offline
        martinhjelmare
        Plugin Developer
        wrote on last edited by
        #3

        @leeoz

        I'm not sure what will actually happen, but I don't think it's the intent of the library to allow that. I imagine the routing information might get screwed up, at least in a larger network.

        I would stick to one node id per node.

        L 1 Reply Last reply
        0
        • martinhjelmareM martinhjelmare

          @leeoz

          I'm not sure what will actually happen, but I don't think it's the intent of the library to allow that. I imagine the routing information might get screwed up, at least in a larger network.

          I would stick to one node id per node.

          L Offline
          L Offline
          leeoz
          wrote on last edited by
          #4

          @martinhjelmare
          I will try and publish resualts.
          My guess, since gateway send a message to node id, and the device is waiting for a message, if the message was recieved in both devices, then both will process.
          2 problems might happen.

          1. If one miss the message then Vera still get ack since the second got it.
          2. If u brodcast command from one, only Vera receive it, so we need to brodcast duplicate command. To vera and to it self.

          ....

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #5

            Isn't there a more generic problem lurking here? If you have a multiway switch for example, with one switch at top of the stairs and one at the bottom of the stairs. Whenever you switch one, you want to toggle the light. Doesn't Vera support that? And if it does, couldn't the same mechanism be used for your case, with the difference that one of the switches doesn't exist physically?

            1 Reply Last reply
            1
            • tekkaT Offline
              tekkaT Offline
              tekka
              Admin
              wrote on last edited by
              #6

              @leeoz In theory it does work (if both share the same parent node), but you will run into routing issues in case of different parental nodes. Also, ACKs won't be reliable. As @martinhjelmare pointed out, better stick to unique node IDs.

              1 Reply Last reply
              0
              • sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #7

                ok, so but if you hard code both ID and parent it should in theory work...

                Controller: Proxmox VM - Home Assistant
                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                tekkaT 1 Reply Last reply
                0
                • sundberg84S sundberg84

                  ok, so but if you hard code both ID and parent it should in theory work...

                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by
                  #8

                  @sundberg84 yes, but there is no guarantee that both nodes receive the message (due to the low level ACK mechanism)

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


                  10

                  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