Examples of PercentType


Examples of org.openhab.core.library.types.PercentType

    logger.debug("milight: sendCooler");
    int newPercent = getCurrentState(bulb, bridgeId, BindingType.brightness).intValue() - 10;
    if(newPercent < 0) {
      newPercent = 0;
    }
    PercentType newValue = new PercentType(newPercent);
    String messageBytes = "3F:00:55";
    sendMessage(messageBytes, bridgeId);
    setCurrentState(bulb, bridgeId, newValue, BindingType.brightness);
    return newValue;
  }
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.