Examples of FritzahaWebserviceMeter


Examples of org.openhab.binding.fritzaha.internal.hardware.devices.FritzahaWebserviceMeter

      } else if (configParts.length == 4 &&  ! "energy".equalsIgnoreCase(configParts[2])) {
          throw new BindingConfigParseException(
              "FritzAHA non-energy meters must be of format <hostID>,<deviceID/AIN>,<valueToMeasure>");
      } else if (configParts[1].length() > 8) {
        if ("power".equalsIgnoreCase(configParts[2])) {
          config = new FritzahaWebserviceMeter(configParts[0], configParts[1], MeterType.POWER);
        } else if ("energy".equalsIgnoreCase(configParts[2])) {
          config = new FritzahaWebserviceMeter(configParts[0], configParts[1], MeterType.ENERGY);
        } else {
          logger.warn("Could not configure item " + item + " - Unsupported meter type for webservice");
          return;
        }
      } else {
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.