public void TurnOn(Light light)
        {
            LightCommand newState = new LightCommand();
            newState.On = true;

            string command = JsonConvert.SerializeObject(newState, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });

            SendApiCommand(light, command);
        }
        public void SetEffect(Light light, Effect effect)
        {
            LightCommand newState = new LightCommand();
            newState.Effect = effect;

            string command = JsonConvert.SerializeObject(newState, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
            SendApiCommand(light, command);
        }