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. Controllers
  3. Home Assistant
  4. New Sensor node doesn't show up in HA

New Sensor node doesn't show up in HA

Scheduled Pinned Locked Moved Home Assistant
2 Posts 1 Posters 1.3k Views 1 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.
  • Richard van der PlasR Offline
    Richard van der PlasR Offline
    Richard van der Plas
    wrote on last edited by
    #1

    I just created a new sensornode with 4 sensors talking through NRF24
    snippet of the arduino code:

    // MySensors - Version: 2.0.0
    #define MY_REPEATER_FEATURE
    #define MY_DEBUG
    #define MY_RADIO_NRF24
    #define MY_RF24_PA_LEVEL RF24_PA_HIGH
    #define MY_NODE_ID 6
    #define CHILD_ID_DOORBELL 0
    #define CHILD_ID_POWER1 1
    #define CHILD_ID_POWER2 2
    #define CHILD_ID_DOOR1 3
    #include <MyConfig.h>
    #include <MySensors.h>
    #include <Bounce2.h>
    MyMessage msgDOORBELL(CHILD_ID_DOORBELL, V_TRIPPED);
    MyMessage msgDOOR1(CHILD_ID_DOOR1, V_TRIPPED);
    MyMessage msgPOWER1(CHILD_ID_POWER1, V_KWH);
    MyMessage msgPOWER2(CHILD_ID_POWER2, V_WATT);
    //cut unrelated code
    void presentation()
    {
      // Send the sketch version information to the gateway
      Serial.println("Presentation Meterkast 2.1");
      sendSketchInfo("Meterkast", "2.1");
      delay(500);
      present(CHILD_ID_DOORBELL, V_TRIPPED);
      delay(500);
      present(CHILD_ID_DOOR1, V_TRIPPED);
      delay(500);
      present(CHILD_ID_POWER1, S_POWER);
      delay(500);
      present(CHILD_ID_POWER2, S_POWER);
      delay(500);
      // present(CHILD_ID_DOOR1, S_DOOR);
      //  delay(500);
      Serial.println("## Presentation Done # ");
      delay(1000);
    }
    
    

    The serial debug shows all commands are received by the gateway, and the gateway responds correctly
    the mysensors gateway debug shows:

    TSF:MSG:SEND,0-0-4-6,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=OK:M
    TSF:MSG:READ,6-4-0,s=255,c=3,t=11,pt=0,l=9,sg=0:Meterkast
    TSF:MSG:READ,6-4-0,s=255,c=3,t=12,pt=0,l=3,sg=0:2.1
    TSF:MSG:READ,6-4-0,s=0,c=0,t=16,pt=0,l=0,sg=0:
    TSF:MSG:READ,6-4-0,s=3,c=0,t=16,pt=0,l=0,sg=0:
    TSF:MSG:READ,6-4-0,s=1,c=0,t=13,pt=0,l=0,sg=0:
    TSF:MSG:READ,6-4-0,s=2,c=0,t=13,pt=0,l=0,sg=0:
    TSF:MSG:READ,6-4-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    TSF:MSG:SEND,0-0-4-6,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
    TSF:MSG:READ,6-4-0,s=0,c=1,t=16,pt=2,l=2,sg=0:0
    TSF:MSG:READ,6-4-0,s=3,c=1,t=16,pt=2,l=2,sg=0:0
    TSF:MSG:READ,6-4-0,s=0,c=1,t=16,pt=2,l=2,sg=0:0
    

    and the home assistant behaves as expected in the log showing:

    child_id 0 already exists in children of node 6, cannot add child
    child_id 1 already exists in children of node 6, cannot add child
    child_id 2 already exists in children of node 6, cannot add child
    child_id 3 already exists in children of node 6, cannot add child
    

    But they don't show up in the main screen or the dev console ?

    Richard van der PlasR 1 Reply Last reply
    0
    • Richard van der PlasR Richard van der Plas

      I just created a new sensornode with 4 sensors talking through NRF24
      snippet of the arduino code:

      // MySensors - Version: 2.0.0
      #define MY_REPEATER_FEATURE
      #define MY_DEBUG
      #define MY_RADIO_NRF24
      #define MY_RF24_PA_LEVEL RF24_PA_HIGH
      #define MY_NODE_ID 6
      #define CHILD_ID_DOORBELL 0
      #define CHILD_ID_POWER1 1
      #define CHILD_ID_POWER2 2
      #define CHILD_ID_DOOR1 3
      #include <MyConfig.h>
      #include <MySensors.h>
      #include <Bounce2.h>
      MyMessage msgDOORBELL(CHILD_ID_DOORBELL, V_TRIPPED);
      MyMessage msgDOOR1(CHILD_ID_DOOR1, V_TRIPPED);
      MyMessage msgPOWER1(CHILD_ID_POWER1, V_KWH);
      MyMessage msgPOWER2(CHILD_ID_POWER2, V_WATT);
      //cut unrelated code
      void presentation()
      {
        // Send the sketch version information to the gateway
        Serial.println("Presentation Meterkast 2.1");
        sendSketchInfo("Meterkast", "2.1");
        delay(500);
        present(CHILD_ID_DOORBELL, V_TRIPPED);
        delay(500);
        present(CHILD_ID_DOOR1, V_TRIPPED);
        delay(500);
        present(CHILD_ID_POWER1, S_POWER);
        delay(500);
        present(CHILD_ID_POWER2, S_POWER);
        delay(500);
        // present(CHILD_ID_DOOR1, S_DOOR);
        //  delay(500);
        Serial.println("## Presentation Done # ");
        delay(1000);
      }
      
      

      The serial debug shows all commands are received by the gateway, and the gateway responds correctly
      the mysensors gateway debug shows:

      TSF:MSG:SEND,0-0-4-6,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=OK:M
      TSF:MSG:READ,6-4-0,s=255,c=3,t=11,pt=0,l=9,sg=0:Meterkast
      TSF:MSG:READ,6-4-0,s=255,c=3,t=12,pt=0,l=3,sg=0:2.1
      TSF:MSG:READ,6-4-0,s=0,c=0,t=16,pt=0,l=0,sg=0:
      TSF:MSG:READ,6-4-0,s=3,c=0,t=16,pt=0,l=0,sg=0:
      TSF:MSG:READ,6-4-0,s=1,c=0,t=13,pt=0,l=0,sg=0:
      TSF:MSG:READ,6-4-0,s=2,c=0,t=13,pt=0,l=0,sg=0:
      TSF:MSG:READ,6-4-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
      TSF:MSG:SEND,0-0-4-6,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
      TSF:MSG:READ,6-4-0,s=0,c=1,t=16,pt=2,l=2,sg=0:0
      TSF:MSG:READ,6-4-0,s=3,c=1,t=16,pt=2,l=2,sg=0:0
      TSF:MSG:READ,6-4-0,s=0,c=1,t=16,pt=2,l=2,sg=0:0
      

      and the home assistant behaves as expected in the log showing:

      child_id 0 already exists in children of node 6, cannot add child
      child_id 1 already exists in children of node 6, cannot add child
      child_id 2 already exists in children of node 6, cannot add child
      child_id 3 already exists in children of node 6, cannot add child
      

      But they don't show up in the main screen or the dev console ?

      Richard van der PlasR Offline
      Richard van der PlasR Offline
      Richard van der Plas
      wrote on last edited by Richard van der Plas
      #2

      damn i think i found the issue, the presentation uses V_TRIPPED, that should be S_MOTION or S_DOOR, gonna try that tommorrow
      update 21-11, it indeed was the V_TRIPPED vs S_DOOR.

      1 Reply Last reply
      1
      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.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