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. General Discussion
  3. Where do I set the sensor ID?

Where do I set the sensor ID?

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 2.9k 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.
  • mark_vennM Offline
    mark_vennM Offline
    mark_venn
    wrote on last edited by
    #1

    I am going to use openHAB as my controller and as for as I can tell I need to manually set sensor IDs for each bit of kit in my network. I am using a serial gateway, well, was but am currently faultfinding it, and I have a motion sensor that seems to have picked up id 105, I am assuming from the sketch. I can't find 105 anywhere in the sketch for the moion sensor so where is this likely to have come from and how do I set the id for other sensors?
    Cheers

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

      Use gw.begin(NULL, AUTO, true) change auto to nodeID and true to false if you have battery sensor

      1 argument if incoming messages
      2 argument is node id
      3 argument is repeater mode

      Above is for 1.5.x

      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

      mark_vennM 1 Reply Last reply
      0
      • S sundberg84

        Use gw.begin(NULL, AUTO, true) change auto to nodeID and true to false if you have battery sensor

        1 argument if incoming messages
        2 argument is node id
        3 argument is repeater mode

        Above is for 1.5.x

        mark_vennM Offline
        mark_vennM Offline
        mark_venn
        wrote on last edited by
        #3

        @sundberg84
        Thanks. I don't know where the motion sensor is picking up 105 then as the gw.begin() is just that with no parameters at all. :unamused:

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

          Try resetting the node with the cleareeprom sketch (available in the examples folder). Then re-flash your sketch and hopefully it will be back to normal.

          mark_vennM 1 Reply Last reply
          1
          • mfalkviddM mfalkvidd

            Try resetting the node with the cleareeprom sketch (available in the examples folder). Then re-flash your sketch and hopefully it will be back to normal.

            mark_vennM Offline
            mark_vennM Offline
            mark_venn
            wrote on last edited by
            #5

            @mfalkvidd
            Thanks! I have now set a value of 1 and lo and behold sensor 1 is now talking to the gateway. I vaguely remeber testing eeprom storing values by using a button that advanced a value by one and then stored it. It must have been this Uno I did it on and I must have hit the button 105 times :-)

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

              Great that it worked. Thanks for reporting the result :)

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              15

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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