[SOLVED] Identifying the node ID of my repeaters



  • As I branch out away from my gateway with my devices, I want to explicitly define the parent nodes for some devices. Some of my repeaters are in-wall switches and I would rather not take them out and connect the computer just to have to get the node ID. In the image below, which is from one of my in-wall switches running as a repeater, I am assuming that the red arrow is the node ID that I can use in another sketch to identify this as the parent, and the blue arrow is the gateway or repeater that it is connected to, is this correct?
    0_1491713592686_upload-6114aa38-a069-42c6-9f31-551433407c50


  • Hero Member

    Those IDs have nothing to do with MySensors, they are for Vera only. The Parent id you see there should be the Vera device id for the MySensors plugin main device and id is the Vera device id for this particular device.
    You need to look at the altid. It contains both the Node ID and Sensor ID.



  • @korttoma So based on what you are saying, for this one, the node ID is 6 and the sensor ID is 255.
    0_1491717443500_upload-f94cd98f-80f0-4b15-b9d2-f240fa7863ec

    So in my other node sketches, I should be able to do this to make sure they connect to the repeater and not the gateway correct?

    #define MY_PARENT_NODE_ID 6              // set this to your repeater node id
    #define MY_PARENT_NODE_IS_STATIC  // this will force your node to use only the repeater
    

  • Hero Member

    @dbemowsk yes ☺



  • Thanks, that's what I needed to know.


Log in to reply
 

449
Online

6.7k
Users

7.6k
Topics

80.5k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.