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.
2 out of 2
Suggested Topics
-
Forum Theme Problems
Announcements • 8 Apr 2014, 07:05 • hek 8 Apr 2014, 07:05 -
mysensors regularly disconnect from HA
Home Assistant • 1 Oct 2021, 20:25 • keithellis 29 Aug 2023, 18:09 -
Hi,
Home Assistant • 1 Sept 2024, 20:57 • diltech 1 Sept 2024, 20:57 -
Where to change settings?
Home Assistant • 15 Mar 2023, 14:58 • eiten 25 Jul 2024, 19:19 -
How I delete a node from HA and start over.
Home Assistant • 18 Oct 2024, 02:05 • OldSurferDude 18 Oct 2024, 02:05 -
Node 2 is unknown warning in Homeassistant.
Home Assistant • 10 Mar 2019, 19:27 • badisensors 15 Oct 2024, 20:33