Package org.openhab.binding.insteonhub.internal.hardware

Examples of org.openhab.binding.insteonhub.internal.hardware.InsteonHubAdjustmentType


          // ON or OFF => Set level to 255 or 0
          int level = command == OnOffType.ON ? 255 : 0;
          proxy.setDeviceLevel(deviceId, level);
        } else if (command instanceof IncreaseDecreaseType) {
          // Increase/Decrease => Incremental Brighten/Dim
          InsteonHubAdjustmentType adjustmentType;
          if (command == IncreaseDecreaseType.INCREASE)
            adjustmentType = InsteonHubAdjustmentType.BRIGHTEN;
          else
            adjustmentType = InsteonHubAdjustmentType.DIM;
          if (setDimTimeout(itemName)) {
            proxy.startDeviceAdjustment(deviceId, adjustmentType);
          }
        } else if (command instanceof UpDownType) {
          // Up/Down => Start Brighten/Dim
          InsteonHubAdjustmentType adjustmentType;
          if (command == UpDownType.UP)
            adjustmentType = InsteonHubAdjustmentType.BRIGHTEN;
          else
            adjustmentType = InsteonHubAdjustmentType.DIM;
          proxy.startDeviceAdjustment(deviceId, adjustmentType);
View Full Code Here

TOP

Related Classes of org.openhab.binding.insteonhub.internal.hardware.InsteonHubAdjustmentType

Copyright © 2018 www.massapicom. 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.