   aJsonObject *state;
   aJson.addItemToObject(light, "state", state = aJson.createObject());
   unsigned int brightness = rgb.CalculateBrightness();
-  if (brightness == 0)
+  if (StripLightIsOn[numberOfTheLight-1] == false)
     aJson.addBooleanToObject(state, "on", false);
   else
     aJson.addBooleanToObject(state, "on", true);

NeoPixelBus strip = NeoPixelBus(pixelCount, pixelPin);
NeoPixelAnimator animator(&strip); // NeoPixel animation management object

// Determines wheter a client is already authorized
bool isAuthorized = false;

byte mac[6]; // MAC address


    RgbColor rgb;
    rgb = hsb2rgb(hue, sat, bri);

    // Set values in the saved state
    StripRgbColors[numberOfTheLight] = rgb;

    aJson.deleteItem(parsedRoot);
    Serial.print("I should --> ");
