J'ai créé un nouveau noeud mysensors (ID=8), mais il n'apparait pas dans la liste des "Mysensors " de Jeedom.
Pourtant, il y a une activité dans les logs :
Code : Tout sélectionner
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:BC
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=8)
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:CHKUPL:OK
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:GWL OK
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:PINGED (ID=10, hops=1)
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:PINGED (ID=8, hops=1)
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;255;0;0;17;2.1.1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
-> 8;255;3;0;6;M
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;255;3;0;6;0
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=ok:M
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=3,c=0,t=0,pt=0,l=0,sg=0:
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;3;0;0;0;
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=3,c=1,t=16,pt=2,l=2,sg=0:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;3;1;0;16;1
Code : Tout sélectionner
0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
4 TSM:INIT
4 TSF:WUR:MS=0
12 TSM:INIT:TSP OK
14 TSM:INIT:STATID=8
16 TSF:SID:OK,ID=8
18 TSM:FPAR
88 TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
557 TSF:MSG:READ,0-0-8,s=255,c=3,t=8,pt=1,l=1,sg=0:0
563 TSF:MSG:FPAR OK,ID=0,D=1
1851 TSF:MSG:READ,10-10-8,s=255,c=3,t=8,pt=1,l=1,sg=0:1
2097 TSM:FPAR:OK
2097 TSM:ID
2099 TSM:ID:OK
2101 TSM:UPL
2105 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
2125 TSF:MSG:READ,0-0-8,s=255,c=3,t=25,pt=1,l=1,sg=0:1
2131 TSF:MSG:PONG RECV,HP=1
2134 TSM:UPL:OK
2136 TSM:READY:ID=8,PAR=0,DIS=1
2142 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
2156 TSF:MSG:READ,0-0-8,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
2166 TSF:MSG:SEND,8-8-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
2177 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
2217 TSF:MSG:READ,0-0-8,s=255,c=3,t=6,pt=0,l=1,sg=0:M
2228 TSF:MSG:SEND,8-8-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
2234 MCO:REG:REQ
2238 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
2258 TSF:MSG:READ,0-0-8,s=255,c=3,t=27,pt=1,l=1,sg=0:1
2265 MCO:PIM:NODE REG=1
2267 MCO:BGN:STP
2269 MCO:BGN:INIT OK,TSP=1
2275 TSF:MSG:SEND,8-8-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
Mon sketch :
Code : Tout sélectionner
// Enable debug prints to serial monitor
#define MY_DEBUG
// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_PARENT_NODE_IS_STATIC //Define MY_PARENT_NODE_IS_STATIC to disable fall back if parent node fails
#define MY_NODE_ID 8
#define MY_RF24_PA_LEVEL RF24_PA_MIN
// Example sketch showing how to send in OneWire temperature readings
#include <MySensors.h>
#include <Bounce2.h>
#define CHILD_ID 3
#define BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch
Bounce debouncer = Bounce();
int oldValue=-1;
// Change to V_LIGHT if you use S_LIGHT in presentation below
MyMessage msg(CHILD_ID,V_TRIPPED);
void setup()
{
// Setup the button
pinMode(BUTTON_PIN,INPUT);
// Activate internal pull-up
digitalWrite(BUTTON_PIN,HIGH);
// After setting up the button, setup debouncer
debouncer.attach(BUTTON_PIN);
debouncer.interval(5);
}
void presentation() {
// Register binary input sensor to gw (they will be created as child devices)
// You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
// If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
present(CHILD_ID, S_DOOR);
}
// Check if digital input has changed and send in new value
void loop()
{
debouncer.update();
// Get the update value
int value = debouncer.read();
if (value != oldValue) {
// Send in the new value
send(msg.set(value==HIGH ? 1 : 0));
oldValue = value;
}
}