Indeed you're right I have removed more and more coded to eliminate any causes and reduced it all to the bare minimum, nothing changed. Anyways, I added this to the above code:
#define CHILD_ID_MBXTRIP 52
MyMessage MbxTrip(CHILD_ID_MBXTRIP, V_TRIPPED);
void presentation() {
sendSketchInfo("Mbx", "2.0");
present(CHILD_ID_MBXTRIP, S_DOOR);
}
And here's the debug output:
11:54:19.036 -> 3084 TSM:FPAR:OK
11:54:19.036 -> 3084 TSM:ID
11:54:19.036 -> 3084 TSM:ID:OK
11:54:19.036 -> 3084 TSM:UPL
11:54:19.106 -> 3153 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
11:54:19.748 -> 3399 TSF:MSG:READ,0-0-11,s=255,c=3,t=25,pt=1,l=1,sg=0:1
11:54:19.748 -> 3399 TSF:MSG:PONG RECV,HP=1
11:54:19.748 -> 3399 TSM:UPL:OK
11:54:19.748 -> 3399 TSM:READY:ID=11,PAR=0,DIS=1
11:54:19.748 -> 3475 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
11:54:19.748 -> 3714 TSF:MSG:READ,0-0-11,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
11:54:19.763 -> 3801 TSF:MSG:SEND,11-11-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2
11:54:20.561 -> 4370 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
11:54:22.599 -> 6437 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=11,pt=0,l=3,sg=0,ft=0,st=OK:Mbx
11:54:22.972 -> 7006 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:2.0
11:54:23.576 -> 7573 TSF:MSG:SEND,11-11-0-0,s=52,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
11:54:23.576 -> 7574 MCO:REG:REQ
11:54:24.110 -> 8142 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
11:54:24.538 -> 8383 TSF:MSG:READ,0-0-11,s=255,c=3,t=27,pt=1,l=1,sg=0:1
11:54:24.538 -> 8383 MCO:PIM:NODE REG=1
11:54:24.538 -> 8383 MCO:BGN:STP
11:54:24.538 -> EO sleepsetup
11:54:24.538 -> 8484 MCO:BGN:INIT OK,TSP=1
11:54:29.540 -> Going to sleep in 60 seconds...
11:55:29.782 -> REEDSWITCHPIN State: 6
11:55:29.782 -> 73484 TSF:TDI:TSL
11:55:29.782 -> ZzZ (WFI)
Now, when I make D6 (REEDSWITCHPIN) go LOW by conneting to GND nothing happens (doesn't wake up). But removing all mysensors code makes it work