Skip to content
  • 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. Vera
  4. Replace broken board with same Id as old
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Replace broken board with same Id as old

Scheduled Pinned Locked Moved Vera
6 Posts 4 Posters 1.7k Views 4 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.
  • pbcstudiosP Offline
    pbcstudiosP Offline
    pbcstudios
    wrote on last edited by
    #1

    Greetings! I have a quick and hopefully simple question. One of my relay nodes failed because the board is fried. Can I reprogram a new arduino board with the same device Id or Node Id to replace it. This will save me updating my Luup code in my scenes.

    If so, how and what numbers do I use from the Vera UI?

    Thanks in advance,
    Patrick

    AWIA 1 Reply Last reply
    0
    • pbcstudiosP pbcstudios

      Greetings! I have a quick and hopefully simple question. One of my relay nodes failed because the board is fried. Can I reprogram a new arduino board with the same device Id or Node Id to replace it. This will save me updating my Luup code in my scenes.

      If so, how and what numbers do I use from the Vera UI?

      Thanks in advance,
      Patrick

      AWIA Offline
      AWIA Offline
      AWI
      Hero Member
      wrote on last edited by
      #2

      @pbcstudios If you program a new node with the same id and code it will be identical to the controller.

      1 Reply Last reply
      0
      • pbcstudiosP Offline
        pbcstudiosP Offline
        pbcstudios
        wrote on last edited by
        #3

        The node is listed in Vera as 'Arduino repeater 1' with an Altid of 1;255 in the parameters. I will assume the sensor Id is 1 and to replace sensor variable in gwpresent as 1?

        gw.present(1, S_LIGHT);
        

        Is there anything else I need to do in the sketch?

        Thanks for the response!

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          It should be

          #define MY_NODE_ID 1

          Before including MySensors.h (if you're running 2.0)

          1 Reply Last reply
          1
          • pbcstudiosP Offline
            pbcstudiosP Offline
            pbcstudios
            wrote on last edited by
            #5

            I am 1.5 still. Way too many nodes to update. lol. So, how do I do it in 1.5 sketches?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              boozz
              wrote on last edited by
              #6

              Hi pbcstudios,

              I'm still on 1.5 too. I use the following (works fine with me):

              #define R_NODE_NR 9     // defines node nr   
              #define R_ROUTE_TO 4    // defines to which repeater data will be send
              
              void setup() {
               gw.begin(NULL,R_NODE_NR,true,R_ROUTE_TO);   
                  //send data to repeater R_ROUTE_TO
              }
              

              Good luck with it

              BR,

              Boozz

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


              15

              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
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular