Examples of TellstickValueSelector


Examples of org.openhab.binding.tellstick.TellstickValueSelector

    private Map<DataType, String> prevMessages = new HashMap<DataType, String>();

    private void handleSensorEvent(TellstickSensorEvent event, TellstickBindingConfig device) {

      double dValue = Double.valueOf(event.getData());
      TellstickValueSelector selector = device.getUsageSelector();
      if (selector == null) {
        selector = device.getValueSelector();
      }
      State cmd = getCommand(event, dValue, selector);
      sendToOpenHab(device.getItemName(), cmd);
View Full Code Here

Examples of org.openhab.binding.tellstick.TellstickValueSelector

      }
      return cmd;
    }

    private TellstickValueSelector getSensorBindingType(DataType dataType) {
      TellstickValueSelector result = null;
      switch (dataType) {
      case TEMPERATURE:
        result = TellstickValueSelector.TEMPERATURE;
        break;
      case HUMIDITY:
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.