I did more investigation played around with sleep outside of mysensors and found a bit of code in a proximity sensor example:
// Reset flag and clear APDS-9960 interrupt (IMPORTANT!)
isr_flag = 0;
if ( !apds.clearProximityInt() ) {
Serial.println("Error clearing interrupt");
}
I then needed to play around with delays to allow the sensor to catchup..
void loop() {
delay(1000);
Recoding back to MySensors
if ( !apds.clearProximityInt() ) {
Serial.println("Error clearing interrupt");
}
wakeupReason = sleep(digitalPinToInterrupt(INT_PIN), FALLING, sleepTime);
setting up the interrupt pin with a pullup forced the FALLING when pin dragged down by the sensor.
void setup() {
pinMode(INT_PIN, INPUT_PULLUP);
All this is on caveat it makes it through some more testing.