New Sensor node doesn't show up in HA



  • 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 ?



  • 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.


Log in to reply
 

Suggested Topics

  • 1
  • 3
  • 17
  • 5
  • 2
  • 3

67
Online

11.4k
Users

11.1k
Topics

112.7k
Posts