Gents,
I need some feedback, I’m lost…
Made a gateway and a simple PIR to check if it all works.
My log:
debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 12-12-0 s=1,c=1,t=16,pt=0,l=1:1
20:56:45debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 12-12-0 s=1,c=1,t=16,pt=0,l=1:0
My Config:
{
“id”: “PIR”,
“name”: “PIR”,
“class”: “MySensorsPIR”,
“nodeid”: 1,
“sensorid”: 2,
“resetTime”: 8000
},
My sketch is the default one, only played with these numbers:
unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
#define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!)
#define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway)
#define CHILD_ID 1 // Id of the sensor child
Do you know what I’m doing wrong ?
Thanks, Bas