   }
   pinMode(13, OUTPUT);
 
+
   //init state relayboard
   //turnAllOff();
 

  pinMode(PIN_DETECT_4, INPUT_PULLUP);
  pinMode(PIN_DETECT_5, INPUT_PULLUP);
  pinMode(PIN_DETECT_6, INPUT_PULLUP);
  debounce1.attach(PIN_DETECT_1);
  debounce2.attach(PIN_DETECT_2);
  debounce3.attach(PIN_DETECT_3);

int value = 0;
AsyncDelay delay_400ms;
AsyncDelay delay_30s;
AsyncDelay delay_5s;

//MutuallyExclude the 'on' state between pairs of relays (for shutter to prevent up and down at the same time)
//ask R1 to turn on while R2 = on -> turns off R2 first (and broadcasts 'domogik/in/relay/r2 0')
