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. Troubleshooting
  3. Adding second sensor overlapping first?

Adding second sensor overlapping first?

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 545 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.
  • Norm DresslerN Offline
    Norm DresslerN Offline
    Norm Dressler
    wrote on last edited by
    #1

    I have a sensor working - humidity/temp. Very basic. Trying to add a second of the exact same type.

    In my sketch, I've tried to manually add:
    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    #define NODE_ADDRESS 2
    and
    gw.sendSketchInfo("SecondLvl", "2.0");

    I already have a node 1 and it doesn't seem to be taking my node_address? I tried deleting the json file in Home Assistant, restart, add sensor 1. Everything works... try to add the second one and it gets named 1 as well?!

    Jun 20 16:09:47 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    Jun 20 16:09:47 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-1-1 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
    Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=11,pt=0,l=9,sg=0:SecondLvl
    Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:2.0
    Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0:
    Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
    Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:26.0
    Jun 20 16:09:50 raspberrypi hass[11575]: INFO:homeassistant.components.mysensors:Adding new devices: <Entity SecondLvl 1 1: None>
    Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:33.0
    Jun 20 16:09:50 raspberrypi hass[11575]: INFO:homeassistant.components.mysensors:Adding new devices: <Entity SecondLvl 1 0: None>

    martinhjelmareM 1 Reply Last reply
    0
    • Norm DresslerN Norm Dressler

      I have a sensor working - humidity/temp. Very basic. Trying to add a second of the exact same type.

      In my sketch, I've tried to manually add:
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      #define NODE_ADDRESS 2
      and
      gw.sendSketchInfo("SecondLvl", "2.0");

      I already have a node 1 and it doesn't seem to be taking my node_address? I tried deleting the json file in Home Assistant, restart, add sensor 1. Everything works... try to add the second one and it gets named 1 as well?!

      Jun 20 16:09:47 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
      Jun 20 16:09:47 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-1-1 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
      Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=11,pt=0,l=9,sg=0:SecondLvl
      Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:2.0
      Jun 20 16:09:49 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0:
      Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
      Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:26.0
      Jun 20 16:09:50 raspberrypi hass[11575]: INFO:homeassistant.components.mysensors:Adding new devices: <Entity SecondLvl 1 1: None>
      Jun 20 16:09:50 raspberrypi hass[11575]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:33.0
      Jun 20 16:09:50 raspberrypi hass[11575]: INFO:homeassistant.components.mysensors:Adding new devices: <Entity SecondLvl 1 0: None>

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

      @Norm-Dressler

      The node id is stored in the eeprom after the first successful connection. If you have previously used the arduino with another node id, you should clear the eeprom before uploading the new sketch. There's an example sketch for clearing the eeprom in the library.

      Also, what is your begin statement, where you try to assign node id 2?

      Looking at the log your node has node id 1, and the sensor is added as "sketch_name_1_0". So everything looks to be working at the HA side.

      1 Reply Last reply
      0
      • Norm DresslerN Offline
        Norm DresslerN Offline
        Norm Dressler
        wrote on last edited by
        #3

        Thanks - that's what I needed to point me in the right direction. Issue is resolved now :)

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


        25

        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