 
     aJsonObject *root;
     root = aJson.createObject();
-    addLightJson(root, numberOfTheLight);
+    addLightJson(root, numberOfTheLight+1, rgb); // FIXME: This does not give the new color while an animation is still running
     sendJson(root);
   }
 

  Serial.println(rgb.G);
  Serial.print("B = ");
  Serial.println(rgb.B);
  Serial.println("FIXME: Hue is a bit off - why?");

  return rgb;
}


struct HsbColor rgb2hsb(RgbColor color)
{
  Serial.println("Running rgb2hsb");
  struct HsbColor hsb_instance;
  int hue, sat, bri;
  
  Serial.println("1.: H, S, L - this seems correct");
  HslColor hsl = HslColor(color);
  Serial.print("H = ");
  Serial.println(hsl.H);
  Serial.print("S = ");
  Serial.println(hsl.S);
  Serial.print("L = ");
  Serial.println(hsl.L);

  Serial.println("2.: Convert to hue, sat, bri");
  hue = floor(hsl.H * 65535);
  sat = floor(hsl.S * 255);
  bri = floor(hsl.L * 2.55);
  Serial.print("hue = ");
  Serial.println(hue);
  Serial.print("sat = ");
