Examples of EHealthSensorPropertyName


Examples of org.openhab.binding.ehealth.protocol.EHealthSensorPropertyName

 
  private void postUpdate(EHealthDatagram datagram) {
    for (EHealthBindingProvider provider : providers) {
      for (String itemName : provider.getItemNames()) {
        EHealthSensorPropertyName propertyName = provider.getSensorPropertyName(itemName);
       
        // do only publish a new state if it has changed ...
        if (datagram.hasChanged(previousDatagram, propertyName)) {
          Number sensorValue = datagram.getRawData().get(propertyName);
          State newState = new DecimalType(sensorValue.toString());
View Full Code Here

Examples of org.openhab.binding.ehealth.protocol.EHealthSensorPropertyName

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

    EHealthBindingConfig config = new EHealthBindingConfig();

    EHealthSensorPropertyName propertyName;
    try {
      propertyName = EHealthSensorPropertyName.getPropertyName(bindingConfig.trim());
    } catch (Exception e) {
      throw new BindingConfigParseException("Invalid sensor property name '" + bindingConfig + "' > please fix your *.items accordingly!");
    }
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.