     aJsonObject *schedules;
     aJson.addItemToObject(root, "schedules", schedules = aJson.createObject());
     sendJson(root);
-
   }
 
   else if (requestedUri.endsWith("/api"))

  aJson.addBooleanToObject(state, "reachable", true); // lamp can be seen by the hub
}


void addLightJson(aJsonObject* root, int numberOfTheLight)
{
  RgbColor rgb = strip.GetPixelColor(numberOfTheLight - 1);
  addLightJson(root, numberOfTheLight, rgb);
}

// ==============================================================================================================
// Color Conversion
// ==============================================================================================================

  //-Green: 0.2151, 0.7106
  //-Blue: 0.138, 0.08

  float red, green, blue;
  float X = (float) (red * 0.649926 + green * 0.103455 + blue * 0.197109);
  float Y = (float) (red * 0.234327 + green * 0.743075 + blue * 0.022598);
  float Z = (float) (red * 0.0000000 + green * 0.053077 + blue * 1.035763);
