Package org.openhab.binding.s300th.internal.S300THGenericBindingProvider

Examples of org.openhab.binding.s300th.internal.S300THGenericBindingProvider.S300THBindingConfig


    logger.debug("Received data '" + data + "' from device with address ks300 : temperature: " + temperature
        + " humidity: " + humidity + " wind: " + windValue + " rain: " + rainValue + " isRain: " + isRaining );

    for (Datapoint datapoint : Datapoint.values()) {
      S300THBindingConfig config = findConfig(KS_300_ADDRESS, datapoint);
      if (config == null) {
        continue;
      }
      double value = 0.0;
      switch (datapoint) {
View Full Code Here


    double temperature = ParseUtils.parseTemperature(data);
    double humidity = ParseUtils.parseS300THHumidity(data);
    logger.debug("Received data '" + data + "' from device with address " + address + " : temperature: " + temperature
        + " humidity: " + humidity);

    S300THBindingConfig temperatureConfig = findConfig(address, Datapoint.TEMPERATURE);
    if (temperatureConfig != null) {
      updateItem(temperatureConfig.item, temperature);
    }
    S300THBindingConfig humidityConfig = findConfig(address, Datapoint.HUMIDITY);
    if (humidityConfig != null) {
      updateItem(humidityConfig.item, humidity);
    }
  }
View Full Code Here

    eventPublisher.postUpdate(item.getName(), type);
  }

  private S300THBindingConfig findConfig(String address, Datapoint datapoint) {
    for (S300THBindingProvider provider : this.providers) {
      S300THBindingConfig config = provider.getBindingConfigForAddressAndDatapoint(address, datapoint);
      if (config != null) {
        return config;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.openhab.binding.s300th.internal.S300THGenericBindingProvider.S300THBindingConfig

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.