Examples of decreaseColorTemperature()


Examples of org.openhab.binding.hue.internal.hardware.HueBulb.decreaseColorTemperature()

    if (deviceConfig.getType().equals(BindingType.colorTemperature)) {
      if (IncreaseDecreaseType.INCREASE.equals(command)) {
        bulb.increaseColorTemperature(deviceConfig.getStepSize());
      } else if (IncreaseDecreaseType.DECREASE.equals(command)) {
        bulb.decreaseColorTemperature(deviceConfig.getStepSize());
      } else if (command instanceof PercentType) {
        bulb.setColorTemperature((int)Math.round((((double)346 / (double)100) * ((PercentType) command).intValue()) + 154));
      }
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.