 void loop()
 {
   #ifdef DEBUG_SWITCHER
-    Serial.println(".");
+    //Serial.println(".");
   #endif
-  
-  // get buttons states from OpenHAB API
-  if ( more_than_4000_millis_passed() && api_available() )
-  {
-    for (int i=0; i<buttons_count; i++) {
-      int api_button_state = read_button_state_from_api( i+1 );
-      toggle_button_led( i+1, api_button_state);
-      buttons_state[i] = api_button_state;
-    }
-  }
   
   // send request to API if button pressed
   for (int i=0; i<buttons_count; i++) {

  }
}


// void turn_on_main_led(unsigned char delayms){
//   analogWrite(speaker_pin, 128);
// }



  return status_code;
}

char lights_url_by_button_number(int button_number)
{  
  return (char)(((int)'0') + button_number);
}

int api_available()
