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.2k 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
    • sundberg84S Offline
      sundberg84S 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
      • sundberg84S 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 Online
          mfalkviddM Online
          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 Online
              mfalkviddM Online
              mfalkvidd
              Mod
              wrote on last edited by
              #6

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

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


              19

              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