Package org.openhab.binding.withings.internal.model

Examples of org.openhab.binding.withings.internal.model.MeasureType


  private void updateItemState(String itemName,
      WithingsBindingConfig withingsBindingConfig,
      List<MeasureGroup> measures) {

    MeasureType measureType = withingsBindingConfig.measureType;

    Float lastMeasureValue = findLastMeasureValue(measures, measureType);

    if (lastMeasureValue != null) {
      eventPublisher.postUpdate(itemName, new DecimalType(
View Full Code Here


  @Override
  public void processBindingConfiguration(String context, Item item,
      String bindingConfig) throws BindingConfigParseException {
    super.processBindingConfiguration(context, item, bindingConfig);

    MeasureType measureType = MeasureType.valueOf(bindingConfig
        .toUpperCase());

    if (measureType == null) {
      throw new BindingConfigParseException("Could not convert string '"
          + bindingConfig + "' to according measure type.");
View Full Code Here

TOP

Related Classes of org.openhab.binding.withings.internal.model.MeasureType

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.