Package org.openhab.binding.insteonhub.internal.InsteonHubBindingConfig

Examples of org.openhab.binding.insteonhub.internal.InsteonHubBindingConfig.BindingType


          + itemName + "'");
      return;
    }

    // parse info from config
    BindingType type = config.getBindingType();
    String hubId = config.getDeviceInfo().getHubId();
    String deviceId = config.getDeviceInfo().getDeviceId();

    // lookup proxy from this configuration
    InsteonHubProxy proxy = proxies.get(hubId);
View Full Code Here


    public void onLevelUpdate(String device, int level,
        InsteonHubLevelUpdateType updateType) {
      Collection<InsteonHubBindingConfig> configs = InsteonHubBindingConfigUtil
          .getConfigsForDevice(providers, hubId, device);
      for (InsteonHubBindingConfig config : configs) {
        BindingType type = config.getBindingType();
        // FIXME Currently filtering STATUS_CHANGE out for non-dimmer types b/c it's not working properly. Need to learn more.
        if (type == BindingType.SWITCH
            && updateType == InsteonHubLevelUpdateType.STATUS_CHANGE) {
          // switch => 0=OFF, else=ON
          State update = level == 0 ? OnOffType.OFF : OnOffType.ON;
View Full Code Here

TOP

Related Classes of org.openhab.binding.insteonhub.internal.InsteonHubBindingConfig.BindingType

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.